CN115185425B - Method and device for controlling electronic book page turning displayed by terminal - Google Patents

Method and device for controlling electronic book page turning displayed by terminal Download PDF

Info

Publication number
CN115185425B
CN115185425B CN202210711073.6A CN202210711073A CN115185425B CN 115185425 B CN115185425 B CN 115185425B CN 202210711073 A CN202210711073 A CN 202210711073A CN 115185425 B CN115185425 B CN 115185425B
Authority
CN
China
Prior art keywords
terminal
desktop
electronic book
page turning
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210711073.6A
Other languages
Chinese (zh)
Other versions
CN115185425A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202210711073.6A priority Critical patent/CN115185425B/en
Publication of CN115185425A publication Critical patent/CN115185425A/en
Application granted granted Critical
Publication of CN115185425B publication Critical patent/CN115185425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

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 application discloses a method and a device for controlling electronic book page turning displayed by a terminal, which are used for realizing electronic book page turning by a mode of knocking a desktop when a user places the terminal on a bracket or the desktop to read the electronic book. The application provides a method for controlling the page turning of an electronic book displayed by a terminal, which comprises the following steps: when the terminal is placed on a desktop or placed on the desktop through a bracket, and in the process that the terminal currently displays a reading page of an electronic book, monitoring a vibration signal generated when a user knocks the desktop; judging whether a triggering condition for page turning control of a reading page of the electronic book currently displayed by the terminal is met or not by monitoring a vibration signal generated by the user knocking the desktop; when the trigger condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is determined to be met, controlling the reading page of the electronic book currently displayed by the terminal to perform page turning.

Description

Method and device for controlling electronic book page turning displayed by terminal
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method and an apparatus for controlling a page turning of an electronic book displayed by a terminal.
Background
The existing non-contact electronic book page turning scheme is divided into the following types according to the detection mode of signals: microphones, cameras, wireless devices, etc. The microphone is divided into a voice mode and a blowing mode, the voice is not suitable for a quiet occasion, and delay exists in voice recording; frequent blowing actions are easy to cause discomfort to people, and the electronic book reading terminal is not suitable for the situation that the electronic book reading terminal is placed far away; the camera is required to be in the detection range of the camera of the electronic book reading terminal, the user is generally required to be over against the screen of the electronic book reading terminal, or some action gestures of the user are detected, but the electronic book reading terminal is required to always start the camera, so that the power consumption is relatively high; the wireless device needs to provide an additional electronic product, such as a bluetooth pen or other devices capable of joining a local area network, and establishes wireless communication with the electronic book reading terminal, and the electronic book page turning is realized by controlling the wireless devices.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling the page turning of an electronic book displayed by a terminal, which are used for realizing the page turning of the electronic book by a mode of knocking a desktop when a user places the terminal on a bracket or the desktop to read the electronic book.
The method for controlling the page turning of the electronic book displayed by the terminal comprises the following steps:
When the terminal is placed on a desktop or placed on the desktop through a bracket, and in the process that the terminal currently displays a reading page of an electronic book, monitoring a vibration signal generated when a user knocks the desktop;
Judging whether a triggering condition for page turning control of a reading page of the electronic book currently displayed by the terminal is met or not by monitoring a vibration signal generated by the user knocking the desktop;
When the trigger condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is determined to be met, controlling the reading page of the electronic book currently displayed by the terminal to perform page turning.
According to the method, when the terminal is placed on a desktop or placed on the desktop through a bracket, and in the process that the terminal currently displays a reading page of an electronic book, a vibration signal generated by a user knocking the desktop is monitored; judging whether a triggering condition for page turning control of a reading page of the electronic book currently displayed by the terminal is met or not by monitoring a vibration signal generated by the user knocking the desktop; when the trigger condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met, the reading page of the electronic book currently displayed by the terminal is controlled to be turned, so that when a user places the terminal on a bracket or a desktop for reading the electronic book, the user does not need to stretch hands to click or slide a screen, the electronic book can be turned in a mode of clicking the desktop, and the operation is simpler and more convenient.
In some embodiments, a status flag is preset to indicate whether to initiate monitoring of a vibration signal generated by a user tapping the desktop;
When the electronic book runs at the foreground of the terminal and enters a reading page, the state mark is set to be in a starting state, otherwise, the state mark is set to be in a closing state;
When the state mark is in a starting state, starting to monitor a vibration signal generated by a user knocking the desktop;
and stopping monitoring a vibration signal generated by the user knocking the desktop when the state mark is in a closed state.
By the method, the vibration signal generated by the fact that the user knocks the desktop is started or closed according to the state mark of the electronic book.
In some embodiments, the determining whether the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met by monitoring a vibration signal generated by the user clicking the desktop includes:
Monitoring a vibration signal generated by the user striking the desktop through an acceleration sensor in the terminal;
Acquiring acceleration values in the x, y and z three-dimensional directions output by an acceleration sensor in the terminal;
according to the included angle between the terminal and the desktop and/or the placement state of the terminal on a vertical screen or a horizontal screen, selecting an acceleration value of one dimension from acceleration values of the acceleration sensor in the x, y and z three-dimensional directions;
And judging whether a triggering condition for page turning control of the reading page of the electronic book currently displayed by the terminal is met or not according to the selected acceleration value.
According to the method, vibration signals generated by a user knocking the desktop are monitored through the acceleration sensor in the terminal, acceleration values in the x, y and z three-dimensional directions are obtained, and the acceleration value of one dimension which can most sense the vibration condition is selected according to the placement mode of the terminal, so that whether the triggering condition of turning pages of the electronic book is met is judged.
In some embodiments, an included angle between the terminal and the desktop, and/or the terminal is in a vertical screen or a horizontal screen placement state, and an acceleration value of one dimension is selected from acceleration values of the acceleration sensor in x, y and z three-dimensional directions, including:
If the included angle between the terminal and the desktop is smaller than 45 degrees and larger than 0 degrees, selecting an acceleration value in the z direction;
if the terminal is a vertical screen placed on the bracket and the included angle between the terminal and the desktop is more than 45 degrees and less than 90 degrees, selecting an acceleration value in the y direction;
and if the terminal is that the transverse screen is placed on the bracket and the included angle between the transverse screen and the desktop is larger than 45 degrees and smaller than 90 degrees, selecting an acceleration value in the x direction.
According to the method, the fact that the acceleration value of one dimension is selected from the acceleration values of the x, y and z three-dimensional directions according to the included angle between the terminal and the desktop and/or the placement state of the terminal is achieved, and subsequent digital high-pass filtering processing is conducted.
In some embodiments, according to the selected acceleration value, determining whether a trigger condition for performing page turning control on a read page of the electronic book currently displayed by the terminal is satisfied includes:
inputting the selected acceleration value into a digital high-pass filter for digital high-pass filtering processing to obtain an output signal;
Continuously acquiring the output signal of the digital high-pass filter within a preset time period if the absolute value of the output signal is larger than a preset threshold value, and recording the current moment as a first moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired within the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; then, continuously waiting for the output signal of the digital high-pass filter, continuously acquiring the output signal of the digital high-pass filter in a preset time period if the absolute value of the output signal of the digital high-pass filter is acquired to be larger than a preset threshold value, and recording the current moment as a second moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired in the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; and determining a time interval between the first time and the second time;
and when the time interval between the first time and the second time is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
According to the method, the selected acceleration value is converted into the output signal through high-pass filtering, whether the triggering condition for turning pages of the electronic book is met or not is judged according to the output signal, and the detection precision of the knocking signal is improved.
In some embodiments, the method further comprises:
Outputting an interaction page to a user for the user to modify one or a combination of the following parameters:
the filter coefficient of the digital high-pass filter;
the preset threshold value;
The preset duration;
The preset times threshold value.
By the method, the parameters such as the filter coefficient, the threshold value, the duration, the frequency threshold value and the like are modified on the interactive page by the user, the requirement of diversity of the user is met, and the algorithm implementation is more flexible.
In some embodiments, the determining whether the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met by monitoring a vibration signal generated by the user clicking the desktop includes:
determining that two consecutive vibrations occur by a sensor for sensing the vibrations provided in the terminal;
When the time interval of the continuous two-time vibration is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
According to the method, whether the user knocks the desktop to vibrate twice continuously is judged through the vibration-sensing sensor in the terminal, so that page turning control of a reading page of the electronic book currently displayed by the terminal is realized.
The application further provides a device for controlling page turning of an electronic book displayed by a terminal, which comprises a memory and a processor, wherein the memory is used for storing program instructions, and the processor is used for calling the program instructions stored in the memory and executing any one of the methods according to the obtained program.
Another embodiment of the present application provides a terminal device, which includes a memory for storing program instructions and a processor for calling the program instructions stored in the memory and executing any one of the methods according to the obtained program.
Furthermore, according to an embodiment, for example, a computer program product for a computer is provided, comprising software code portions for performing the steps of the method defined above, when said product is run on a computer. The computer program product may include a computer-readable medium having software code portions stored thereon. Furthermore, the computer program product may be directly loaded into the internal memory of the computer and/or transmitted via the network by at least one of an upload procedure, a download procedure and a push procedure.
Another embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing the computer to perform any of the methods described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a terminal usage scenario provided in an embodiment of the present application;
Fig. 2 is a schematic diagram of a terminal executing an electronic book page turning operation according to an embodiment of the present application;
Fig. 3 is a general flow chart of a method for controlling a page turning of an electronic book displayed by a terminal according to an embodiment of the present application;
Fig. 4 is a specific flowchart of a method for controlling a page turning of an electronic book displayed by a terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a service module of a page turning system according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating an interaction process of a service module of a page turning system according to an embodiment of the present application;
fig. 7 is a schematic diagram of an intrinsic coordinate system of a terminal according to an embodiment of the present application;
fig. 8a is a schematic diagram of an angle between a vertical screen and a desktop of a terminal being less than or equal to 45 ° according to an embodiment of the present application;
fig. 8b is a schematic diagram of an angle between a vertical screen and a desktop of a terminal, which is greater than 45 ° and smaller than 90 ° according to an embodiment of the present application;
fig. 8c is a schematic diagram of an angle between a transverse screen and a desktop of a terminal, which is larger than 45 ° and smaller than 90 ° according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a workflow of a state control unit according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of an event detecting unit according to an embodiment of the present application;
FIG. 11 is a schematic workflow diagram of an event detection unit according to an embodiment of the present application;
Fig. 12a is a schematic diagram of a mobile phone intrinsic coordinate system according to an embodiment of the present application;
FIG. 12b is a diagram of a mobile phone laying flat on a desktop according to an embodiment of the present application;
FIG. 12c is a diagram illustrating a mobile phone vertical screen being placed on a desktop in an inclined manner according to an embodiment of the present application;
FIG. 12d is a diagram illustrating a mobile phone with a horizontal screen being placed on a desktop in an inclined manner according to an embodiment of the present application;
FIG. 13 is a schematic diagram of a specific workflow of an event detection unit according to an embodiment of the present application;
Fig. 14 is a schematic workflow diagram of a page turning control unit according to an embodiment of the present application;
fig. 15 is a schematic view of an operable area of a terminal screen according to an embodiment of the present application;
FIG. 16 is a schematic diagram of an interactive interface provided by a state control unit to a user according to an embodiment of the present application;
FIG. 17 is a schematic diagram of an interactive interface provided by the event detection unit according to an embodiment of the present application;
FIG. 18 is a schematic diagram showing a three-dimensional data value response to knocking vibration at an angle of 0 ° between a vertical screen and a desktop;
FIG. 19 is a schematic diagram showing a three-dimensional data value response to knocking vibration at an included angle of 30 ° between a vertical screen and a desktop of a terminal according to an embodiment of the present application;
FIG. 20 is a schematic diagram showing a three-dimensional data value response to knocking vibration at an angle of 80 ° between a vertical screen and a desktop of a terminal according to an embodiment of the present application;
FIG. 21 is a schematic diagram showing a three-dimensional data value response to knocking vibration at an included angle of 30 ° between a transverse screen and a desktop of a terminal according to an embodiment of the present application;
FIG. 22 is a schematic diagram showing a three-dimensional data value response to knocking vibration at an angle of 80 ° between a transverse screen and a desktop of a terminal according to an embodiment of the present application;
Fig. 23 is a flowchart illustrating a method for verifying a page turning of an electronic book displayed by a control terminal according to an embodiment of the present application;
Fig. 24 is a schematic structural diagram of an apparatus for controlling a page turning of an electronic book displayed by a terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a method and a device for controlling the page turning of an electronic book displayed by a terminal, which are used for realizing the page turning of the electronic book in a mode of knocking the desktop without the need of the user to extend hands to click or slide a screen when the user places the terminal on a bracket or a desktop for reading the electronic book, and are simpler and more convenient to operate.
The method and the device are based on the same application, and because the principles of solving the problems by the method and the device are similar, the implementation of the device and the method can be referred to each other, and the repetition is not repeated.
The terms first, second and the like in the description and in the claims of embodiments of the application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The following examples and embodiments are to be construed as illustrative only. Although the specification may refer to "an", "one", or "some" example or embodiment(s) at several points, this does not mean that each such reference is related to the same example or embodiment, nor that the feature is applicable to only a single example or embodiment. Individual features of different embodiments may also be combined to provide further embodiments. Furthermore, terms such as "comprising" and "including" should be understood not to limit the described embodiments to consist of only those features already mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.
Various embodiments of the application are described in detail below with reference to the drawings attached to the specification. It should be noted that, the display sequence of the embodiments of the present application only represents the sequence of the embodiments, and does not represent the advantages or disadvantages of the technical solutions provided by the embodiments.
It should be noted that, the technical solution provided by the embodiment of the present application is described by taking an example of opening a reading app in a mobile phone, and double-clicking a desktop during reading to implement an electronic book page turning operation, but is not limited thereto.
When a user uses a reading app installed on a mobile phone to read an electronic book, the user is required to hold the mobile phone, slide or click a mobile phone screen by fingers to turn pages of the electronic book, and the user cannot release both hands of the user, especially when the user reads and marks the book at the same time, the user is inconvenient to use a non-contact electronic book page turning terminal to watch the electronic book, the user is not required to hold the terminal and click or slide the screen any more, and the electronic book page turning can be realized by only double-clicking the desktop, so that the electronic book page turning device is simple to use, and see fig. 1 and 2.
Referring to fig. 3, a method for controlling page turning of an electronic book displayed by a terminal according to an embodiment of the present application includes:
S101, when the terminal is placed on a desktop or placed on the desktop through a bracket, monitoring a vibration signal generated by a user striking the desktop in the process that the terminal currently displays a reading page of an electronic book;
The terminal, such as a mobile phone, a tablet computer, an electronic book reader and a computer, is not limited to these devices; the electronic book, such as a reading class app;
S102, judging whether a triggering condition for page turning control of a reading page of an electronic book currently displayed by the terminal is met or not by monitoring a vibration signal generated by the user clicking a desktop;
the desktop knocking device comprises a desktop, a terminal and a terminal support, wherein the desktop knocking device is used for knocking the desktop on which the terminal is placed or on which the terminal support is placed; the triggering condition, such as tapping the desktop twice in succession;
and S103, when the trigger condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is determined to be met, controlling the reading page of the electronic book currently displayed by the terminal to perform page turning.
Through step S103, when the user places the terminal on the stand or the desktop to read the electronic book, by monitoring the vibration signal generated by the user clicking the desktop, whether the triggering condition of turning pages of the electronic book is met is judged, so that the user can realize turning pages of the electronic book without clicking or sliding the screen of the terminal by extending hands and double clicking the desktop.
To enable the monitoring of the vibration signal generated by the user striking the desktop to be started or shut down according to the status flag of the electronic book, in some embodiments, the status flag is preset to indicate whether to start monitoring the vibration signal generated by the user striking the desktop;
When the electronic book runs at the foreground of the terminal and enters a reading page, the state mark is set to be in a starting state, otherwise, the state mark is set to be in a closing state;
When the state mark is in a starting state, starting to monitor a vibration signal generated by a user knocking the desktop;
and stopping monitoring a vibration signal generated by the user knocking the desktop when the state mark is in a closed state.
In order to determine whether a vibration signal generated by a user clicking a desktop meets a requirement for turning pages of an electronic book, in some embodiments, determining whether a trigger condition for turning pages of an electronic book currently displayed by the terminal is met by monitoring the vibration signal generated by the user clicking the desktop includes:
Monitoring a vibration signal generated by the user striking the desktop through an acceleration sensor in the terminal;
Acquiring acceleration values in the x, y and z three-dimensional directions output by an acceleration sensor in the terminal;
according to the included angle between the terminal and the desktop and/or the placement state of the terminal on a vertical screen or a horizontal screen, selecting an acceleration value of one dimension from acceleration values of the acceleration sensor in the x, y and z three-dimensional directions;
And judging whether a triggering condition for page turning control of the reading page of the electronic book currently displayed by the terminal is met or not according to the selected acceleration value.
In order to implement the subsequent digital high-pass filtering processing by selecting the acceleration value of the dimension that can most sense the vibration condition from the acceleration values of the x, y and z three-dimensional directions according to the included angle between the terminal and the desktop and/or the placement state of the terminal, therefore, in some embodiments, the included angle between the terminal and the desktop and/or the placement state of the terminal on the vertical screen or the horizontal screen, the acceleration value of the dimension is selected from the acceleration values of the acceleration sensor in the x, y and z three-dimensional directions, including:
If the included angle between the terminal and the desktop is smaller than 45 degrees and larger than 0 degrees, selecting an acceleration value in the z direction;
if the terminal is a vertical screen placed on the bracket and the included angle between the terminal and the desktop is more than 45 degrees and less than 90 degrees, selecting an acceleration value in the y direction;
and if the terminal is that the transverse screen is placed on the bracket and the included angle between the transverse screen and the desktop is larger than 45 degrees and smaller than 90 degrees, selecting an acceleration value in the x direction.
In order to improve the detection precision of the vibration signal generated by clicking the desktop, in some embodiments, determining, according to the selected acceleration value, whether a trigger condition for performing page turning control on a read page of the electronic book currently displayed by the terminal is satisfied includes:
inputting the selected acceleration value into a digital high-pass filter for digital high-pass filtering processing to obtain an output signal;
Continuously acquiring the output signal of the digital high-pass filter within a preset time period if the absolute value of the output signal is larger than a preset threshold value, and recording the current moment as a first moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired within the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; then, continuously waiting for the output signal of the digital high-pass filter, continuously acquiring the output signal of the digital high-pass filter in a preset time period if the absolute value of the output signal of the digital high-pass filter is acquired to be larger than a preset threshold value, and recording the current moment as a second moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired in the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; and determining a time interval between the first time and the second time;
and when the time interval between the first time and the second time is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
To make the algorithm implementation more flexible, to meet the diversity needs of users, in some embodiments, the method further includes:
Outputting an interaction page to a user for the user to modify one or a combination of the following parameters:
the filter coefficient of the digital high-pass filter;
the preset threshold value;
The preset duration;
The preset times threshold value.
In order to realize that whether the user knocks the desktop to vibrate twice continuously is judged through a sensor for sensing vibration in the terminal to realize that the electronic book is turned pages, in some embodiments, whether the triggering condition for turning pages of the electronic book currently displayed by the terminal is met by monitoring a vibration signal generated by the user knocking the desktop is judged, and the method comprises the following steps:
determining that two consecutive vibrations occur by a sensor for sensing the vibrations provided in the terminal;
When the time interval of the continuous two-time vibration is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
Referring to fig. 4, a method for controlling a page turning of an electronic book displayed by a terminal according to an embodiment of the present application includes the following specific steps:
Step S201, a user opens a reading app on a mobile phone, opens an electronic book to be read, enters a reading page, and places the mobile phone on a bracket or a desktop;
step S202, a user double-clicks a desktop, a page turning system service module (a specific workflow is illustrated later) in the mobile phone receives a clicking signal, and whether the double-clicks the desktop is a continuous double-clicking event is judged;
Step S203, when the page turning system service module judges that the double-click event in the step S202 is an event of continuously clicking the desktop twice, the page turning system service module executes page turning operation to realize the page turning operation of the electronic book;
the page turning system service module can be built in a mobile phone or one module in a reading app; when the page turning system service module is arranged in the mobile phone, all reading apps in the mobile phone can adopt the page turning function; when the page turning system service module is only one module in the reading app, only the reading app is supported to adopt the page turning function; in the following embodiments, the service module of the page turning system is taken as an example to be built in the mobile phone.
The above-mentioned page turning system service module, see fig. 5, for example, is composed of a state control unit 100, an event detection unit 200, and a page turning control unit 300, and the interaction process between them is see fig. 6, specifically:
The state control unit 100 (specific workflow is illustrated later) is configured to determine whether a reading app opened by a user in the current mobile phone is running in the foreground (i.e. the app is running), and if the reading app is running in the foreground and has entered a reading page, the state control unit 100 changes a state flag of the reading app to be started, so that the subsequent event detection unit 200 and the page turning control unit 300 can read the state flag of the reading app and start respective functions; if the reading app is not running in the foreground, or running in the foreground but not entering the reading page, the state control unit 100 changes the state flag of the reading app to be turned off, so that the subsequent event detection unit 200 and the page turning control unit 300 can read the state flag of the reading app and turn off the respective functions;
the event detection unit 200 (specific workflow will be illustrated later) is used to determine whether the user double-clicks the desktop event is a continuous double-clicking desktop event. The event detection unit 200 receives (x, y, z) three-dimensional data values of sensor data (i.e., acceleration values of the mobile phone in x, y, z directions) in real time by registering an acceleration sensor in the mobile phone, referring to fig. 7, according to a placement mode of the mobile phone, selects one of the dimension values as an input signal of subsequent calculation;
The acceleration sensor is a sensor capable of sensing acceleration and converting the acceleration into a usable output signal, the inclination angle of the mobile phone relative to the horizontal plane can be calculated by measuring the acceleration caused by gravity, and the acceleration sensor is arranged in the mobile phone generally;
the registration refers to that in order to acquire acceleration real-time data of the three-dimensional direction of the mobile phone, a program interface provided by an operating system of the mobile phone is needed to use an acceleration sensor;
the vibration generated by the user striking the desktop is up-down vibration, and the mobile phone is placed on the desktop to generate weak up-down vibration, and according to the intrinsic coordinate system of the mobile phone (see fig. 7 for example in the following description), when the angles of the mobile phone placement are different, the acceleration values in the x, y and z directions are different (for example in the following description), so the event detection unit 200 selects the data sequence in the dimension that is most capable of sensing the vibration condition by the following method:
if the mobile phone vertical screen is placed on the bracket, and the included angle between the plane of the mobile phone screen and the desktop is greater than 0 degrees and less than or equal to 45 degrees, the z value is used, see fig. 8a;
if the mobile phone vertical screen is placed on the bracket and the included angle between the plane of the mobile phone screen and the desktop is larger than 45 degrees and smaller than 90 degrees, the y value is used, see fig. 8b;
If the mobile phone transverse screen is placed on the bracket and the included angle between the mobile phone screen and the desktop is larger than 45 degrees and smaller than 90 degrees, the x value is used, see fig. 8c;
The event detection unit 200 performs digital high-pass filtering and shaping processing on the selected one-dimensional data which can most sense the vibration condition, and finally converts the knocked vibration signal into a time signal corresponding to the occurrence of the knocked event, and determines whether the desktop is continuously knocked twice events according to the adjacent two time intervals. If the desktop is continuously knocked twice, a control signal is sent to the page turning control unit 300;
The page turning control unit 300 (the specific workflow is illustrated later) simulates a human hand to click (or slide) on a mobile phone screen in a calling mode, and executes a group of system calls after receiving a control signal sent by the event detection unit 200, so as to realize page turning operation control on the book-reading app;
the system call refers to a program interface provided by the mobile phone operating system for triggering click or sliding screen effect, wherein specific position of clicking the mobile phone screen is described in the following.
Referring to fig. 9, the implementation and workflow of the above state control unit specifically includes:
step S91, presetting a reading app package name list in a mobile phone;
The package names of the commonly used reading type apps in the market are stored in the mobile phone in the form of an array character string resource, and the recording format is 'complete package name/complete class name'; after the mobile phone is started for the first time, reading the array character string resource, and storing in a manner of persistent storage SHAREPREFERENCE key-value pairs (key-value) provided by an operating system, wherein a 'complete package name/complete class name' is used as a key value, the value is used for supporting or not supporting, the type is a Boolean value, and under the default condition, the value values are true and are used for supporting the page turning function for all reading apps stored in the mobile phone in advance;
Step S92, adding or deleting preset reading app operation of the mobile phone on the interaction page by a user;
providing an interactive page (illustrated in the following) to the user in the state control unit, for example, where the user can add and remove reading class apps; the removal is not to unload the reading app from the mobile phone or prohibit the use, but to write a value corresponding to the reading app to be removed as false, and for the reading app to be removed, the mobile phone does not provide the page turning function for the reading app to be removed; the adding is to write a value corresponding to the reading app to be added as true;
step S93, updating the reading app package name list according to the operation of a user;
Step S94, a user opens a reading app and enters a reading page, namely the reading app runs in the foreground;
Step S95, the state control unit reads the packet name of the reading app;
Step S96, the state control unit judges whether the read package name of the reading app is in the package name list of the reading app, when judging that the reading app is in the package name list of the reading app, the step S97 is executed, otherwise, the step S98 is executed;
The state control unit reads the packet name of the reading app, and can parse the packet name string of the current stack top application by reading the current active stack, wherein the recording format is 'complete packet name/complete class name'; the Activity stack refers to a shell command dumpsys ACTIVITY ACTIVITIES provided by an operating system, and stack information of all activities running in the mobile phone is obtained;
step S97, the state control unit opens the state zone bit of the reading app;
Step S98, the state control unit displays a state mark of the reading app as closed;
the method comprises the steps that a user opens an added reading app and opens a reading page of the reading app, the state control unit reads a package name of the reading app, judges that the package name of the reading app is in a list according to a package name list of the reading app, and opens a state zone bit of the reading app;
The user opens the removed reading app, the state control unit reads the package name of the reading app, and according to the list of package names of the reading app, judges that the package name of the reading app is not in the list, and displays the state mark of the reading app as closed.
The event detection unit, see fig. 10, for example, consists of a data source selection module 21, a digital high pass filter 22 and a digital shaping module 23; the event detection unit operates under the condition that the reading app state flag is on, and otherwise, the event detection unit is in a dormant state.
Referring to fig. 11, the implementation and workflow of the event detection unit specifically includes:
Step S301, a user continuously taps the desktop twice, and an acceleration sensor in the mobile phone reports (x, y, z) three-dimensional data values to a data source selection module in the event detection unit;
Step S302, a data source selection module calculates a three-dimensional angle value of the mobile phone to obtain a step S n, wherein the specific calculation is performed according to the following formula:
g2=x2+y2+z2
Ax=arccos(x/g)
Ay=arccos(y/g)
Az=arccos(z/g)
Wherein x, y and z represent acceleration values of the mobile phone containing gravitational acceleration in the three directions, and can also represent orthogonal decomposition of the acceleration values of the mobile phone in the three directions; a x、Ay、Az respectively represents included angles between xyz direction and gravity reversal of the mobile phone intrinsic coordinate system; g represents gravitational acceleration;
According to the inherent coordinate system of the mobile phone (see fig. 7), when the mobile phone is erected and the screen is placed on the desktop upwards, see fig. 12a, the x direction is along the screen direction of the mobile phone, from left to right; the y direction is upward along the screen of the mobile phone; the z direction is vertical to the screen of the mobile phone upwards; the x, y and z directions are mutually perpendicular;
When the mobile phone is vertically arranged with the screen upwards placed on the desktop, referring to 12b, the stress F z =m×a=g=m×g of the mobile phone in the z direction, that is, the acceleration value a in the z direction is equal to the gravity acceleration G, and the stress F x=0、Fy =0 of the mobile phone in the x and y directions;
When the mobile phone is vertically arranged on a desktop with the screen upwards and obliquely arranged, referring to fig. 12c, the force F x =0 of the mobile phone in the x direction, the force F y =g× sinj =g×cos (90 ° -j) in the y direction, and the force F z =g× cosj in the z direction, wherein j represents the included angle between the plane of the mobile phone screen and the desktop;
When the mobile phone is placed on the desktop with the screen facing upwards and inclined, referring to fig. 12d, the force F x =g× sinj =g×cos (90 ° -j) of the mobile phone in the x direction, the force F y =0 in the y direction, and the force F z =g× cosj in the z direction, where j represents the angle between the plane of the mobile phone screen and the desktop;
Therefore, when a z represents the angle j between the plane of the mobile phone screen and the desktop (i.e., j=a z),Ax represents the angle between the x direction of the mobile phone and the gravity direction, a x=90°-j=arccos(x/g),Ay=90°-j=arccos(y/g),Az =j= arccos (z/g), so as to obtain the above calculation formula;
When A z is less than or equal to pi/2, z data are selected as input of a digital high-pass filter in the event detection unit, digital high-pass filtering processing is carried out, the z value is recorded as S n (0 is less than or equal to n, n is an integer and represents the sequence of a data sequence input into the digital high-pass filter, the increment of n is determined by the sampling interval of an acceleration sensor of a mobile phone, and the value of n is increased by 1 when the acceleration sensor reports data once, so that r n for each subsequent input digital shaping corresponds to a moment), and the fact that the mobile phone screen is upward at the moment, and the included angle between the plane of the mobile phone screen and a desktop is smaller than 45 degrees is indicated;
When A z is larger than pi/2 and smaller than pi, and when A y is smaller than pi/2, and the page of the opened reading app in the mobile phone is displayed by a vertical screen, y data is selected as the input of a digital high-pass filter in the event detection unit and recorded as S n, the mobile phone screen is upward, and the included angle between the plane of the mobile phone screen and the desktop is larger than 45 degrees and smaller than 90 degrees;
When A z is larger than pi/2 and smaller than pi, and A x is larger than 3/4 pi or smaller than pi/2, and the page of the opened reading app in the mobile phone is displayed on a horizontal screen, x data is selected as the input of a digital high-pass filter in the event detection unit, and S n is recorded, so that the mobile phone screen is upward at the moment, and the included angle between the plane of the mobile phone screen and the desktop is larger than 45 degrees and smaller than 90 degrees;
Step S303, performing digital high-pass filtering processing on the S n calculated in step S302 according to the following formula:
rn=P*rn-1+P*(Sn–Sn-1)
Wherein, P represents the preset filter coefficient, considering that the materials of the desktops on which the mobile phones are placed are different, the users strike the desktops with the same striking force, and the generated vibration frequencies are different, so an interactive interface is provided for the users in the event detection unit, and the users are supported to adjust the values of the parameters according to the needs (for example in the following description); r n denotes an output of the digital high-pass filter;
the above formula is a differential form of first order high pass filtering, where the parameter P has the following relation to the cut-off frequency f c of the digital high pass filter and the sampling time interval Δt of the vibration signal:
1/P=2*π*△t*fc+1
Wherein Δt depends on the sampling interval of the mobile phone acceleration sensor, and the setting of f c depends on the material condition of the desktop. Through a digital high-pass filter, the direct current component of the input sequence S n and the low-frequency component smaller than f c can be filtered, so that the output r n fluctuates up and down around a value of 0;
Step S304, the digital shaping module in the event detection unit performs digital shaping processing on the r n obtained in step S303 (specific processing steps are described in the following steps);
Step S305, judging the threshold value, and checking whether the time difference d between two neighboring taps on the desktop output in step S304 is within a preset minimum value d min and a maximum value d max, i.e. the time interval between two consecutive taps by the user should not be smaller than d min nor larger than d max; if the number is smaller than d min, a double-knocking event cannot be distinguished; if the event detection unit is larger than d max, the event detection unit cannot be regarded as continuous double-knocking events, but is a single-knocking event which occurs in sequence, and when judging that the event of knocking the desktop twice by the user is continuous double-knocking event of knocking the desktop twice, the event detection unit sends a control signal to the page turning control unit.
Referring to fig. 13, the specific operation steps of the digital shaping processing of r n by the digital shaping module include:
Step S31, two time variables t 1 and t 2 are set, and the initial value is set to 0;
Step S32, waiting for the output r n of the digital high-pass filter, and performing absolute value taking operation on r n to obtain |r n |;
Step S33, judging whether |r n | is larger than V, if yes, carrying out step S34; if the current value is less than V, step S32 is performed;
Step S34, in the duration of the following stable interval T, continuously receiving an |r n | sequence, monitoring the number of times of |r n | > V, if the number exceeds M, recording the current time, storing the current time in a variable T 1, indicating the time when a user first clicks a desktop, and performing step S35; if the current stroke is lower than M, the current stroke is considered to be a noise or invalid stroke, and step S32 is performed;
Step S35, waiting for the output r n of the digital high-pass filter, and performing absolute value taking operation on r n to obtain |r n |;
Step S36, judging whether |r n | is larger than V, if yes, carrying out step S37; if the current value is less than V, step S35 is performed;
Step S37, in the duration of the following stable interval T, continuously receiving an |r n | sequence, monitoring the number of times of |r n | > V, if the number exceeds M, recording the current time, storing the current time in a variable T 2, indicating the time when a user knocks the desktop for the second time, and performing step S38; if the current stroke is lower than M, the current stroke is considered to be a noise or invalid stroke, and step S32 is performed;
step S38, calculating a time difference d=t 2–t1 between two adjacent taps on the desktop, and continuing to perform step S32;
Wherein V represents a preset threshold value for comparing the value of r n; t represents a preset stabilizing interval, and represents the duration of a single tap; m represents the preset coincidence times, namely, in a stable interval T, when the times of |r n | > V are larger than or equal to M, an event that a user clicks a desktop is considered to occur; the event detection unit provides a parameter adjustment setting page for a user to adjust preset parameters V, T, M according to the need; the digital shaping module outputs the time difference d between two adjacent strokes of the desktop;
The event detection unit is realized by using an acceleration sensor in the mobile phone, and the method is realized on the basis of the acceleration sensor; the acceleration sensor may also be another sensor, such as a sensor for sensing vibrations. Thus in some embodiments, if a special vibration-sensing sensor is incorporated into the terminal, the value of the vibration-sensing sensor may be directly used to determine if a user double-tap desktop event is a continuous double-tap desktop event.
Referring to fig. 14, the implementation and workflow of the above-mentioned page turning control unit specifically includes:
The page turning control unit simulates the operation effect of clicking or sliding a mobile phone screen by a human hand in a system calling mode;
Step S41, receiving a control signal sent by an event detection unit;
Step S42, starting a sub-thread: when the page turning control unit receives the control signal sent by the event detection unit, the page turning control unit starts a sub-thread;
step S43, creating a java, long, processor, builder object in the sub-thread, wherein the click command or the sliding command is written into a character string array form, and is transmitted into the java, long, processor, builder object as a parameter, and executing the object to realize the page turning operation of the electronic book;
after the sub-thread is started, the main thread of the system page turning service can be prevented from being blocked; creating a process capable of executing shell commands by using the ProcessBuilder objects, wherein the shell commands are command interaction modes provided for users by an operating system;
wherein, the click command character string is in the form of input, tap, x and y, and x and y represent quotation marks, namely character strings;
Wherein the sliding command string is in the form of, for example, "input", "wipe", x 0、y0、x1、y1, t, wherein x 0、y0、x1、y1 and t represent quotation marks, i.e. strings;
Wherein x and y represent screen coordinate values to be clicked; x 0、y0 represents the initial coordinates of the sliding screen; x 1、y1 denotes the screen termination coordinates of the slide; t represents the duration of one slip; the values can be values which are set by a user according to different reading apps, or preset values, and cannot be changed at will by the user;
For most existing book-type apps, clicking the right area of the screen indicates page-backward, clicking the left area of the screen indicates page-forward, clicking the middle area of the screen indicates display of control menu items, etc. Thus, in some embodiments, the screen size is, for example, w×h (width×height), dividing the screen into three parts horizontally and vertically, see fig. 15, then the values of x and y should be in the right part, i.e. 2/3W < x < W,1/3H < y <2/3H; the value of x 0、x1、y0、y1 should be in the middle region, i.e 1/3W<x1<x0<2/3W,x0-x1>1/5W,1/3H<y0=y1<2/3H;t=500ms;
In the above embodiment, the signal that the user continuously taps the desktop event twice is used to represent the backward page turning of the electronic book, and in addition, the signal that the user continuously taps the desktop event three times is used as the backward page turning signal of the electronic book, which is different from the above embodiment, in which the continuous tap event is detected, the backward page turning is that the continuous tap event three times is detected, and the x and y coordinate positions in the clicking command character string need to be modified to be the left part of the screen, that is, 0< x <1/3w,1/3H < y <2/3H.
Referring to fig. 16, the above-mentioned state control unit provides the user with an entry of the interaction page, which may be in the mobile phone setting or in the drop-down shortcut bar; the reading class apps displayed in the interaction page are all from package class names of applications stored in the mobile phone in advance, for example:
<string-array name="appNames">
<item>com.chaozh.iReaderFree/com.zhangyue.iReader.read.ui.Activity_BookBrowser_TXT</item>
<item>com.jd.app.reader/com.jingdong.app.reader.main.ui.JdMainActivity</item>
</string-array>
wherein, the front part of the slash "/" in each item is a packet name, and the rear part is a class name;
The interactive page does not display all the prestored applications in a list form in the diagram, and firstly, a program interface provided by a system is used for judging whether the prestored applications are installed on the mobile phone. If the mobile phone is installed on the mobile phone, displaying; if not installed on the mobile phone, the mobile phone is not displayed. Each item in the list has two keys, both of which can only select one; the user selects the application which is removed, the mobile phone does not provide the page turning function for the application, the user selects the application which is added, and the mobile phone provides the page turning function for the application; the mobile phone defaults to support the page turning function for the pre-stored application.
Referring to fig. 17, the event detecting unit provides a parameter adjustment setting page, and the user can slide the adjustment bar to perform parameter setting. The parameter corresponding to the filter parameter adjustment is the P, the parameter corresponding to the threshold adjustment is the V, the parameter corresponding to the stable interval adjustment is the T, and the parameter corresponding to the coincidence times adjustment is the M. Wherein the adjustment range of P is greater than 0 and less than 1.V, T and M are determined according to the mobile phone condition experiment. And the user clicks a default restoration button to restore the default parameters of the mobile phone factory.
As shown in FIG. 7, when the mobile phone screen is vertically opposite to the user, the x-axis direction is horizontal to the right along the mobile phone screen, the y-axis direction is vertical to the upward along the mobile phone screen, the z-axis direction is vertical to the mobile phone screen, and the x, y and z axes are mutually perpendicular to each other, namely the coordinate system is a right-hand system;
the vibration generated by the user striking the desktop is up-down vibration, referring to the use scene shown in fig. 1, when the mobile phone screen is placed on the desktop upwards, the induction intensity of the z-axis direction in the three-dimensional data (x, y, z) acquired by the acceleration sensor to the up-down vibration of the desktop is maximum; when the top side of the mobile phone is lifted slowly, the induction intensity of the vertical vibration of the desktop in the y-axis direction is gradually increased, the induction intensity in the z-axis direction is gradually reduced, when the included angle between the plane of the screen and the desktop is 45 degrees, the induction intensity in the y-axis direction is the same as the induction intensity in the z-axis direction, and when the angle exceeds 45 degrees, the induction intensity in the y-axis direction is larger than the induction intensity in the z-axis direction;
similarly, when the right side or the left side of the mobile phone is lifted slowly, the induction intensity of the vertical vibration of the desktop in the x-axis direction is gradually increased, the induction intensity in the z-axis direction is gradually reduced, when the included angle between the plane where the screen is positioned and the desktop is 45 degrees, the induction intensity in the x-axis direction is the same as the induction intensity in the z-axis direction, and when the angle exceeds 45 degrees, the induction intensity in the x-axis direction is larger than the induction intensity in the z-axis direction.
The following gives several embodiments of actually measured data (the data is set to 0.3 for digital high-pass filtering processing) and the mobile phone is placed by a horizontal screen or a vertical screen, and the plane of the mobile phone screen and the desktop form different included angles, and the three-dimensional data value (x, y, z) obtained by the acceleration sensor is used for measuring the reaction condition of the three-dimensional data value to knocking vibration.
Embodiment one:
referring to fig. 18, the mobile phone screen is placed on the desktop upwards, and the user taps the desktop to obtain the response condition of the three-dimensional data values (x, y, z) of the acceleration sensor to the tap vibration, namely the induction intensity diagram of the x, y, z axis direction to the desktop vibration; in this case, the amplitude change of the Z value is the largest, and the vibration signal, that is, the induction intensity of the Z axis direction to the vertical vibration of the table top is the largest, can be well reflected.
Embodiment two:
Referring to fig. 19, the mobile phone screen is placed on the support upwards, the included angle between the plane of the mobile phone screen and the desktop is 30 °, and the user knocks the desktop to obtain the response condition of the three-dimensional data value (x, y, z) of the acceleration sensor to the knocking vibration, namely the induction intensity diagram of the x, y, z axis direction to the desktop vibration; in this case, the amplitude change of the Z value is the largest, and the vibration signal, that is, the induction intensity of the Z axis direction to the vertical vibration of the table top is the largest, can be well reflected.
Embodiment III:
Referring to fig. 20, the mobile phone erects a screen and the screen is placed on a bracket upwards, the included angle between the plane of the mobile phone screen and the desktop is 80 degrees, and a user knocks the desktop to obtain the response condition of the three-dimensional data value (x, y, z) of the acceleration sensor to the knocking vibration, namely, the induction intensity diagram of the x, y and z axis directions to the desktop vibration; in this case, the amplitude change of the Y value is the largest, and the vibration signal, that is, the induction intensity of the Y-axis direction to the vertical vibration of the table top is the largest, can be well reflected.
Embodiment four:
Referring to fig. 21, a mobile phone transverse screen is placed on a bracket, the included angle between the plane of the mobile phone screen and a desktop is 30 degrees, and a user knocks the desktop to obtain the response condition of three-dimensional data values (x, y, z) of an acceleration sensor to knocking vibration, namely an induction intensity diagram of x, y and z axis directions to desktop vibration; in this case, the amplitude change of the Z value is the largest, and the vibration signal, that is, the induction intensity of the Z axis direction to the vertical vibration of the table top is the largest, can be well reflected.
Fifth embodiment:
Referring to fig. 22, a mobile phone transverse screen is placed on a bracket, the included angle between the plane of the mobile phone screen and a desktop is 80 degrees, and a user knocks the desktop to obtain the response condition of three-dimensional data values (x, y, z) of an acceleration sensor to knocking vibration, namely an induction intensity diagram of x, y and z axis directions to desktop vibration; in this case, the amplitude of the X value varies the most, and the vibration signal, that is, the induction intensity of the X-axis direction to the vertical vibration of the table top is the greatest, can be reflected well.
Referring to fig. 23, the known mobile phone vertical screen is placed on the support, the included angle between the plane where the mobile phone screen is located and the desktop is 80 °, the parameter value of the filter coefficient P is set to 0.3, the corresponding parameter values of v, T and M are already set, the user opens a certain reading app in the mobile phone to read, and the desktop is continuously knocked twice, and the page turning operation is performed according to the following steps:
step S401, a user opens a reading app in a mobile phone, opens an electronic book to be read into a reading page, and double-clicks a desktop;
step S402, a state control unit of a page turning system service module judges that a reading app which is currently opened by a user runs in a foreground and enters a reading page, and changes a state mark of the reading app into startup;
Step S403, the event detection unit of the page turning system service module determines that the double-click desktop is a continuous double-click desktop event, and sends a control signal to the page turning control unit, and the detailed process is as follows:
the method comprises the steps that through an acceleration sensor in a mobile phone, an event detection unit obtains three-dimensional data values (x, y and z), the maximum induction intensity of the vertical vibration of a desktop in the y-axis direction is obtained through the method, so that y data is used as input of a digital high-pass filter, digital high-pass filtering, amplifying and shaping processing is carried out, the time interval of a user continuously knocking the desktop twice is judged to be within a preset threshold value, the fact that the continuously knocking the desktop twice is determined, and the event detection unit sends a control signal to a page turning control unit;
Step S404, after receiving the control signal sent by step S403, the page turning control unit performs page turning operation on the reading app.
The following describes a device or apparatus provided by an embodiment of the present application, where explanation or illustration of the same or corresponding technical features as those described in the above method is omitted.
Referring to fig. 24, an apparatus for controlling page turning of an electronic book displayed by a terminal according to an embodiment of the present application is, for example, the terminal itself, or a module for executing the above method disposed in the terminal, or a separate apparatus for executing the above method outside the terminal, where the apparatus includes:
the processor 600, configured to read the program in the memory 620, performs the following procedures:
When the terminal is placed on a desktop or placed on the desktop through a bracket, and in the process that the terminal currently displays a reading page of an electronic book, monitoring a vibration signal generated when a user knocks the desktop;
Judging whether a triggering condition for page turning control of a reading page of the electronic book currently displayed by the terminal is met or not by monitoring a vibration signal generated by the user knocking the desktop;
When the trigger condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is determined to be met, controlling the reading page of the electronic book currently displayed by the terminal to perform page turning.
In some embodiments, a status flag is preset to indicate whether to initiate monitoring of a vibration signal generated by a user tapping the desktop;
When the electronic book runs at the foreground of the terminal and enters a reading page, the state mark is set to be in a starting state, otherwise, the state mark is set to be in a closing state;
When the state mark is in a starting state, starting to monitor a vibration signal generated by a user knocking the desktop;
and stopping monitoring a vibration signal generated by the user knocking the desktop when the state mark is in a closed state.
In some embodiments, the determining whether the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met by monitoring a vibration signal generated by the user clicking the desktop includes:
Monitoring a vibration signal generated by the user striking the desktop through an acceleration sensor in the terminal;
Acquiring acceleration values in the x, y and z three-dimensional directions output by an acceleration sensor in the terminal;
according to the included angle between the terminal and the desktop and/or the placement state of the terminal on a vertical screen or a horizontal screen, selecting an acceleration value of one dimension from acceleration values of the acceleration sensor in the x, y and z three-dimensional directions;
And judging whether a triggering condition for page turning control of the reading page of the electronic book currently displayed by the terminal is met or not according to the selected acceleration value.
In some embodiments, according to an included angle between the terminal and the desktop and/or a placement state of the terminal on a vertical screen or a horizontal screen, selecting an acceleration value of one dimension from acceleration values of the acceleration sensor in x, y, z three-dimensional directions, including:
If the included angle between the terminal and the desktop is smaller than 45 degrees and larger than 0 degrees, selecting an acceleration value in the z direction;
if the terminal is a vertical screen placed on the bracket and the included angle between the terminal and the desktop is more than 45 degrees and less than 90 degrees, selecting an acceleration value in the y direction;
and if the terminal is that the transverse screen is placed on the bracket and the included angle between the transverse screen and the desktop is larger than 45 degrees and smaller than 90 degrees, selecting an acceleration value in the x direction.
In some embodiments, according to the selected acceleration value, determining whether a trigger condition for performing page turning control on a read page of the electronic book currently displayed by the terminal is satisfied includes:
inputting the selected acceleration value into a digital high-pass filter for digital high-pass filtering processing to obtain an output signal;
Continuously acquiring the output signal of the digital high-pass filter within a preset time period if the absolute value of the output signal is larger than a preset threshold value, and recording the current moment as a first moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired within the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; then, continuously waiting for the output signal of the digital high-pass filter, continuously acquiring the output signal of the digital high-pass filter in a preset time period if the absolute value of the output signal of the digital high-pass filter is acquired to be larger than a preset threshold value, and recording the current moment as a second moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired in the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; and determining a time interval between the first time and the second time;
and when the time interval between the first time and the second time is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
In some embodiments, the processor 600 is further configured to read the program in the memory 620, and perform the following:
Outputting an interaction page to a user for the user to modify one or a combination of the following parameters:
the filter coefficient of the digital high-pass filter;
the preset threshold value;
The preset duration;
The preset times threshold value.
In some embodiments, the determining whether the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met by monitoring a vibration signal generated by the user clicking the desktop includes:
determining that two consecutive vibrations occur by a sensor for sensing the vibrations provided in the terminal;
When the time interval of the continuous two-time vibration is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
In some embodiments, the device for controlling the electronic book page turning displayed by the terminal according to the embodiment of the present application further includes a transceiver 610, configured to receive and transmit data under the control of the processor 600.
Wherein in fig. 24, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by the processor 600 and various circuits of the memory represented by the memory 620, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. Transceiver 610 may be a number of elements, including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium.
In some embodiments, the device for controlling the electronic book page turning displayed by the terminal according to the embodiment of the present application further includes a user interface 630, where the user interface 630 may be an interface capable of being externally connected to a device that is required to be connected, and the connected device includes, but is not limited to, a keypad, a display, a speaker, a microphone, a joystick, and the like.
The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 may store data used by the processor 600 in performing operations.
In some embodiments, the processor 600 may be a CPU (Central processing Unit), ASIC (application SPECIFIC INTEGRATED Circuit), FPGA (field-programmable Gate array GATE ARRAY), or CPLD (Complex Programmable Logic Device ).
The embodiment of the application provides terminal equipment which can be a mobile phone, a tablet personal computer, a computer, electronic book reading equipment and the like. The terminal device may include a memory, and a processor, where the memory may be configured to store a program of any of the methods provided in the embodiments of the present application, and the processor is configured to execute any of the methods provided in the embodiments of the present application according to the obtained program instructions by calling the program instructions stored in the memory.
The embodiment of the application provides a computing device which can be a desktop computer, a portable computer, a smart phone, a tablet Personal computer, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA) and the like. The computing device may include a central processing unit (Center Processing Unit, CPU), memory, input/output devices, etc., the input devices may include a keyboard, mouse, touch screen, etc., and the output devices may include a display device, such as a liquid crystal display (liquid CRYSTAL DISPLAY, LCD), cathode Ray Tube (CRT), etc.
The memory may include Read Only Memory (ROM) and Random Access Memory (RAM) and provides the processor with program instructions and data stored in the memory. In the embodiment of the present application, the memory may be used to store a program of any of the methods provided in the embodiment of the present application.
The processor is configured to execute any of the methods provided by the embodiments of the present application according to the obtained program instructions by calling the program instructions stored in the memory.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method of any of the above embodiments. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
An embodiment of the present application provides a computer readable storage medium storing computer program instructions for use in an apparatus provided in the embodiment of the present application, where the computer program instructions include a program for executing any one of the methods provided in the embodiment of the present application. The computer readable storage medium may be a non-transitory computer readable medium.
The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including, but not limited to, magnetic storage (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (mos), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), and semiconductor storage (e.g., ROM, EPROM, EEPROM, nonvolatile storage (NAND FLASH), solid State Disk (SSD)), etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. The method for controlling the page turning of the electronic book displayed by the terminal is characterized by comprising the following steps:
When the terminal is placed on a desktop or placed on the desktop through a bracket, and in the process that the terminal currently displays a reading page of an electronic book, monitoring a vibration signal generated when a user knocks the desktop;
Judging whether a triggering condition for page turning control of a reading page of the electronic book currently displayed by the terminal is met or not by monitoring a vibration signal generated by the user knocking the desktop;
When the triggering condition of page turning control on the reading page of the electronic book currently displayed by the terminal is met, controlling the reading page of the electronic book currently displayed by the terminal to turn pages;
The method for judging whether the triggering condition of page turning control on the reading page of the electronic book currently displayed by the terminal is met or not by monitoring the vibration signal generated by the user clicking the desktop comprises the following steps:
Monitoring a vibration signal generated by the user striking the desktop through an acceleration sensor in the terminal;
Acquiring acceleration values in the x, y and z three-dimensional directions output by an acceleration sensor in the terminal;
according to the included angle between the terminal and the desktop and/or the placement state of the terminal on a vertical screen or a horizontal screen, selecting an acceleration value of one dimension from acceleration values of the acceleration sensor in the x, y and z three-dimensional directions;
And judging whether a triggering condition for page turning control of the reading page of the electronic book currently displayed by the terminal is met or not according to the selected acceleration value.
2. The method of claim 1, wherein a status flag is preset to indicate whether monitoring of vibration signals generated by a user striking the desktop is enabled;
When the electronic book runs at the foreground of the terminal and enters a reading page, the state mark is set to be in a starting state, otherwise, the state mark is set to be in a closing state;
When the state mark is in a starting state, starting to monitor a vibration signal generated by a user knocking the desktop;
and stopping monitoring a vibration signal generated by the user knocking the desktop when the state mark is in a closed state.
3. The method according to claim 1, wherein selecting an acceleration value of one dimension from acceleration values of the acceleration sensor in x, y, z three-dimensional directions according to an included angle between the terminal and a desktop and/or a placement state of the terminal on a vertical screen or a horizontal screen comprises:
If the included angle between the terminal and the desktop is smaller than 45 degrees and larger than 0 degrees, selecting an acceleration value in the z direction;
if the terminal is a vertical screen placed on the bracket and the included angle between the terminal and the desktop is more than 45 degrees and less than 90 degrees, selecting an acceleration value in the y direction;
and if the terminal is that the transverse screen is placed on the bracket and the included angle between the transverse screen and the desktop is larger than 45 degrees and smaller than 90 degrees, selecting an acceleration value in the x direction.
4. The method of claim 1, wherein determining whether a trigger condition for performing page turning control on a read page of an electronic book currently displayed by the terminal is satisfied according to the selected acceleration value comprises:
inputting the selected acceleration value into a digital high-pass filter for digital high-pass filtering processing to obtain an output signal;
Continuously acquiring the output signal of the digital high-pass filter within a preset time period if the absolute value of the output signal is larger than a preset threshold value, and recording the current moment as a first moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired within the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; then, continuously waiting for the output signal of the digital high-pass filter, continuously acquiring the output signal of the digital high-pass filter in a preset time period if the absolute value of the output signal of the digital high-pass filter is acquired to be larger than a preset threshold value, and recording the current moment as a second moment if the number of times that the absolute value of the output signal of the digital high-pass filter continuously acquired in the preset time period is larger than the preset threshold value is larger than a preset number of times threshold value; and determining a time interval between the first time and the second time;
and when the time interval between the first time and the second time is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
5. The method according to claim 4, wherein the method further comprises:
Outputting an interaction page to a user for the user to modify one or a combination of the following parameters:
the filter coefficient of the digital high-pass filter;
the preset threshold value;
The preset duration;
The preset times threshold value.
6. The method of claim 1, wherein determining whether a trigger condition for performing page turning control on a read page of an electronic book currently displayed by the terminal is satisfied by monitoring a vibration signal generated by the user clicking a desktop, comprises:
determining that two consecutive vibrations occur by a sensor for sensing the vibrations provided in the terminal;
When the time interval of the continuous two-time vibration is larger than the preset time interval lower limit and smaller than the preset time interval upper limit, determining that the triggering condition for performing page turning control on the reading page of the electronic book currently displayed by the terminal is met.
7. The device for controlling the page turning of the electronic book displayed by the terminal is characterized by comprising the following components:
A memory for storing program instructions;
a processor for invoking program instructions stored in said memory to perform the method of any of claims 1 to 6 in accordance with the obtained program.
8. A terminal device, comprising:
A memory for storing program instructions;
a processor for invoking program instructions stored in the memory to perform the method of any of claims 1-6 in accordance with the obtained program.
9. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 6.
CN202210711073.6A 2022-06-22 2022-06-22 Method and device for controlling electronic book page turning displayed by terminal Active CN115185425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210711073.6A CN115185425B (en) 2022-06-22 2022-06-22 Method and device for controlling electronic book page turning displayed by terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210711073.6A CN115185425B (en) 2022-06-22 2022-06-22 Method and device for controlling electronic book page turning displayed by terminal

Publications (2)

Publication Number Publication Date
CN115185425A CN115185425A (en) 2022-10-14
CN115185425B true CN115185425B (en) 2024-04-19

Family

ID=83515208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210711073.6A Active CN115185425B (en) 2022-06-22 2022-06-22 Method and device for controlling electronic book page turning displayed by terminal

Country Status (1)

Country Link
CN (1) CN115185425B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100011357A (en) * 2008-07-25 2010-02-03 이노디지털 주식회사 E-book device having enhanced function of turning page
KR20100033242A (en) * 2008-09-19 2010-03-29 광운대학교 산학협력단 Driving method of electronic book terminal and the terminal thereby
JP2013228771A (en) * 2012-04-24 2013-11-07 Panasonic Corp Electronic apparatus
CN104765455A (en) * 2015-04-07 2015-07-08 中国海洋大学 Man-machine interactive system based on striking vibration
CN106384568A (en) * 2016-11-21 2017-02-08 丹阳伦图电子技术有限公司 Electronic music book turning device with automatic page turning function
CN111538697A (en) * 2020-04-23 2020-08-14 掌阅科技股份有限公司 Page turning processing method of electronic book, electronic equipment and computer storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180007340A1 (en) * 2016-06-29 2018-01-04 Barbara Carey Stachowski Method and system for motion controlled mobile viewing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100011357A (en) * 2008-07-25 2010-02-03 이노디지털 주식회사 E-book device having enhanced function of turning page
KR20100033242A (en) * 2008-09-19 2010-03-29 광운대학교 산학협력단 Driving method of electronic book terminal and the terminal thereby
JP2013228771A (en) * 2012-04-24 2013-11-07 Panasonic Corp Electronic apparatus
CN104765455A (en) * 2015-04-07 2015-07-08 中国海洋大学 Man-machine interactive system based on striking vibration
CN106384568A (en) * 2016-11-21 2017-02-08 丹阳伦图电子技术有限公司 Electronic music book turning device with automatic page turning function
CN111538697A (en) * 2020-04-23 2020-08-14 掌阅科技股份有限公司 Page turning processing method of electronic book, electronic equipment and computer storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Mobile haptic e-book system to support 3D immersive reading in ubiquitous environments;Kazi Masudul Alam等;ACM Transactions on Multimedia Computing;20130819;第9卷(第4期);1–20 *
Taichi Tajika 等.Intuitive page-turning interface of e-books on flexible e-paper based on user studies.MM '08: Proceedings of the 16th ACM international conference on Multimedia.2008,793–796. *
智能终端页面切换技术专利综述;肖亦然;肖薇;;中国发明与专利(第07期);全文 *

Also Published As

Publication number Publication date
CN115185425A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US7671756B2 (en) Portable electronic device with alert silencing
US11934848B2 (en) Control display method and electronic device
WO2019105227A1 (en) Application icon display method, terminal, and computer readable storage medium
CN109407921B (en) Application processing method and terminal device
JP7393548B2 (en) Application sharing methods, electronic devices and computer readable storage media
CN107580143B (en) A kind of display methods and mobile terminal
WO2018214885A1 (en) Radio frequency interference processing method and electronic device
CN109683763A (en) A kind of icon moving method and mobile terminal
WO2020238408A1 (en) Application icon display method and terminal
CN108984066B (en) Application icon display method and mobile terminal
EP4057137A1 (en) Display control method and terminal device
CN106980445A (en) Manipulate the awaking method and device, electronic equipment of menu
CN110244884B (en) Desktop icon management method and terminal equipment
KR20130082352A (en) Apparatus and method for zooming touch screen in electronic device
CN108108113A (en) Webpage switching method and device
CN109085985A (en) Sounding control method, device, electronic device and storage medium
CN108388396A (en) A kind of interface switching method and mobile terminal
CN113409427A (en) Animation playing method and device, electronic equipment and computer readable storage medium
KR20160026135A (en) Electronic device and method of sending a message using electronic device
WO2021098460A1 (en) Screenshot display method and apparatus, and terminal device
CN115185425B (en) Method and device for controlling electronic book page turning displayed by terminal
CN112832737A (en) Shale gas well EUR determination method, device, equipment and storage medium
CN111045588B (en) Information viewing method and electronic equipment
CN109407915A (en) A kind of method and terminal arranging object
CN108509121B (en) Display method and device and 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
CB02 Change of applicant information

Country or region after: China

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant