CN115016701A - Page turning method and device, computer equipment and storage medium - Google Patents

Page turning method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115016701A
CN115016701A CN202210878747.1A CN202210878747A CN115016701A CN 115016701 A CN115016701 A CN 115016701A CN 202210878747 A CN202210878747 A CN 202210878747A CN 115016701 A CN115016701 A CN 115016701A
Authority
CN
China
Prior art keywords
page
view
page turning
information
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210878747.1A
Other languages
Chinese (zh)
Inventor
肖仕林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210878747.1A priority Critical patent/CN115016701A/en
Publication of CN115016701A publication Critical patent/CN115016701A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing

Abstract

The disclosure provides a page turning method, a page turning device, computer equipment and a storage medium, wherein the page turning method comprises the following steps: acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page; responding to the triggered page turning operation, and determining first region information and second region information in the first view and third region information in a target view matched with the page turning direction according to a page foot position point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; determining, with a graphics processor, a first partial view matching the first region information and a second partial view matching the second region information based on the first view; and determining a third partial view matched with the third area information based on the target view; and performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page-turning view.

Description

Page turning method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a page turning method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of internet technology, various intelligent devices are continuously present in the lives of people. The emergence of various intelligent devices has greatly facilitated people's life. For example, people can read books anytime and anywhere through smart devices. For book reading, the book reading application installed in the smart device may be utilized.
When a book reading application program is used for reading, page turning effect simulation is usually required for page turning behaviors of a book, and page turning display is completed in a simulated page turning animation mode. However, in general, the simulation of the page-turning effect has the problems of unstable device frame rate, long calculation time, and unsmooth page-turning, which results in an unsatisfactory page-turning effect.
Disclosure of Invention
The embodiment of the disclosure at least provides a page turning method and device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a page turning method, including:
acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page;
responding to a triggered page turning operation, and determining first region information and second region information in the first view and third region information in a target view matched with a page turning direction according to a page foot position point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; the target view is the second view or the third view;
determining, with a graphics processor, a first partial view matching the first region information and a second partial view matching the second region information based on the first view; and determining a third partial view matching with the third area information based on the target view;
and performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page turning view matched with the page turning trigger point.
In a possible implementation manner, after the performing the joint rendering on the first partial view, the second partial view, and the third partial view to obtain a page-turning view matching the page-turning operation, the method further includes:
acquiring a page turning sliding track matched with the page turning operation;
determining a page turning view corresponding to each track point except the page turning trigger point in the page turning sliding track;
and generating a simulation page turning animation matched with the page turning operation based on the page turning view respectively corresponding to each track point in the page turning sliding track.
In a possible implementation manner, the determining, according to a footer location point corresponding to a page turning direction and a page turning trigger point indicated by the page turning operation, first area information and second area information in the first view, and third area information in a target view matched with the page turning direction includes:
determining region boundary curve information between a first region and a second region according to the position information of the page turning trigger point and the position information of the footer position point;
determining the first area information according to the area boundary curve information;
determining the second area information according to the position information of the page turning trigger point and the first area information;
and determining the third area information according to the first area information, the second area information and the page size information of the current display page.
In one possible embodiment, determining that the target view matches the page flipping direction includes:
establishing a page coordinate system by taking any page vertex of the current display page as an origin, taking the width direction of the current display page as a transverse axis direction and taking the height direction of the current display page as a longitudinal axis direction;
in the page coordinate system, determining a first abscissa value of any point in a vertical bisector of the currently displayed page and a second abscissa value of the page turning trigger point;
determining the target view as the third view when the first abscissa value is smaller than the second abscissa value;
and under the condition that the first abscissa value is not smaller than the second abscissa value, determining the target view as the second view.
In a possible implementation manner, before acquiring a first view corresponding to a current displayed page of a book, a second view corresponding to a previous page of the current displayed page, and a third view corresponding to a next page of the current displayed page, the method further includes:
responding to the operation of starting the book reading application program, and acquiring equipment attribute information corresponding to the terminal equipment; the book reading application program is installed in the terminal equipment;
the obtaining a first view corresponding to a current display page of the book, a second view corresponding to a previous page of the current display page, and a third view corresponding to a next page of the current display page includes:
and under the condition that the equipment attribute information meets a preset condition, determining a current display page of the book, and acquiring a first view corresponding to the current display page of the book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page.
In a possible implementation manner, determining that the device attribute information satisfies a preset condition includes:
determining that the equipment attribute information meets a preset condition when the equipment frame rate in the equipment attribute information is greater than a preset frame rate threshold; alternatively, the first and second electrodes may be,
when the device frame rate in the device attribute information is equal to a preset frame rate threshold and the device performance score is not less than a preset score threshold, determining that the device attribute information meets a preset condition; and the equipment performance score is determined after the terminal equipment is subjected to performance test by using a target score measuring platform.
In a possible implementation manner, determining that the device attribute information satisfies a preset condition includes:
when the parameter information in the equipment attribute information is matched with the sample parameter of any sample equipment, determining that the equipment attribute information meets a preset condition; the parameter information comprises operating system parameters and/or equipment parameters, and the sample equipment determines that the average frame rate of the plurality of simulated page turning animations is greater than the test frame rate corresponding to the sample equipment after the simulated page turning animations corresponding to the plurality of page turning operations are generated respectively.
In a second aspect, an embodiment of the present disclosure further provides a page turning device, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page;
a first determining module, configured to determine, in response to a triggered page-turning operation, first area information and second area information in the first view and third area information in a target view that is matched with a page-turning direction according to a footer location point corresponding to the page-turning direction and a page-turning trigger point indicated by the page-turning operation; the target view is the second view or the third view;
a second determination module to determine, with a graphics processor, based on the first view, a first partial view that matches the first region information and a second partial view that matches the second region information; and determining a third partial view matching with the third area information based on the target view;
and the rendering module is used for performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page turning view matched with the page turning trigger point.
In a possible implementation manner, the rendering module is further configured to, after the splicing rendering is performed on the first partial view, the second partial view, and the third partial view to obtain a page-turning view matched with the page-turning operation, obtain a page-turning sliding track matched with the page-turning operation;
determining a page turning view corresponding to each track point except the page turning trigger point in the page turning sliding track;
and generating a simulation page turning animation matched with the page turning operation based on the page turning view respectively corresponding to each track point in the page turning sliding track.
In a possible embodiment, when the page foot position point corresponding to the page turning direction and the page turning trigger point indicated by the page turning operation are used to determine first area information and second area information in the first view, and third area information in a target view matched with the page turning direction, the first determining module is configured to determine, according to the position information of the page turning trigger point and the position information of the page foot position point, area boundary curve information between the first area and the second area;
determining the first area information according to the area boundary curve information;
determining the second area information according to the position information of the page turning trigger point and the first area information;
and determining the third area information according to the first area information, the second area information and the page size information of the current display page.
In a possible implementation manner, when determining that the target view matches the page turning direction, the first determining module is configured to establish a page coordinate system by using any page vertex of the current display page as an origin, the width direction of the current display page as a horizontal axis direction, and the height direction of the current display page as a vertical axis direction;
in the page coordinate system, determining a first abscissa value of any point in a vertical bisector of the currently displayed page and a second abscissa value of the page turning trigger point;
determining the target view as the third view when the first abscissa value is smaller than the second abscissa value;
and under the condition that the first abscissa value is not smaller than the second abscissa value, determining the target view as the second view.
In a possible embodiment, the apparatus further comprises:
the second acquisition module is used for responding to the operation of starting a book reading application program before acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page, and acquiring equipment attribute information corresponding to terminal equipment; the book reading application program is installed in the terminal equipment;
the first obtaining module is used for determining the current display page of the book under the condition that the equipment attribute information meets preset conditions when obtaining a first view corresponding to the current display page of the book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page, and obtaining the first view corresponding to the current display page of the book, the second view corresponding to the previous page of the current display page and the third view corresponding to the next page of the current display page.
In a possible implementation manner, when it is determined that the device attribute information meets a preset condition, the first obtaining module is configured to determine that the device attribute information meets the preset condition, where a device frame rate in the device attribute information is greater than a preset frame rate threshold; alternatively, the first and second electrodes may be,
when the device frame rate in the device attribute information is equal to a preset frame rate threshold and the device performance score is not less than a preset score threshold, determining that the device attribute information meets a preset condition; and the equipment performance score is determined after the terminal equipment is subjected to performance test by using a target score measuring platform.
In a possible implementation manner, when it is determined that the device attribute information meets a preset condition, the first obtaining module is configured to determine that the device attribute information meets the preset condition when parameter information in the device attribute information is matched with a sample parameter of any sample device; the parameter information comprises operating system parameters and/or equipment parameters, and the sample equipment determines that the average frame rate of the plurality of simulated page turning animations is greater than the test frame rate corresponding to the sample equipment after the simulated page turning animations corresponding to the plurality of page turning operations are generated respectively.
In a third aspect, this disclosure also provides a computer device, a processor, and a memory, where the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions are executed by the processor to perform the steps in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, this disclosure also provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
For the description of the effect of the page turning device, the computer device, and the computer readable storage medium of the page, reference is made to the description of the page turning method of the page, which is not repeated herein.
According to the page turning method and device, the computer device and the storage medium provided by the embodiment of the disclosure, based on the page turning trigger point and the footer position point, the first region information and the second region information corresponding to the first view and the third region information corresponding to the target attempt can be accurately determined; and then, by using the image processor, a first partial view matched with the first area information and a second partial view matched with the second area information are determined from the first view, and a third partial view matched with the third area information is determined from the target view. Since the image processor has good view processing performance, the speed and efficiency of obtaining the first, second, and third partial views can be improved by directly processing the views using the image processor. Then, by means of splicing and rendering the first partial view, the second partial view and the third partial view, the page turning view matched with the page turning trigger point can be obtained quickly and accurately, the page turning view can be drawn stably, and the problem of page turning blockage is avoided.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flowchart of a page turning method provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a current presentation page provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a page turning view provided by an embodiment of the present disclosure;
fig. 4 illustrates a schematic diagram for determining first region information, second region information, and third region information provided by an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating a comparison of frame rates of a device provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a page turning device for pages provided by the embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of embodiments of the present disclosure, as generally described and illustrated herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Furthermore, the terms "first," "second," and the like in the description and in the claims, and in the drawings described above, in the embodiments of the present disclosure are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
Reference herein to "a plurality or a number" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Research shows that aiming at the simulation of page turning effect, the prior art adopts the following modes: a Central Processing Unit (CPU) is used to draw a bitmap (bitmap) corresponding to a view of a current display page, a bitmap corresponding to a view of a previous page of the current display page and a bitmap corresponding to a view of a next page of the current display page, and memory space is allocated in the CPU for the three bitmaps to store. When the page turning operation is determined to exist, a target bitmap needing to be processed is determined from the three stored bitmaps, and then the target bitmap is processed, so that the simulated page turning animation corresponding to the page turning operation can be obtained. The whole simulation process requires the CPU to store the bitmap and also requires the CPU to process the calculated target bitmap, so that a large processing pressure is brought to the CPU, the problems of unstable equipment frame rate, long calculation time, page turning blockage and the like exist in the whole simulation process, and the page turning experience of books is influenced.
Based on the research, the disclosure provides a page turning scheme, and based on a page turning trigger point and a footer position point, first region information and second region information corresponding to a first view and third region information corresponding to a target attempt can be accurately determined; and then, by using the image processor, a first partial view matched with the first area information and a second partial view matched with the second area information are determined from the first view, and a third partial view matched with the third area information is determined from the target view. Since the image processor has good view processing performance, the speed and efficiency of obtaining the first, second and third partial views can be improved by directly processing the views using the image processor. Then, by means of splicing and rendering the first partial view, the second partial view and the third partial view, the page turning view matched with the page turning trigger point can be obtained quickly and accurately, the page turning view can be drawn stably, and the problem of page turning blockage is avoided.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, a page turning method disclosed in the present disclosure is described in detail, where an execution main body of the page turning method provided in the present disclosure is generally a terminal device or other processing device with certain computing capability, where the terminal device may be a User Equipment (UE), a mobile device, a User terminal, a Personal Digital Assistant (PDA), a handheld device, a computer device, and the like; in some possible implementations, the page turning method of the page may be implemented by the processor calling computer readable instructions stored in the memory.
The page turning method provided by the embodiment of the disclosure is described below by taking an execution subject as a terminal device as an example.
As shown in fig. 1, a flowchart of a page turning method provided in the embodiment of the present disclosure may include the following steps:
s101: the method comprises the steps of obtaining a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page.
Here, the book may be any book that can be acquired through a network, for example, a web novel, a web prose, a web periodical, and the like. Specifically, the book reading application installed in the terminal device may be used to read the book, or the browser in the terminal device may be used to read the book at the web page side.
Books typically include a plurality of pages, one page corresponding to a page number, and each page may include different book contents, and the page size of each page in the book is uniform. The currently displayed page is a page currently being read, such as page one, page 100, page 500, etc. of the book. The View is View, and the View of each page includes all information in the page, such as text information, title information, picture information, page frame information and the like corresponding to the page; the view may be presented on the screen of the terminal device in the form of a component. The previous page of the current display page is a page with a page number adjacent to that of the current display page and a page number smaller than that of the current display page; the next page of the current display page is a page with a page number adjacent to that of the current display page and a page number larger than that of the current display page. Illustratively, the currently displayed page is 50 pages, the previous page is 49 pages, and the next page is 51 pages.
The first view is the view corresponding to the current display page, the second view is the view corresponding to the previous page, and the third view is the view corresponding to the next page.
In specific implementation, when a user opens any book through the book reading application program, the terminal device may determine a page that needs to be displayed currently, that is, a currently displayed page, and then may obtain a first view corresponding to the currently displayed page, a second view corresponding to a previous page, and a third view corresponding to a next page.
S102: responding to the triggered page turning operation, and determining first region information and second region information in the first view and third region information in the target view matched with the page turning direction according to a page foot position point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; the target view is the second view or the third view.
Here, the page turning operation is an operation initiated by a user, and different page turning operations correspond to different page turning directions. Specifically, the page turning direction may include a direction of turning a page forward and a direction of turning a page backward. The page turning trigger point indicated by the page turning operation may specifically be a click position on a screen of the terminal device when the user determines that page turning is required. As shown in fig. 2, a schematic diagram of a currently displayed page provided by an embodiment of the present disclosure is shown, where a page turning trigger point may be any position point in the page shown in fig. 2, and a footer position point corresponding to a page turning direction is a W point when the page turning direction is a backward page turning direction; and under the condition that the page turning direction is a forward page turning direction, the position point of the page foot corresponding to the page turning direction is the U point.
The first region information is used to characterize a view range (hereinafter, referred to as a first region) in the first view that matches the page flipping operation, and the second region information is used to characterize a view range (hereinafter, referred to as a second region) in the flipped view that matches the page flipping operation after the first view is flipped. The target view is associated with a page turning direction indicated by the page turning operation. Specifically, when the page turning direction is a backward page turning direction, the target view is a third view; and when the page turning direction is a forward page turning direction, the target view is the second view. The third area information is used to characterize a view range in the third view (i.e., the third area hereinafter) that matches the page flip operation. As shown in fig. 3, a schematic diagram of a page turning view provided by the embodiment of the present disclosure is shown, where a page turning operation corresponding to the page turning view shown in an image is to turn a page backward, area information corresponding to an area a is first area information corresponding to a first view, area information corresponding to an area B is second area information corresponding to the first view, area information corresponding to an area C is third area information corresponding to a target view, and in fig. 3, the target view is a third view.
In specific implementation, when a user has a page turning requirement, the page turning operation can be triggered by clicking any position point in a screen of the terminal equipment. And then, the terminal device can respond to the page turning operation triggered by the user and determine the page turning direction and the page turning trigger point corresponding to the page turning operation. Meanwhile, a footer position point matched with the page turning direction and a target view matched with the page turning operation can be determined.
In an embodiment, the page turning direction corresponding to the page turning operation and the target view matched with the page turning operation may be determined according to the following steps:
step one, establishing a page coordinate system by taking any page vertex of a current display page as an origin, taking the width direction of the current display page as a horizontal axis direction and taking the height direction of the current display page as a longitudinal axis direction.
Here, the page vertices of any page may include 4, the current display page also includes 4 page vertices, the U point, the V point, the W point, and the Z point in fig. 2 are each page vertex corresponding to the current display page, where the U point and the W point are also two footer position points corresponding to the current display page at the same time. In fig. 2, the width direction of the current display page may be the direction of the straight line VZ or the direction of the straight line UW; the height direction of the currently displayed page is the direction of the straight line VU or the direction of the straight line ZW.
Fig. 2 shows a schematic diagram of a page coordinate system, where the origin of the page coordinate system is a page vertex V, the positive direction of the abscissa, i.e., the positive direction of the X-axis, is the direction of a ray VZ, and the positive direction of the ordinate, i.e., the positive direction of the Y-axis, is the direction of a ray VU.
And step two, determining a first abscissa value of any point in a vertical bisector of the current display page and a second abscissa value of the page turning trigger point in a page coordinate system.
The present step is still illustrated by taking fig. 2 as an example:
the perpendicular bisector of the current display page is the straight line up in fig. 2, and since the first abscissa values of any point in the perpendicular bisector up of the current display page in the page coordinate system are the same, any point in the perpendicular bisector can be selected as the reference point, and then the first abscissa value of the reference point in the page coordinate system is determined. Meanwhile, the horizontal coordinate value of the page turning trigger point in the horizontal axis direction in the page coordinate system can be determined, and the value is taken as a second horizontal coordinate value.
Step three, under the condition that the first abscissa value is smaller than the second abscissa value, determining the target view as the third view; and under the condition that the first abscissa value is not less than the second abscissa value, determining the target view as a second view.
In particular implementations, after determining the first abscissa value and the second abscissa value, a magnitude relationship between the first abscissa value and the second abscissa value can be determined. And under the condition that the first abscissa value is smaller than the second abscissa value, the page trigger point is positioned on the right half part of the page, and the probability that the page is turned backwards is higher. In this case, the page turning direction corresponding to the page turning operation may be determined as a backward page turning direction, and the target view matched with the page turning direction may be determined as the third view. On the contrary, in the case that the first abscissa value is determined to be not less than the second abscissa value, it indicates that the page trigger point is located in the left half of the page, and the probability of turning the page forward is relatively high. In this case, the page turning direction corresponding to the page turning operation may be determined as the forward page turning direction, and the target view matched with the page turning direction may be determined as the second view.
Therefore, the page turning direction and the target view are determined in a page coordinate system establishing mode, and the accuracy of the determined page turning direction and the target view can be guaranteed.
Further, for the above S102, after the target view is determined, according to the position information of the footer position point and the page turning trigger point position information corresponding to the page turning direction, first area information corresponding to the first view, second area information corresponding to the view in which the first view is turned, and third area information corresponding to the target view may be determined.
In one embodiment, the step of determining the first area information, the second area information and the third area information in S102 may be implemented as the following steps:
s102-1: and determining the region boundary curve information between the first region and the second region according to the position information of the page turning trigger point and the position information of the footer position point.
Here, the position information of the page turning trigger point may be coordinate information of the page turning trigger point, the position information of the footer position point may be coordinate information of the footer position point, and the coordinate information may be determined according to a page coordinate system established in advance. The first area is the area range indicated by the first area information, and the second area is the area range indicated by the second area information. The region boundary curve information may specifically be a curve equation corresponding to a boundary curve between the first region and the second region.
As shown in fig. 4, a schematic diagram for determining first area information, second area information, and third area information is provided for the embodiment of the present disclosure.
Taking the page turning direction as an example of turning the page backward, the first area information, the second area information, and the third area information may be determined with reference to each position point shown in fig. 4. Specifically, the page turning trigger point is the point m in fig. 4, and the page position point corresponding to the page turning direction is the point n in fig. 4. According to the position information of the m point and the position information of the n point, intersection points e and f of a vertical bisector 1 of the outgoing line section mn and the edge of the currently displayed page can be determined, wherein the midpoint of the vertical bisector 1 is represented by o. And determining the intersection points a and a' of the vertical bisector 2 of the line segment mo and the edge of the current display page according to the position information of the m point and the position information of the o point, wherein the middle point of the vertical bisector 2 is represented by g. And determining intersection points c and c' of the perpendicular bisector 3 of the segment go and the edge of the current display page according to the position information of the point g and the position information of the point o, wherein the middle point of the perpendicular bisector 3 is denoted by h. According to the position information of the m point and the e point in the straight line me, the position information of the a point and the a 'point in the straight line aa', the position information of the intersection point b of the straight line me and the straight line aa 'is determined, and similarly, the position information of the intersection point b' of the straight line mf and the straight line aa ', the position information of the intersection point d of the straight line me and the straight line cc', and the position information of the intersection point d 'of the straight line mf and the straight line cc' can be obtained.
Further, point e may be a vertex, and point a and point b may be bottom points, and according to the position information of point e, the position information of point a, and the position information of point b, a second order bezier curve aeb corresponding to point aeb may be determined, and at the same time, point f may be a vertex, and point a 'and point b' may be bottom points, a second order bezier curve a 'fb' corresponding to point a 'fb' may be determined.
Then, the path "bezier curve aeb-bm-mb ' — bezier curve a ' fb '" may be used as a region boundary curve between the first region and the second region, and further, based on the position information of each point included in the region boundary curve, a curve equation corresponding to the boundary curve, that is, region boundary curve information may be determined.
S102-2: and determining first area information according to the area boundary curve information.
In a specific implementation, after obtaining the area boundary curve information, a first area (i.e., area a in fig. 4) in the first view of the current display page may be determined according to a curve equation indicated by the area boundary curve information and size information of the current display page, and then the first area information may be determined according to position information of the first area in the current display page.
S102-3: and determining second area information according to the position information of the page turning trigger point and the first area information.
In a specific implementation, the initial region may be determined based on the position information of each point in the middle point-b '-m' of the middle point-c'd' of the path "m-b-cd". Then, an overlapping area between the initial area and the first area indicated by the first area information is determined, and the second area (i.e., the B area in fig. 4) is obtained by subtracting the overlapping area from the initial area. And then, determining second area information according to the position information of the second area in the turning page of the current display page.
S102-4: and determining third area information according to the first area information, the second area information and the page size information of the current display page.
Here, the page size information is used to represent a page size of the currently displayed page, and the page size may specifically include a page width and a page height.
In specific implementation, the third area (i.e., area C in fig. 4) corresponding to the target view can be obtained by subtracting the first area represented by the first area information from the page area corresponding to the page size represented by the page size information and subtracting the second area represented by the second area information from the page area represented by the page size information. Then, the third area information may be determined according to the position information of the third area in the next page corresponding to the target view.
S103: determining, with a graphics processor, a first partial view matching the first region information and a second partial view matching the second region information based on the first view; and determining a third partial view matched with the third area information based on the target view.
Here, a Graphics Processing Unit (GPU) is a processing unit in the terminal device, and may be dedicated to processing a view corresponding to an image. The first partial view is a partial view in the first view, the second partial view is a partial view in the first view corresponding to the flipped view, and the third partial view is a partial view in the third view.
In specific implementation, after the first view, the second view and the third view are obtained, all three views may be sent to the simulation page turning drawing module. The simulation page turning drawing module is a module provided in the embodiment of the disclosure, and is used for executing the page turning method provided in the embodiment of the disclosure so as to draw the simulation page turning animation. The simulation page turning drawing module can comprise a GPU. After the first region information, the second region information, and the third region information are obtained, the first view may be cropped according to the first region represented by the first region information by using a GPU in the simulation page-turning drawing module, so as to obtain a first partial view. Meanwhile, the GPU can be utilized to firstly turn over the first view to obtain the turned first view, and then the turned first view is cut according to the second area represented by the second area information to obtain the second local view. And the GPU can be further utilized to cut the target view according to the third area represented by the third area information to obtain a third local view.
S104: and performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page turning view matched with the page turning trigger point.
Here, the page turning view is a view matched with a page turning trigger point, and may include a first partial view, a second partial view, and a third partial view. The view shown in fig. 3 is a page turning view for turning the page backward.
In specific implementation, the first partial view, the second partial view and the third partial view may be spliced according to a relative position relationship among the first partial view, the second partial view and the third partial view to obtain a spliced view. And then, rendering the spliced view according to the view content corresponding to the spliced view to obtain a page turning view, and displaying the page turning view to a user.
Or, the first partial view, the second partial view and the third partial view may be rendered first to obtain rendered partial views; then, according to the relative position relationship among the first partial view, the second partial view and the third partial view, the rendered partial views can be spliced to obtain a page-turning view. Finally, the page flip view may be presented to the user.
Therefore, based on the page turning trigger point and the page foot position point, the first area information and the second area information corresponding to the first view and the third area information corresponding to the target try can be accurately determined; and then, by using the image processor, a first partial view matched with the first area information and a second partial view matched with the second area information are determined from the first view, and a third partial view matched with the third area information is determined from the target view. Since the image processor has good view processing performance, the speed and efficiency of obtaining the first, second and third partial views can be improved by directly processing the views using the image processor. Then, by means of splicing and rendering the first partial view, the second partial view and the third partial view, the page turning view matched with the page turning trigger point can be obtained quickly and accurately, the page turning view can be drawn stably, and the problem of page turning blockage is avoided.
In an embodiment, under the condition of passing, when a user performs a page turning operation, the user often slides in a screen of the terminal device to form a sliding track, and a starting point in the sliding track is the page turning starting point. In order to obtain a better simulation page turning effect, simulation can be generally performed according to the sliding track of the user. Therefore, after the first partial view, the second partial view and the third partial view are subjected to splicing rendering to obtain the page turning view matched with the page turning operation, the page turning sliding track matched with the page turning operation can be obtained. Here, the page-turning sliding track may specifically be a track formed by a user sliding in a screen of the terminal device.
Then, a page turning view corresponding to each track point except the page turning trigger point in the page turning sliding track can be determined. Here, the starting point of the sliding track is a starting point of page turning, and a page turning view corresponding to the page turning trigger point is determined. Therefore, for each trace point except the page turning trigger point, the corresponding page turning view needs to be determined.
Specifically, for each trace point except for the page turning trigger point, each trace point may be sequentially used as a new page turning trigger point according to a trigger sequence or trigger time of each trace point in the page turning sliding track, and then the steps S102 to S104 are returned to be executed, so as to sequentially determine a page turning view corresponding to each new page turning trigger point.
And then, based on the page turning views respectively corresponding to the track points in the page turning sliding track, the simulation page turning animation matched with the page turning operation can be generated.
Specifically, the page turning view corresponding to each track point can be sequentially displayed according to the triggering sequence or the triggering time of each track point in the page turning sliding track. Therefore, by determining and displaying the page turning view corresponding to the page turning trigger point and the page turning view corresponding to each track point, the simulation page turning animation matched with the current page turning operation can be formed.
Here, since the determination manner of the page turning view corresponding to each track point is the same as the page turning trigger manner corresponding to the page turning trigger point, the GPU in the terminal device is effectively utilized when determining each page turning view in the simulated page turning animation. That is, the forming and displaying process of the simulation page-turning animation directly utilizes the GPU to process the view, so that the effect of utilizing the GPU to perform hardware buffering on the view is achieved. Therefore, the page turning method provided by the embodiment of the disclosure can improve the stability of the frame rate of the device when each simulation page turning animation is loaded, realize stable drawing, and also can effectively avoid the problem of loading jamming.
Fig. 5 is a schematic diagram illustrating comparison of frame rates of an apparatus provided by an embodiment of the present disclosure, where 5-1 in fig. 5 is a schematic diagram illustrating an actual frame rate of an apparatus for completing simulated page flipping by using a method in the prior art (i.e., a bitmap method), where each page flipping operation takes a certain time, and different frame rates correspond to different time points, and time and actual frame rates corresponding to four complete page flipping operations are shown in 5-1. Fig. 5-2 is a schematic diagram of an actual frame rate of an apparatus for completing simulated page turning by using the page turning method provided by the embodiment of the present disclosure. 5-2 also show the time and actual frame rate for four complete page flipping operations.
According to 5-1 and 5-2, the simulated page turning is completed by using the page turning method provided by the embodiment of the disclosure, the consumed time for drawing the simulated page turning animation corresponding to each page turning operation is stable, and the frame rate for drawing the simulated page turning animation corresponding to each page turning operation is also stable compared with the frame rate for drawing the simulated page turning animation by using the method in the prior art.
Optionally, since the track lengths of the page turning sliding tracks corresponding to each user may be different, in order to achieve a better simulated page turning effect, a target length may be preset, and when the track length of the page turning sliding track of a user is inconsistent with the target length, the sliding track prediction may be performed according to the page turning sliding track of the user until the sum of the length of the predicted track and the track length of the page turning sliding track of the user reaches the target length.
Then, a page turning view corresponding to each predicted track point in the predicted track can be determined. And then, generating a complete simulation page turning animation corresponding to a page turning operation based on the page turning view corresponding to each track point in the page turning sliding track and the page turning view corresponding to each predicted track point.
In an embodiment, before acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page, and a third view corresponding to a next page of the current display page, it is further required to respond to an operation of starting a book reading application program to acquire device attribute information corresponding to a terminal device; the book reading application is installed in the terminal device.
Here, although the page turning method provided by the embodiment of the present disclosure may implement stable drawing of a page turning view and avoid page turning pause, the page turning method may not be applicable to all terminal devices due to the influence of the actual performance of each terminal device, and therefore, before executing the above S101, it may be determined whether the terminal device can use the page turning method provided by the embodiment of the present disclosure.
Specifically, according to the above embodiment, a user can open any book for reading through the book reading application. Therefore, before acquiring the first view, the second view, and the third view, the user must have an operation of opening the book reading application installed in the currently used terminal device, and then may acquire device attribute information corresponding to the currently used terminal device in response to the operation of starting the book reading application.
The device attribute information may include parameter information such as a device frame rate, a device performance score, operating system parameters, and device parameters. The operating system parameters are used for representing the software configuration of the terminal equipment, and the equipment parameters are used for representing the hardware configuration of the terminal equipment.
After the device attribute information is acquired, it may be determined whether the device attribute information satisfies a preset condition. The preset condition is a preset condition which needs to be met by the terminal device which can use the page turning method provided by the embodiment of the disclosure.
Under the condition that the device attribute information meets the preset condition, it can be determined that the currently used terminal device can perform simulated page turning by using the page turning method provided by the embodiment of the disclosure. Otherwise, it is determined that the currently used terminal device cannot perform simulated page turning by using the page turning method provided by the embodiment of the present disclosure, and the simulated page turning can be completed only by using a method in the prior art (i.e., using a bitmap method). Regarding determining whether the device attribute information satisfies the preset condition, in the case where the preset condition is different, there may be different determination manners:
in the first mode, the preset condition is to determine whether the device frame rate in the device attribute information is greater than a preset frame rate threshold, or the preset condition is to determine whether the device frame rate in the device attribute information is equal to the preset frame rate threshold and whether the device performance score in the device attribute information is not less than a preset score threshold.
And the equipment performance score is determined after the performance test is carried out on the currently used terminal equipment by using the target score measuring platform. The preset frame rate threshold may be an empirically determined minimum device frame rate, such as 60 frames, 80 frames, etc. The preset score threshold may be an empirically determined minimum performance score, e.g., 8 points, 9 points, etc.
In a specific implementation, the preset condition may indicate that there are a preset frame rate threshold and a preset score threshold. After the device attribute information of the currently used terminal device is obtained, it may be determined whether the device frame rate in the device attribute information is greater than a preset frame rate threshold, and if so, it may be directly determined that the device attribute information satisfies a preset condition.
And if the equipment frame rate is not greater than the preset frame rate threshold, continuously judging whether the equipment frame rate in the equipment attribute information is equal to the preset frame rate threshold. And if the frame rate of the equipment is equal to the preset frame rate threshold, continuously judging whether the equipment performance score in the equipment attribute information is not less than the preset score threshold. If the device performance score is not less than the preset score threshold, the device attribute information may satisfy the preset condition.
And if the equipment performance score is smaller than the preset score threshold value, determining that the equipment attribute information does not meet the preset condition. Or, if it is determined that the device frame rate is less than the preset frame rate threshold, it may also be determined that the device attribute information does not satisfy the preset condition.
The method II comprises the steps that the preset condition is that the parameter information in the equipment attribute information is matched with the sample parameter of any sample equipment; that is, the preset condition is to determine whether the parameter information in the device attribute information is consistent with the sample parameter of any sample device.
The parameter information may include operating system parameters and/or device parameters, and may further include information such as a device model and a device manufacturer, where the parameter information is not specifically limited herein. In practical applications, the parameter information related to the terminal device should fall within the protection scope of the present disclosure.
The sample parameters are the device parameters of the sample device. The sample equipment is equipment which determines that the average frame rate of the plurality of simulated page turning animations is greater than the test frame rate corresponding to the sample equipment after the simulated page turning animations corresponding to the plurality of page turning operations are generated respectively. The test frame rate is an average frame rate of the sample device when the sample device performs multiple simulation page turning by using a method in the prior art (i.e., a bitmap method).
In a specific implementation, after obtaining the device attribute information of the currently used terminal device, the parameter information of the currently used terminal device may be determined from the device attribute information. Then, determining whether matched parameter information consistent with the parameter information of the terminal equipment exists in the parameter information respectively corresponding to each sample equipment, and if so, determining that the equipment attribute information meets the preset condition; if not, the device attribute information may be determined not to satisfy the preset condition.
Of course, in the practical application process, the first mode and the second mode may also be used together, and the embodiment of the present disclosure is not particularly limited.
Therefore, based on the first mode and the second mode, whether the device attribute information of the terminal device meets the preset condition can be accurately determined, and further, whether the terminal device can perform simulated page turning by using the page turning method provided by the embodiment of the disclosure can be accurately determined.
With respect to the above sample device, it can be determined as follows:
for any terminal device, after the book reading application is opened for the first time, the device frame rate and the device performance score of the terminal device can be acquired. Then, according to the first method in the prior art and the page turning method provided by the embodiment of the present disclosure, a target page turning method that can be used by the terminal device after the book reading application is opened for the first time is determined. The description continues by taking the determined target page turning method as an example of the page turning method provided by the embodiment of the disclosure, after the target page turning method is determined, the target page turning method may be used to perform simulated page turning, and the average frame rate of the terminal device after performing multiple simulated page turning by using the target page turning method is determined. Then, the page turning method used by the terminal device is switched from the target page turning method to another page turning method.
The target page turning method is the page turning method provided by the embodiment of the disclosure, and the other page turning method is a method in the prior art. And then, performing simulated page turning by using the method in the prior art, and determining the test frame rate of the terminal device after performing multiple simulated page turning by using the method in the prior art.
And then, determining whether the average frame rate is greater than the test frame rate, if so, determining that the terminal device is a sample device, and using the parameter information of the terminal device as a sample parameter, that is, the terminal device may preferentially use the page turning method provided by the embodiment of the present disclosure. If it is determined that the average frame rate is not greater than the test frame rate, the terminal device is not used as a sample device, and the parameter information of the terminal device is not used as a sample parameter, that is, the terminal device may preferentially use the method in the prior art.
Based on the above steps, after a large number of terminal devices are tested, each sample device and its corresponding sample parameter can be determined from the large number of terminal devices. Thereafter, each sample device and its corresponding sample parameters may be stored for use in the second manner described above.
Optionally, based on the above steps, after a large number of terminal devices are tested, page turning methods that can be preferentially used by corresponding to various devices can be obtained and stored. When the page turning method required by any terminal device is determined subsequently, the page turning method preferentially used by the terminal device can be determined according to the stored page turning methods which can be preferentially used by the various devices.
After determining whether the device attribute information of the terminal device satisfies the preset condition, for the above S101, the current display page of the book may be determined under the condition that it is determined that the device attribute information satisfies the preset condition. Here, when the user views the book for the first time, the current presentation page may be the top page of the book. When the user does not check the books for the first time, the check record of the user can be obtained, the page displayed to the user when the user checks the books for the last time is determined, and the page is used as the current display page.
After the current display page is determined, a first view corresponding to the current display page of the book, a second view corresponding to a previous page of the current display page, and a third view corresponding to a next page of the current display page may be obtained and sent to the GPU in the simulation page turning drawing module, and then the above S102 to S104 may be continuously executed, which is not described herein again. Here, if the current display page is a top page, the second view corresponding to the previous page may be empty, and if the current display page is a bottom page, the third view corresponding to the next page may be empty.
In the case that it is determined that the device attribute information does not satisfy the preset condition, the simulated page turning may be completed using a method in the related art (i.e., a method using bitmap).
In addition, for any terminal device, after the method for simulating page turning needed by the terminal device is determined according to the device attribute information, the average frame rate when the determined method for simulating page turning is used for simulating page turning can also be determined, and if the average frame rate is lower than the preset target frame rate, another method for simulating page turning can be switched to complete the simulating page turning.
For example, under the condition that it is determined that the device attribute information corresponding to the terminal device a meets the preset condition, the terminal device a may perform simulated page turning using the page turning method provided in the embodiment of the present disclosure, but if the average frame rate of the terminal device a is smaller than the preset target frame rate after performing multiple simulated page turning using the page turning method provided in the embodiment of the present disclosure, it is described that the effect of performing simulated page turning using the page turning method provided in the embodiment of the present disclosure by the terminal device a is not ideal, the page turning method used by the terminal device a may be switched to a method in the prior art (i.e., a method using bitmap), and for subsequent page turning operations, the method in the prior art may be used to perform simulated page turning.
Therefore, the page turning method used by the terminal equipment is flexibly switched by utilizing the average frame rate, the flexibility of simulated page turning can be provided, the average frame rate of the simulated page turning can be improved to the greatest extent, and the average memory occupation of the book reading application program is reduced.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a page turning device for a page corresponding to the page turning method, and since the principle of the device in the embodiment of the present disclosure for solving the problem is similar to the page turning method in the embodiment of the present disclosure, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, a schematic diagram of a page turning device for a page provided in an embodiment of the present disclosure includes:
a first obtaining module 601, configured to obtain a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page, and a third view corresponding to a next page of the current display page;
a first determining module 602, configured to determine, in response to a triggered page turning operation, first region information and second region information in the first view and third region information in a target view that matches a page turning direction according to a footer location point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; the target view is the second view or the third view;
a second determining module 603, configured to determine, by a graphics processor, based on the first view, a first partial view matching the first region information and a second partial view matching the second region information; and determining a third partial view matching with the third area information based on the target view;
a rendering module 604, configured to perform joint rendering on the first partial view, the second partial view, and the third partial view to obtain a page-turning view matched with the page-turning trigger point.
In a possible implementation manner, the rendering module 604 is further configured to, after the joint rendering is performed on the first partial view, the second partial view, and the third partial view to obtain a page-turning view matched with the page-turning operation, obtain a page-turning sliding track matched with the page-turning operation;
determining a page turning view corresponding to each track point except the page turning trigger point in the page turning sliding track;
and generating a simulated page turning animation matched with the page turning operation based on the page turning views respectively corresponding to the track points in the page turning sliding track.
In a possible implementation manner, the first determining module 602, when determining, according to the footer location point corresponding to the page turning direction and the page turning trigger point indicated by the page turning operation, first region information and second region information in the first view, and third region information in the target view matching with the page turning direction, is configured to determine, according to the location information of the page turning trigger point and the location information of the footer location point, region boundary curve information between the first region and the second region;
determining the first area information according to the area boundary curve information;
determining the second area information according to the position information of the page turning trigger point and the first area information;
and determining the third area information according to the first area information, the second area information and the page size information of the current display page.
In a possible implementation manner, when determining that the target view matches the page turning direction, the first determining module 602 is configured to establish a page coordinate system by using any page vertex of the current display page as an origin, a width direction of the current display page as a horizontal axis direction, and a height direction of the current display page as a vertical axis direction;
in the page coordinate system, determining a first abscissa value of any point in a vertical bisector of the currently displayed page and a second abscissa value of the page turning trigger point;
determining the target view as the third view when the first abscissa value is smaller than the second abscissa value;
and under the condition that the first abscissa value is not smaller than the second abscissa value, determining the target view as the second view.
In a possible embodiment, the apparatus further comprises:
a second obtaining module 605, configured to, before obtaining a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page, and a third view corresponding to a next page of the current display page, respond to an operation of starting a book reading application program, and obtain device attribute information corresponding to a terminal device; the book reading application program is installed in the terminal equipment;
the first obtaining module 601 is configured to determine the current display page of the book and obtain the first view corresponding to the current display page of the book, the second view corresponding to the previous page of the current display page, and the third view corresponding to the next page of the current display page under the condition that the device attribute information meets a preset condition when obtaining the first view corresponding to the current display page of the book, the second view corresponding to the previous page of the current display page, and the third view corresponding to the next page of the current display page.
In a possible implementation manner, when determining that the device attribute information meets a preset condition, the first obtaining module 601 is configured to determine that the device attribute information meets the preset condition, where a device frame rate in the device attribute information is greater than a preset frame rate threshold; alternatively, the first and second electrodes may be,
when the device frame rate in the device attribute information is equal to a preset frame rate threshold and the device performance score is not less than a preset score threshold, determining that the device attribute information meets a preset condition; and the equipment performance score is determined after the terminal equipment is subjected to performance test by using a target score measuring platform.
In a possible implementation manner, when determining that the device attribute information meets a preset condition, the first obtaining module 601 is configured to determine that the device attribute information meets the preset condition when parameter information in the device attribute information is matched with a sample parameter of any sample device; the parameter information comprises operating system parameters and/or equipment parameters, and the sample equipment determines that the average frame rate of the plurality of simulated page turning animations is greater than the test frame rate corresponding to the sample equipment after the simulated page turning animations corresponding to the plurality of page turning operations are generated respectively.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the application also provides computer equipment. Referring to fig. 7, a schematic structural diagram of a computer device provided in an embodiment of the present application includes:
a processor 71, a memory 72, and a bus 73. Wherein the memory 72 stores machine-readable instructions executable by the processor 71, the processor 71 is configured to execute the machine-readable instructions stored in the memory 72, and when the machine-readable instructions are executed by the processor 71, the processor 71 performs the following steps: s101: acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page; s102: responding to the triggered page turning operation, and determining first region information and second region information in the first view and third region information in the target view matched with the page turning direction according to a page foot position point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; the target view is a second view or a third view; s103: determining, with a graphics processor, a first partial view matching the first region information and a second partial view matching the second region information based on the first view; and determining a third partial view matched with the third area information based on the target view and S104: and performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page turning view matched with the page turning trigger point.
The memory 72 includes a memory 721 and an external memory 722; the memory 721 is also called an internal memory, and is used for temporarily storing the operation data in the processor 71 and the data exchanged with the external storage 722 such as a hard disk, the processor 71 exchanges data with the external storage 722 through the memory 721, and when the computer device is running, the processor 71 communicates with the storage 72 through the bus 73, so that the processor 71 executes the execution instructions mentioned in the above method embodiments.
The embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the page turning method of the page in the above method embodiment. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the page turning method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute steps of the page turning method described in the above method embodiments, which may be referred to specifically for the above method embodiments, and are not described herein again.
The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implementing, and for example, a plurality of units or components may be combined, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
If the technical scheme of the application relates to personal information, a product applying the technical scheme of the application clearly informs personal information processing rules before processing the personal information, and obtains personal independent consent. If the technical scheme of the application relates to sensitive personal information, a product applying the technical scheme of the application obtains individual consent before processing the sensitive personal information, and simultaneously meets the requirement of 'express consent'. For example, at a personal information collection device such as a camera, a clear and significant identifier is set to inform that the personal information collection range is entered, the personal information is collected, and if the person voluntarily enters the collection range, the person is considered as agreeing to collect the personal information; or on the device for processing the personal information, under the condition of informing the personal information processing rule by using obvious identification/information, obtaining personal authorization by modes of popping window information or asking a person to upload personal information of the person by himself, and the like; the personal information processing rule may include information such as a personal information processor, a personal information processing purpose, a processing method, and a type of personal information to be processed.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the technical scope of the disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A page turning method of a page is characterized by comprising the following steps:
acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page;
responding to a triggered page turning operation, and determining first region information and second region information in the first view and third region information in a target view matched with a page turning direction according to a page foot position point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; the target view is the second view or the third view;
determining, with a graphics processor, a first partial view matching the first region information and a second partial view matching the second region information based on the first view; and determining a third partial view matching with the third area information based on the target view;
and performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page turning view matched with the page turning trigger point.
2. The method according to claim 1, further comprising, after the performing the joint rendering on the first partial view, the second partial view, and the third partial view to obtain a page-turning view matching the page-turning operation:
acquiring a page turning sliding track matched with the page turning operation;
determining a page turning view corresponding to each track point except the page turning trigger point in the page turning sliding track;
and generating a simulated page turning animation matched with the page turning operation based on the page turning views respectively corresponding to the track points in the page turning sliding track.
3. The method according to claim 1 or 2, wherein the determining, according to a footer position point corresponding to a page turning direction and a page turning trigger point indicated by the page turning operation, first region information and second region information in the first view and third region information in a target view matching with the page turning direction includes:
determining region boundary curve information between a first region and a second region according to the position information of the page turning trigger point and the position information of the footer position point;
determining the first area information according to the area boundary curve information;
determining the second area information according to the position information of the page turning trigger point and the first area information;
and determining the third area information according to the first area information, the second area information and the page size information of the current display page.
4. The method of claim 1, wherein determining that the target view matches the page flip direction comprises:
establishing a page coordinate system by taking any page vertex of the current display page as an origin, taking the width direction of the current display page as a transverse axis direction and taking the height direction of the current display page as a longitudinal axis direction;
in the page coordinate system, determining a first abscissa value of any point in a vertical bisector of the currently displayed page and a second abscissa value of the page turning trigger point;
determining the target view as the third view when the first abscissa value is smaller than the second abscissa value;
and under the condition that the first abscissa value is not smaller than the second abscissa value, determining the target view as the second view.
5. The method of claim 1, wherein before obtaining the first view corresponding to a current displayed page of the book, the second view corresponding to a previous page of the current displayed page, and the third view corresponding to a subsequent page of the current displayed page, the method further comprises:
responding to the operation of starting the book reading application program, and acquiring equipment attribute information corresponding to the terminal equipment; the book reading application program is installed in the terminal equipment;
the obtaining a first view corresponding to a current display page of the book, a second view corresponding to a previous page of the current display page, and a third view corresponding to a next page of the current display page includes:
and under the condition that the equipment attribute information meets a preset condition, determining a current display page of the book, and acquiring a first view corresponding to the current display page of the book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page.
6. The method of claim 5, wherein determining that the device attribute information satisfies a preset condition comprises:
determining that the equipment attribute information meets a preset condition when the equipment frame rate in the equipment attribute information is greater than a preset frame rate threshold; alternatively, the first and second electrodes may be,
when the device frame rate in the device attribute information is equal to a preset frame rate threshold and the device performance score is not less than a preset score threshold, determining that the device attribute information meets a preset condition; and the equipment performance score is determined after the terminal equipment is subjected to performance test by using a target score measuring platform.
7. The method of claim 5, wherein determining that the device attribute information satisfies a preset condition comprises:
when the parameter information in the equipment attribute information is matched with the sample parameter of any sample equipment, determining that the equipment attribute information meets a preset condition; the parameter information comprises operating system parameters and/or equipment parameters, and the sample equipment determines that the average frame rate of the plurality of simulated page turning animations is greater than the test frame rate corresponding to the sample equipment after the simulated page turning animations corresponding to the plurality of page turning operations are generated respectively.
8. A page turning device for pages, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first view corresponding to a current display page of a book, a second view corresponding to a previous page of the current display page and a third view corresponding to a next page of the current display page;
the first determining module is used for responding to a triggered page turning operation, and determining first region information and second region information in the first view and third region information in a target view matched with a page turning direction according to a page foot position point corresponding to the page turning direction and a page turning trigger point indicated by the page turning operation; the target view is the second view or the third view;
a second determination module to determine, with a graphics processor, based on the first view, a first partial view that matches the first region information and a second partial view that matches the second region information; and determining a third partial view matching with the third area information based on the target view;
and the rendering module is used for performing splicing rendering on the first partial view, the second partial view and the third partial view to obtain a page turning view matched with the page turning trigger point.
9. A computer device, comprising: a processor, a memory storing machine readable instructions executable by the processor, the processor for executing the machine readable instructions stored in the memory, the processor performing the steps of the page turning method of a page as claimed in any one of claims 1 to 7 when the machine readable instructions are executed by the processor.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when executed by a computer device, performs the steps of the page turning method of a page according to any one of claims 1 to 7.
CN202210878747.1A 2022-07-25 2022-07-25 Page turning method and device, computer equipment and storage medium Pending CN115016701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210878747.1A CN115016701A (en) 2022-07-25 2022-07-25 Page turning method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210878747.1A CN115016701A (en) 2022-07-25 2022-07-25 Page turning method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115016701A true CN115016701A (en) 2022-09-06

Family

ID=83081142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210878747.1A Pending CN115016701A (en) 2022-07-25 2022-07-25 Page turning method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115016701A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858987A (en) * 2023-02-21 2023-03-28 成都萌想科技有限责任公司 Rendering method and device for H5 question bank webpage, electronic equipment and storage medium
CN116755595A (en) * 2023-08-11 2023-09-15 江苏中威科技软件系统有限公司 Method for dynamically turning page based on distance between passing content and page frame

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050066288A1 (en) * 2003-09-05 2005-03-24 Chris Hemmings 3D publication with page-turn
KR20070100544A (en) * 2006-04-07 2007-10-11 김유곤 Method and system for outputting electronic book providing realistic picture for page turning
US20090219248A1 (en) * 2008-02-29 2009-09-03 Hong Fu Jin Precision Industry(Shenzhen) Co., Ltd. Electronic device capable of showing page flip effect and method thereof
US20120105464A1 (en) * 2010-10-27 2012-05-03 Google Inc. Animated page turning
US20140362016A1 (en) * 2011-09-08 2014-12-11 Kddi Corporation Electronic book display device that performs page turning in response to user operation pressing screen, page turning method, and program
CN104272246A (en) * 2012-03-02 2015-01-07 三星电子株式会社 Method and apparatus for turning pages in terminal
US20150091809A1 (en) * 2013-09-27 2015-04-02 Analia Ibargoyen Skeuomorphic ebook and tablet
US9026932B1 (en) * 2010-04-16 2015-05-05 Amazon Technologies, Inc. Edge navigation user interface
CN105531648A (en) * 2013-09-18 2016-04-27 索尼电脑娱乐公司 Information processor and information processing method
CN111459281A (en) * 2020-04-03 2020-07-28 维沃移动通信有限公司 Haptic feedback method, electronic device, and storage medium
CN112348929A (en) * 2020-11-26 2021-02-09 腾讯科技(深圳)有限公司 Rendering method and device of frame animation, computer equipment and storage medium
CN112433657A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112433795A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112433796A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112506399A (en) * 2020-12-04 2021-03-16 掌阅科技股份有限公司 Information publishing method of book reading page, computing device and storage medium
EP3842909A1 (en) * 2019-06-07 2021-06-30 Celsys, Inc. Book display program and book display device
CN113225602A (en) * 2021-05-27 2021-08-06 Vidaa美国公司 Display equipment and control method for loading and displaying television homepage content
JP7022250B1 (en) * 2021-10-04 2022-02-17 株式会社メディアドゥ Virtual reality or augmented reality reading systems, 3D display control programs for books and images, and information processing methods

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050066288A1 (en) * 2003-09-05 2005-03-24 Chris Hemmings 3D publication with page-turn
KR20070100544A (en) * 2006-04-07 2007-10-11 김유곤 Method and system for outputting electronic book providing realistic picture for page turning
US20090219248A1 (en) * 2008-02-29 2009-09-03 Hong Fu Jin Precision Industry(Shenzhen) Co., Ltd. Electronic device capable of showing page flip effect and method thereof
US9026932B1 (en) * 2010-04-16 2015-05-05 Amazon Technologies, Inc. Edge navigation user interface
US20120105464A1 (en) * 2010-10-27 2012-05-03 Google Inc. Animated page turning
US20140362016A1 (en) * 2011-09-08 2014-12-11 Kddi Corporation Electronic book display device that performs page turning in response to user operation pressing screen, page turning method, and program
CN104272246A (en) * 2012-03-02 2015-01-07 三星电子株式会社 Method and apparatus for turning pages in terminal
CN105531648A (en) * 2013-09-18 2016-04-27 索尼电脑娱乐公司 Information processor and information processing method
US20150091809A1 (en) * 2013-09-27 2015-04-02 Analia Ibargoyen Skeuomorphic ebook and tablet
EP3842909A1 (en) * 2019-06-07 2021-06-30 Celsys, Inc. Book display program and book display device
CN111459281A (en) * 2020-04-03 2020-07-28 维沃移动通信有限公司 Haptic feedback method, electronic device, and storage medium
CN112433657A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112433795A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
CN112433796A (en) * 2020-11-23 2021-03-02 掌阅科技股份有限公司 Electronic book simulation page turning method, electronic equipment and computer storage medium
WO2022105513A1 (en) * 2020-11-23 2022-05-27 掌阅科技股份有限公司 Simulated page turning method for electronic book, and electronic device and computer storage medium
CN112348929A (en) * 2020-11-26 2021-02-09 腾讯科技(深圳)有限公司 Rendering method and device of frame animation, computer equipment and storage medium
CN112506399A (en) * 2020-12-04 2021-03-16 掌阅科技股份有限公司 Information publishing method of book reading page, computing device and storage medium
CN113225602A (en) * 2021-05-27 2021-08-06 Vidaa美国公司 Display equipment and control method for loading and displaying television homepage content
JP7022250B1 (en) * 2021-10-04 2022-02-17 株式会社メディアドゥ Virtual reality or augmented reality reading systems, 3D display control programs for books and images, and information processing methods

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858987A (en) * 2023-02-21 2023-03-28 成都萌想科技有限责任公司 Rendering method and device for H5 question bank webpage, electronic equipment and storage medium
CN115858987B (en) * 2023-02-21 2023-04-25 成都萌想科技有限责任公司 Method and device for rendering H5 question bank webpage, electronic equipment and storage medium
CN116755595A (en) * 2023-08-11 2023-09-15 江苏中威科技软件系统有限公司 Method for dynamically turning page based on distance between passing content and page frame
CN116755595B (en) * 2023-08-11 2023-10-27 江苏中威科技软件系统有限公司 Method for dynamically turning page based on distance between passing content and page frame

Similar Documents

Publication Publication Date Title
CN115016701A (en) Page turning method and device, computer equipment and storage medium
US10984295B2 (en) Font recognition using text localization
US10699166B2 (en) Font attributes for font recognition and similarity
CN114155543B (en) Neural network training method, document image understanding method, device and equipment
US20180329727A1 (en) System and method for optimizing a user interface and a system and method for manipulating a user's interaction with an interface
CN110175609B (en) Interface element detection method, device and equipment
CN112988557A (en) Search box positioning method, data acquisition device and medium
CN113313083A (en) Text detection method and device
CN113849713A (en) Search result display method and device, computer equipment and storage medium
CN115221037A (en) Interactive page testing method and device, computer equipment and program product
CN107193815B (en) Page code processing method, device and equipment
CN110187816B (en) Automatic page turning method for cartoon type electronic book, computing device and storage medium
CN109992182B (en) Electronic book batch page turning method, electronic equipment and computer storage medium
CN113283432A (en) Image recognition and character sorting method and equipment
CN114820867B (en) Font generation method, font generation model training method and device
CN114885202A (en) Character string display processing method, device, terminal and storage medium
CN112862693B (en) Picture processing method and device
CN111353428B (en) Action information identification method and device, electronic equipment and storage medium
CN109992514B (en) Mobile application dynamic analysis method based on visual content
CN113468066A (en) User interface testing method and device
CN113806197A (en) Page loading duration calculation method and device
CN113034649A (en) Chinese character drawing and displaying method and device, electronic equipment and medium
TWI633498B (en) Image processing device, image processing method, and program product
EP3764304A1 (en) System and method for assessing quality of media files
CN115859907B (en) Reading annotation zoom display method, system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination