CN106933964B - A kind of determining method, apparatus and electronic equipment for reading duration - Google Patents

A kind of determining method, apparatus and electronic equipment for reading duration Download PDF

Info

Publication number
CN106933964B
CN106933964B CN201710068238.1A CN201710068238A CN106933964B CN 106933964 B CN106933964 B CN 106933964B CN 201710068238 A CN201710068238 A CN 201710068238A CN 106933964 B CN106933964 B CN 106933964B
Authority
CN
China
Prior art keywords
reading
duration
time
read
books
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710068238.1A
Other languages
Chinese (zh)
Other versions
CN106933964A (en
Inventor
王思
牛新龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201710068238.1A priority Critical patent/CN106933964B/en
Publication of CN106933964A publication Critical patent/CN106933964A/en
Application granted granted Critical
Publication of CN106933964B publication Critical patent/CN106933964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the present invention discloses a kind of determining method, apparatus and electronic equipment for reading duration, is related to e-book reading technical field, is capable of the reading duration of more accurately counting user.The determining method for reading duration, including:Determine user's reading current book reads duration when secondary;Time data ought be read to be preserved, it is described when time read data include it is described when time reading duration and corresponding described when the duration mark for time reading duration distribution;When machine is triggered when sending, time reading data of working as are sent to server, so that the reading duration of user described in the server statistics;If receiving the duration mark that the server returns, data deletion will be read when secondary described in preservation.The present invention is suitable for determining for e-book reading duration.

Description

A kind of determining method, apparatus and electronic equipment for reading duration
Technical field
The present invention relates to e-book reading technical field more particularly to a kind of determining method, apparatus and electricity for reading duration Sub- equipment.
Background technology
With the development of science and technology, more and more electronic digital equipment possess the function of e-book reading or even have special For the terminal device of e-book reading.
E-book is also known as e-book, is that the content production of book is placed on online sale into after electronic edition.Buyer's credit After card or electronic money payment, you can download using special browser computer or other can add the work of reader application Tool as read offline in mobile phone, Electronic Paper, and passes through the enhancing reading experience such as search, annotation and hyperlink, and use is turned over Page system, similar to the page turning of book made of paper.
In order to enhance the reading experience of user, server can read duration and respectively according to each time of user that client uploads Secondary reading character number determines the average reading rate of user, so that it is determined that user read the duration of an e-book so as to and When prompt user.
In the prior art, the reading duration data of client upload user are to server-side, by server to each time of user It reads duration and carries out cumulative statistics, obtain the user and read duration for the whole of certain this books.Due to client and service Confirmation process is not established between end, server-side is susceptible to and is not received by reading duration data or duration repetition will be read It calculates, so as to occur reading the problem of duration is not statistical uncertainty true.
Invention content
In view of this, the embodiment of the present invention provides a kind of determining method, apparatus and electronic equipment for reading duration, Neng Gougeng Accurate geo-statistic reads duration.
In a first aspect, the embodiment of the present invention provides a kind of determining method for reading duration, including:
Determine user's reading current book reads duration when secondary;
Time data ought be read to be preserved locally, it is described when time read data include it is described when time reading duration and right It should be described when time duration mark of reading duration distribution;
When machine is triggered when sending, time reading data of working as are sent to server, so that the server statistics The reading duration of the user;
If receiving the duration mark that the server returns, data deletion will be read when secondary described in preservation;
It, will when transmission opportunity is triggered next time if not receiving the duration mark that the server returns Time reading data of working as are sent to the server again.
With reference to first aspect, in the first embodiment of first aspect, the transmission opportunity includes:Current book closes Close, return to main screen key be triggered and/or account switching.
With reference to first aspect, in second of embodiment of first aspect, the determining user reads current book When secondary reading duration, including:
After detecting that user opens book contents page, record is when time reading time started;
Detect that record reads the end time when secondary when scheduled reading break event occurs;Wherein, it is described scheduled to read Reading break event actively closes the reading stopping event except the book contents page for user;
Work as time reading time started and when the secondary reading end time according to described, calculate and work as time reading duration.
Second of embodiment with reference to first aspect, it is described scheduled in the third embodiment of first aspect Break event is read to include:Event, the reading process of half screen or full frame covering read interface are killed or are read in reading process Software crash event.
Second of embodiment with reference to first aspect in the 4th kind of embodiment of first aspect, is detecting hair During raw scheduled reading break event, before time the end time is read, the method further includes record:
Detect that record reads time out when secondary when scheduled reading suspending event occurs;
After detecting the scheduled reading suspending event, record is when time continuation reading time;
Wherein, the end time is read when the secondary reading time started described in the basis and when secondary, calculated when time reading duration, Including:
Continue reading time and when time reading when time reading time started, when secondary reading time out, when secondary according to described End time is calculated when time reading duration.
The 4th kind of embodiment with reference to first aspect, it is described scheduled in the 5th kind of embodiment of first aspect Suspending event is read to include:Check catalogue, content search, popup menu or order half screen shade.
With reference to first aspect or first aspect the first to any embodiment in the 5th kind, the of first aspect In six kinds of embodiments,
Determine user read current book when time reading duration after, the method further includes:
Determine the books described when the total page number for showing active page in content pages in time reading duration;
Determine the number of characters in each active page;
According to the books described when the total page number that active page in content pages is shown in time reading duration and each Number of characters in active page determines the books described when the total number of characters for showing content pages in time reading duration;
Wherein, it is described when time reading data further include:The books are described when secondary read in duration shows content pages Total number of characters.
The 6th kind of embodiment with reference to first aspect, in the 7th kind of embodiment of first aspect, the determining institute It states books and shows the total page number of active page in content pages when time reading in duration described, including:Determine the books in institute It states when whether the duration of first content page shown in time reading duration is more than predetermined threshold;If more than predetermined threshold, then really The fixed first content page is active page;The books are counted in the active page in content pages are shown in time reading duration Total page number.
Second aspect, the embodiment of the present invention provide a kind of determining device for reading duration, including:
Read duration determining module, for determine user read current book when time read duration;
Memory module is preserved for that secondary ought read data, described when secondary data of reading are read including described when secondary Duration and the corresponding duration mark for working as secondary reading duration distribution;
Sending module, for when machine is triggered when sending, time reading data of working as being sent to server, so that institute State the reading duration of user described in server statistics;
Removing module, if for receiving the duration mark that the server returns, by described in preservation when secondary It reads data to delete, if not receiving the duration mark that the server returns, notifies the sending module next When secondary transmission opportunity is triggered, by described when time reading data are sent to the server again.
With reference to second aspect, in the first embodiment of second aspect, the transmission opportunity includes:Current book closes Close, return to main screen key be triggered and/or account switching.
It is described to read duration determining module in second of embodiment of second aspect with reference to second aspect, including:
First detection sub-module, after detecting that user opens book contents page, record is when time reading time started;
Second detection sub-module, when scheduled reading break event occurring for detecting, record is at the end of secondary read Between;Wherein, the scheduled reading break event actively closes the reading stopping event except the book contents page for user;
First computational submodule, for working as time reading time started and when time reading end time according to described, calculating ought Secondary reading duration.
It is described scheduled in the third embodiment of second aspect with reference to second of embodiment of second aspect Break event is read to include:Event, the reading process of half screen or full frame covering read interface are killed or are read in reading process Software crash event.
With reference to second of embodiment of second aspect, in the 4th kind of embodiment of second aspect, second inspection Survey submodule, be additionally operable to detect occur it is scheduled reading break event when, record when time read the end time before, detection To when scheduled reading suspending event occurs, record reads time out when secondary;Detect the scheduled reading suspending event After, record is when time continuation reading time;
Wherein, first computational submodule, specifically for reading the time started, when secondary read is suspended when secondary according to described Time reads the end time when secondary continuation reading time and when secondary, calculates when time reading duration.
It is described scheduled in the 5th kind of embodiment of second aspect with reference to the 4th kind of embodiment of second aspect Suspending event is read to include:Check catalogue, content search, popup menu or order half screen shade.
With reference to the first of second aspect or second aspect to any embodiment in the 5th kind, the of second aspect In six kinds of embodiments, described device further includes:
Number of characters determining module, for determine the books it is described when time read shown in duration it is effective in content pages The total page number of page;Determine the number of characters in each active page;According to the books it is described when time read duration in show in Hold page in active page total page number and each active page in number of characters, determine the books it is described when time read duration Total number of characters of interior shown content pages;
Wherein, it is described when time reading data further include:The books are described when secondary read in duration shows content pages Total number of characters.
With reference to the 6th kind of embodiment of second aspect, number of characters is true described in the 7th kind of embodiment of second aspect Cover half block, including:
First determination sub-module, for determine the books it is described when time read shown in duration it is effective in content pages The total page number of page;
Second determination sub-module, for determining the number of characters in each active page;
Third determination sub-module, for according to the books it is described when time read shown in duration it is effective in content pages Page total page number and each active page in number of characters, determine the books it is described when time read duration in show in Hold total number of characters of page.
With reference to the 7th kind of embodiment of second aspect, in the 8th kind of embodiment of second aspect, described first really Stator modules, including:
Judging unit, for determining the books described when the duration of first content page shown in time reading duration Whether predetermined threshold is more than;
Determination unit, if for the books it is described when it is secondary reading duration in shown first content page when grow up In predetermined threshold, it is determined that the first content page is active page;
Statistic unit, for counting the books in the total of the active page in content pages are shown in time reading duration Number of pages.
The third aspect, the embodiment of the present invention provide a kind of determining method for reading duration, including:
Time reading data of working as of client transmission are received, it is described when secondary reading data include working as time reading duration and correspond to institute It states when time duration mark of reading duration distribution;
According to the reading duration that the user is counted when time reading duration;
Duration mark is returned into client, so that the client is identified according to the duration, by working as preservation Secondary reading data are deleted.
With reference to the third aspect, in the first embodiment of the third aspect, when secondary reading duration system described in the basis The reading duration of the user is counted, including:
If not preserving the duration mark, work as the secondary reading duration read duration and count the user according to described, And preserve the duration mark;
If preserving the duration mark, this statistics for reading duration is abandoned.
With reference to the third aspect, in second of embodiment of the third aspect, when secondary reading duration system described in the basis The reading duration of the user is counted, including:
According to described when time reading data, the reading duration that the user is read to the books carries out cumulative statistics, with It obtains the user and reads the whole reading duration that the books have been spent.
With reference to the first or second of embodiment of the third aspect, the third aspect, in the third implementation of the third aspect It is described when time reading data further include in mode:The books are described when total word that content pages are shown in time reading duration Accord with number;
Wherein, after according to when the reading duration of time reading duration statistics user, the method further includes:
The books in the user at each time are read and show that total number of characters of content pages carries out cumulative system in duration Meter obtains the total number of characters of reading that the user reads the books;
The total number of word of reading of the books is read according to the user and the user reads the books and spent The whole average reading rate read duration, determine the user.
With reference to the third embodiment of the third aspect, in the 4th kind of embodiment of the third aspect, described determines The method for reading duration, further includes:
According to the average reading rate of the user and total number of characters of the books, determine that the user reads The total duration that the books need to be spent.
Fourth aspect, the embodiment of the present invention provide a kind of determining device for reading duration, including:
Data reception module is read, it is described when time reading data packet for receiving time reading data of working as of client transmission It includes when time reading duration and corresponds to the duration mark distributed when time reading duration;
Statistical module, for working as the reading duration of user described in time reading data statistics according to;
Receive confirm module, for by the duration mark return to client so that the client according to it is described when Long mark, by preservation when time reading data are deleted.
With reference to fourth aspect, in the first embodiment of fourth aspect, the statistical module, including:
Judging submodule, for judging that the duration identifies whether to have preserved;
Cumulative control submodule, does not preserve if being identified for the duration, according to described when time reading duration statistics The reading duration of the user, and preserve the duration mark;If preserving the duration mark, abandon this and read duration Statistics.
With reference to fourth aspect, in second of embodiment of fourth aspect, the statistical module, specifically for according to institute It states when time reading data, the reading duration that the user is read to the books carries out cumulative statistics, is read with obtaining the user Read the whole reading duration that the books have been spent.
With reference to the first or second of embodiment of fourth aspect, fourth aspect, in the third implementation of fourth aspect It is described when time reading data further include in mode:The books are described when total word that content pages are shown in time reading duration Accord with number;
Wherein, described device further includes:
Total number of characters accumulator module shows content pages for the books to be read at each time in duration in the user Total number of characters carry out cumulative statistics, obtain the total number of characters of reading that the user reads the books;
Reading rate determining module, for reading the total number of word of reading of the books and described according to the user User reads the whole average reading rate read duration, determine the user that the books have been spent.
With reference to the third embodiment of fourth aspect, in the 4th kind of embodiment of fourth aspect, described device is also Including:Total duration determining module, for the average reading rate and total number of characters of the books according to the user, really The fixed user reads the total duration that the books need to be spent.
5th aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes:Housing, is deposited processor Reservoir, circuit board and power circuit, wherein, circuit board is placed in the space interior that housing surrounds, processor and memory setting On circuit boards;Power circuit, for powering for each circuit or device of above-mentioned electronic equipment;Memory is used to store and can hold Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory The program answered, for performing the method for the determining reading duration described in aforementioned any embodiment.
A kind of determining method, apparatus and electronic equipment for reading duration provided in an embodiment of the present invention, can be in server Receive that client reports after time data are read, the duration wherein carried mark is returned into client, client according to The reception condition of duration mark decides whether to be sent again to server when time reading data.Based on what is identified to duration It uses, on the one hand can carry out data by user end to server when server is not received when secondary reading data reissues, and prevents Only server side reads the missing of data;On the other hand it when server is successfully received when secondary reading data, avoids readding when secondary The repetition for reading data is sent.So as to make the reading duration of server more accurately counting user.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is present invention determine that reading the flow diagram of the embodiment of the method one of duration;
Fig. 2 is present invention determine that reading the flow diagram of the embodiment of the method two of duration;
Fig. 3 is present invention determine that reading the flow diagram of the embodiment of the method three of duration;
Fig. 4 is present invention determine that reading the flow diagram of the embodiment of the method four of duration;
Fig. 5 is present invention determine that reading the structure diagram of the device embodiment one of duration;
Fig. 6 is present invention determine that reading the structure diagram of the device embodiment two of duration;
Fig. 7 is present invention determine that reading the structure diagram of the device embodiment four of duration;
Fig. 8 is present invention determine that reading the flow diagram of the embodiment of the method five of duration;
Fig. 9 is present invention determine that reading the flow diagram of the embodiment of the method six of duration;
Figure 10 is present invention determine that reading the flow diagram of the embodiment of the method seven of duration;
Figure 11 is present invention determine that reading the structure diagram of the device embodiment five of duration;
Figure 12 is present invention determine that reading the structure diagram of the device embodiment six of duration;
Figure 13 is present invention determine that reading the structure diagram of the device embodiment seven of duration;
Figure 14 is the structure diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
It will be appreciated that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained without creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
Embodiment one
The method of the present embodiment is used for during user reads an e-book, and the reading duration of user is carried out Accurate statistics.This method can be applied to the electronic equipment that mobile phone, tablet computer, desktop computer etc. are capable of read electronic books. Below mainly by user by mobile phone come read electronic books for determine that the reading duration of user illustrates.
Fig. 1 is present invention determine that reading the flow diagram of the embodiment of the method one of duration.As shown in Figure 1, the present embodiment Method can include:
Step 101, determine user read current book when time read duration.
In the present embodiment, the client being installed on mobile phone can be after user's opening book contents page be detected, record is worked as The secondary reading time started, and after user closes the books, record when time reading end time, it ought time reading end time With working as the duration between time reading time started, be determined as user's reading current book reads duration when secondary.
The books can be that the network to have finished publishes in instalments books or has been fabricated to the published book of e-book.Book Have in nationality content pages for contents such as the word of user's reading and/or symbols.
Step 102, ought time read data locally preserved.
In the present embodiment, it is described when time read data include it is described when time reading duration and corresponding described when time reading duration The duration mark of distribution.Optionally, it is described when time reading data may also include:Active user ID (Identification, identity Identification number or unique encodings) and current book ID, so that the server reads data according to described when secondary, count the user Read the whole reading duration that the books have been spent.
It can will be stored in the database of local system file when time reading data.
Time reading data of working as are sent to server by step 103.
In the present embodiment, time reading data of working as are sent to server by client, so that server statistics institute State the reading duration of user.
The reading duration of the user can be that same user reads the total reading duration spent during different books, Can also be that same user reads the total reading duration spent during same books.
As an optional embodiment, in the present embodiment, client is sent to server when time reading data by described, can Including:Judge whether to trigger preset transmission opportunity;If triggering preset transmission opportunity, will locally preserve described in read when secondary It reads data and is sent to server.Wherein, the preset transmission opportunity includes:Current book is closed, user (is returned to by Home key Main screen key is triggered) and/or switching account waiting time.
In the present embodiment, after preset transmission opportunity triggers, if network is normal, what will can locally be preserved reads number when secondary According to uploading onto the server.If when time reading number as described in connection failure or upload of the Network Abnormal such as suspension or between server After failure, then continue time reading data of working as being stored in local, and after next time triggers preset transmission opportunity, followed by Continuous upload is described to read data when secondary.
Step 104 judges whether that receiving the server returns to the duration mark.
In the present embodiment, after the reading data for receiving client transmission in server, the duration can be identified and sent To client, to show that server is had received described in client upload when secondary reading data.
In the present embodiment, if client will be described when time reading data upload, but do not receive the institute of server return State duration mark, show the server be possible to not receive it is described when time read data or server receive it is described Data still be sent to client because network reason can not identify duration.In this case, even client does not receive The server returns to the duration and identifies, then, will be described when time reading when triggering the preset transmission opportunity next time Data are sent to the server again.
If client will be described after time reading data upload, receive the server and return to the duration mark, table The bright server has been successfully received the data, then performs step 105.
Step 105, by described in locally preserve when secondary reading data are deleted.
In the present embodiment, can server receive that client reports after time data are read, by what is wherein carried Duration mark returns to client, and client decides whether to send out again to server according to the reception condition that the duration identifies It send when time reading data.It, on the one hand can be when server not be received when secondary reading data based on the use identified to duration Data are carried out by user end to server to reissue, and prevent server side from reading the missing of data;On the other hand in server success It receives when secondary reading data, avoids sending when time repetition of reading data.So as to which server is made more accurately to count The reading duration of user.
Embodiment two
Fig. 2 is present invention determine that reading the flow diagram of the embodiment of the method two of duration.As shown in Fig. 2, the present embodiment Method can include:
Step 201 after detecting that user opens book contents page, is recorded when time reading time started.
In the present embodiment, after can detecting that user opens book contents page by the client being mounted on mobile phone, record When the secondary reading time started.
The books can be that the network to have finished publishes in instalments books or has been fabricated to the published book of e-book.Book Have in nationality content pages for contents such as the word of user's reading and/or symbols.
Step 202 detects that record reads the end time when secondary when scheduled reading break event occurs.
In the present embodiment, the client detect occur it is scheduled reading break event when, record when time reading terminate Time.
The scheduled reading break event actively closes the reading stopping event except the book contents page for user. The scheduled reading break event mainly includes:In reading process half screen or it is full frame covering read interface event, read into Journey is killed or ocr software crash event.For example, press return to main screen key, blank screen, screen locking, arouse login frame, order bullet frame, It redirects circle and beats the events such as the reward page, self-defined background, full frame setting, eyeshield setting or speaking board download.
Step 203 reads the end time when time reading time started according to and when secondary, calculates and works as time reading duration.
In the present embodiment, the client works as time reading time started and when time reading end time according to described, calculates When secondary reading duration.When the secondary reading time started and when the time span between the secondary reading end time is when secondary reading It is long.
Step 204, ought time read data locally preserved.
In the present embodiment, about when the explanation for time reading data and will be when time reading data in the locally process that preserves Similar with the step 102 of above method embodiment, details are not described herein again.
Time reading data of working as are sent to server by step 205.
In the present embodiment, the step of data are sent to the process of server and above method embodiment is read when secondary by described 103 is similar, and details are not described herein again.
Step 206 judges whether to receive the duration mark that the server returns.
In the present embodiment, after the reading data for receiving client transmission in server, the duration can be identified and sent To client, to show that server is had received described in client upload when secondary reading data.
In the present embodiment, if client does not receive the server and returns to the duration mark, triggered next time During the preset transmission opportunity, time reading data of working as are sent to the server again, if receiving the service Device returns to the duration mark, then performs step 207.
Step 207, by described in locally preserve when secondary reading data are deleted.
The present embodiment, after detecting that user opens book contents page, record is read when time reading time started in user During reading nationality, detect that record reads the end time when secondary when scheduled reading break event occurs, worked as according to described It is secondary to read the time started and when time reading end time, it can more precisely calculate and read duration when secondary.Further, can Server receive that client reports after time data are read, the duration wherein carried mark is returned into client, visitor Family end decides whether to be sent again to server when time reading data according to the reception condition that the duration identifies.Based on pair when On the one hand the use of long mark can carry out data when server is not received when secondary reading data by user end to server It reissues, prevents server side from reading the missing of data;On the other hand it when server is successfully received when secondary reading data, avoids When the secondary repetition for reading data is sent.So as to make the reading duration of server more accurately counting user.
Embodiment three
Fig. 3 is present invention determine that reading the flow diagram of the embodiment of the method three of duration.As shown in figure 3, the present embodiment Method can include:
Step 301 after detecting that user opens book contents page, is recorded when time reading time started.
In the present embodiment, after detecting that user opens book contents page, record is when time reading the process of time started and upper The step 201 for stating embodiment of the method is similar, and details are not described herein again.
Step 302 detects that record reads time out when secondary when scheduled reading suspending event occurs.
In the present embodiment, the client detect occur it is scheduled reading suspending event when, record when time read suspend Time.
The scheduled reading suspending event may include:Check that catalogue, content search, popup menu or order half screen hide The events such as cover.
Step 303 after detecting the scheduled reading suspending event, is recorded when time continuation reading time.
In the present embodiment, after the client detects the scheduled reading suspending event, record is when time continuation Reading time.
Step 304 detects that record reads the end time when secondary when scheduled reading break event occurs.
In the present embodiment, detect that record is when the secondary process for reading the end time when scheduled reading break event occurs Similar with the step 202 of above method embodiment, details are not described herein again.
Step 305, according to it is described when time read the time started, when secondary reading time out, when secondary continuation reading time and When the secondary reading end time, calculate when time reading duration.
In the present embodiment, when the secondary reading time started and work as the duration between time reading end time, subtract when time reading Time out and when time continue reading time between duration, as described user when time read duration.
Step 306, ought time read data locally preserved.
In the present embodiment, about when the explanation for time reading data and will be when time reading data in the locally process that preserves Similar with the step 102 of above method embodiment, details are not described herein again.Wherein, it is described when time reading data may also include:It is described Books are described when total number of characters that content pages are shown in time reading duration.
Time reading data of working as are sent to server by step 307.
In the present embodiment, the step of data are sent to the process of server and above method embodiment is read when secondary by described 103 is similar, and details are not described herein again.
Step 308 judges whether to receive the duration mark that the server returns.
In the present embodiment, server receive client transmission when time reading data after, the duration can be identified Client is sent to, to show that server is had received described in client upload when secondary reading data.
In the present embodiment, if client does not receive the server and returns to the duration mark, triggered next time During the preset transmission opportunity, time reading data of working as are sent to the server again, if receiving the service Device returns to the duration mark, then performs step 309.
Step 309, by described in locally preserve when secondary reading data are deleted.
The present embodiment, after detecting that user opens book contents page, record is read when time reading time started in user During reading nationality, detect that record reads the end time, and filter out it when secondary when scheduled reading break event occurs The middle reading generated due to generation scheduled reading suspending event suspends duration, can more precisely calculate when secondary reading It is long.Further, can server receive that client reports after time data are read, the duration wherein carried is identified Client is returned to, client is decided whether to send again to server and be read when secondary according to the reception condition that the duration identifies Read data.It, on the one hand can be when server not be received when secondary reading data by client based on the use identified to duration Data are carried out to server to reissue, and prevent server side from reading the missing of data;On the other hand it is successfully received and works as in server During secondary reading data, avoid sending when time repetition of reading data.So as to make server, more accurately counting user is read Read duration.
Example IV
Fig. 4 is present invention determine that reading the flow diagram of the embodiment of the method four of duration.As shown in figure 4, the present embodiment Method can include:
Step 401 after detecting that user opens book contents page, is recorded when time reading time started.
In the present embodiment, after detecting that user opens book contents page, record is when time reading the process of time started and upper The step 201 for stating embodiment of the method is similar, and details are not described herein again.
Step 402 detects that record reads time out when secondary when scheduled reading suspending event occurs.
In the present embodiment, the client detect occur it is scheduled reading suspending event when, record when time read suspend Time.The scheduled reading suspending event may include:Check catalogue, content search, popup menu or order half screen shade etc. Event.
Step 403 after detecting the scheduled reading suspending event, is recorded when time continuation reading time.
In the present embodiment, after the client detects the scheduled reading suspending event, record is when time continuation Reading time.
Step 404 detects that record reads the end time when secondary when scheduled reading break event occurs.
In the present embodiment, detect that record is when the secondary process for reading the end time when scheduled reading break event occurs Similar with the step 202 of above method embodiment, details are not described herein again.
Step 405, according to it is described when time read the time started, when secondary reading time out, when secondary continuation reading time and When the secondary reading end time, calculate when time reading duration.
In the present embodiment, when the secondary reading time started and work as the duration between time reading end time, subtract when time reading Time out and when time continue reading time between duration, as described user when time read duration.
Step 406 determines the books described when the total number of characters for showing content pages in time reading duration.
In the present embodiment, determine the books described when secondary read in duration shows that total number of characters of content pages can wrap Include following steps:
S1:Determine the books described when the total page number for showing active page in content pages in time reading duration.
In the present embodiment, when user quickly stirs the content pages of books, it is believed that be that a kind of page turning is interrupted rather than read Behavior.The function of influencing page turning has:Click lower one page;Click a certain chapter in catalogue, bookmark, notes idea;Select current chapters and sections Progress.Whenever triggering one in three above function, you can think to trigger page-turning function.
In order to more accurately obtain the reading duration of user, in the present embodiment, reading duration data during to page turning carry out Ignore processing, the content pages that will be quickly climbed over during page turning do not calculate corresponding reading duration as invalid page processing.
In the present embodiment, the books are in the active page in content pages are shown in time reading duration:The book Nationality is described when all the elements page shown in time reading duration subtracts the content pages after institute climbed over during quick page turning Remaining content pages.
It is described to determine the books described in content pages are shown in time reading duration as an optional embodiment The total page number of active page, including:Determine the books described when the duration of first content page shown in time reading duration Whether predetermined threshold is more than;If more than predetermined threshold, it is determined that the first content page is active page;The books are counted in institute It states when the total page number that active page in content pages is shown in time reading duration.Wherein, the predetermined threshold can be redefined for 0.5 Second or 1 second etc..
S2:Determine the number of characters in each active page.
Influence reading page Display Characters Per Frame because being known as:Font size size;Line space, it is intersegmental away from, between the upper and lower away from, it is left Right spacing;Mobile phone screen resolution ratio;Horizontal/vertical screen and vertical setting of types version.Client gets the corresponding parameter of these functions, Ke Yiji Calculate total number of characters that current page occurs (containing punctuate and additional character).
S3:Determine the books described when the total number of characters for showing content pages in time reading duration.
In the present embodiment, the client is by the books in each content pages worked as and shown in time reading duration Number of characters mutually adds up, you can obtains the books described when total number of characters that content pages are shown in time reading duration.Wherein, The number of characters may include word and punctuation mark.
For example, a length of t when secondary readingi, the books are described as time reading duration tiInterior shown content pages piAltogether There are page 5, every page of number of characters w is 2000, then the books read duration t described when secondaryiInterior shown content pages it is total Number of characters Wi=pi× w=5 × 2000=10000.
Step 407, ought time read data locally preserved.
It, and will be when time reading data are in the process locally preserved about the explanation to this reading data in the present embodiment Similar with the step 102 of above method embodiment, details are not described herein again.Wherein, it is described when time reading data may also include:It is described Books are described when total number of characters that content pages are shown in time reading duration.
In the present embodiment, it is described when time read data in addition to include when time read duration other than, further include when secondary reading Total number of characters of content pages is shown in long, calculates the reading rate of the user convenient for server in this way.
Time reading data of working as are sent to server by step 408.
In the present embodiment, the step of data are sent to the process of server and above method embodiment is read when secondary by described 103 is similar, and details are not described herein again.
Step 409 judges whether to receive the duration mark that the server returns.
In the present embodiment, after the reading data for receiving client transmission in server, the duration can be identified and sent To client, to show that server is had received described in client upload when secondary reading data.
In the present embodiment, if client does not receive the server and returns to the duration mark, triggered next time During the preset transmission opportunity, time reading data of working as are sent to the server again, if receiving the service Device returns to the duration mark, then performs step 410.
Step 410, by described in locally preserve when secondary reading data are deleted.
In the present embodiment, time reading data of working as are sent to server by client, convenient for being used described in server statistics The average reading rate at family.Further, can server receive that client reports after time data are read, will wherein The duration mark of carrying returns to client, and client is decided whether according to the reception condition that the duration identifies to server It is sent again when time reading data.Based on the use identified to duration, on the one hand can not be received when time reading in server Data are carried out by user end to server to reissue, prevent server side from reading the missing of data during data;On the other hand it is servicing Device is successfully received when secondary reading data, avoids sending when time repetition of reading data.So as to make server more accurate The reading duration of geo-statistic user.
Embodiment five
Fig. 5 is present invention determine that reading the structure diagram of the device embodiment one of duration.As shown in figure 5, the present embodiment Device can include:Read duration determining module 11, memory module 12, sending module 13 and removing module 14;Wherein,
Read duration determining module 11, for determine user read current book when time reading duration;
Memory module 12 is preserved for that time ought read data locally, it is described when time read data include it is described When secondary reading duration and correspond to described when the secondary duration mark read duration and distributed.Optionally, it is described when time reading data may be used also Including:The active user ID and current book ID.
Sending module 13, for when machine is triggered when sending, time reading data of working as to be sent to server, so that The reading duration of user described in the server statistics.
Removing module 14 if for receiving the duration mark that the server returns, will preserved locally It is described to read data deletion when secondary, if not receiving the duration mark that the server returns, notify the transmission mould Block is when transmission opportunity is triggered next time, by described when time reading data are sent to the server again.
In the present embodiment, optionally, the transmission opportunity includes:Current book close, return to main screen key be triggered and/ Or account switching.
The device of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment six
Fig. 6 is present invention determine that reading the structure diagram of the device embodiment two of duration.As shown in fig. 6, the present embodiment Device apparatus structure shown in Fig. 5 on the basis of, further, the reading duration determining module 11, including:First detection Submodule 111, the second detection sub-module 112, the first computational submodule 113;Wherein,
First detection module 111, after detecting that user opens book contents page, record is when time reading time started;
Second detection module 112, when scheduled reading break event occurring for detecting, record is at the end of secondary read Between;Wherein, the scheduled reading break event actively closes the reading stopping event except the book contents page for user; For example, the scheduled reading break event includes:In reading process half screen or it is full frame covering read interface event, read into Journey is killed or ocr software crash event.It presses and returns to main screen key, blank screen, screen locking, arouse login frame, order bullet frame, redirect Circle beats the events such as the reward page, self-defined background, full frame setting, eyeshield setting or speaking board download;
First computing module 113, for working as time reading time started and when time reading end time according to described, calculating ought Secondary reading duration.
The device of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 2, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment seven
Present invention determine that the device embodiment three of duration is read, on the basis of apparatus structure shown in Fig. 6, further, Second detection sub-module 112, it may also be used for detecting that record is tied when secondary read when scheduled reading break event occurs Before the beam time, detect that record reads time out when secondary when scheduled reading suspending event occurs;It detects described predetermined Reading suspending event after, record when time continue reading time;The scheduled reading suspending event can include:It checks The events such as catalogue, content search, popup menu or order half screen shade.
Wherein, first computational submodule 113, specifically for reading the time started, when secondary reading when secondary according to described Time out reads the end time when secondary continuation reading time and when secondary, calculates when time reading duration.
The device of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 3, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment eight
Fig. 7 is present invention determine that the structure diagram of the device embodiment four of duration is read, as shown in fig. 7, the present embodiment Device on the basis of Fig. 5 or Fig. 6 shown device structures, further, described device further includes:
Number of characters determining module 16, for determining that the books have described in content pages are shown in time reading duration Imitate the total page number of page;Determine the number of characters in each active page;It is shown according to the books described when in time reading duration Number of characters in content pages in the total page number of active page and each active page, determine the books it is described when secondary reading when Total number of characters of content pages is shown in long;
Wherein, it is described when time reading data further include:The books are described when secondary read in duration shows content pages Total number of characters.
In the present embodiment, optionally, the number of characters determining module 16, including:First determination sub-module, for determining Books are stated described when the total page number that active page in content pages is shown in time reading duration;Second determination sub-module, for true Number of characters in fixed each active page;Third determination sub-module, for reading institute in duration when secondary described according to the books It shows the total page number of active page in content pages and the number of characters in each active page, determines the books described when time readding Read the interior total number of characters for showing content pages of duration.
In the present embodiment, optionally, first determination sub-module can include:Judging unit, for determining the book Nationality is described when whether the duration of first content page shown in time reading duration is more than predetermined threshold;Determination unit is used for If the books are described when the duration of first content page shown in time reading duration is more than predetermined threshold, it is determined that described First content page is active page;Statistic unit, for counting the books described when secondary read in duration shows content pages The total page number of middle active page.
The device of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 4, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment nine
Fig. 8 is present invention determine that reading the flow diagram of the embodiment of the method five of duration.Referring to Fig. 8, the present embodiment Method can include:
What step 501, reception client were sent reads data when secondary.
It is described when secondary reading data are included when time reading duration and correspond to described when time reading duration distributes in the present embodiment Duration mark.During each read books of user, each reading data of user can be sent to server by client.Server Duration in the reading data received every time can be identified and stored, for example can be stored in a Hash table.
Optionally, it is described when time reading data may also include:User ID and books ID, to read number when secondary according to described According to count that the user reads that the books have spent whole reads duration.
Step 502 works as the secondary reading duration read duration and count the user according to described.
In the present embodiment, the reading duration of the user has spent total when can be the same different books of user's reading Reading duration or same user total reading duration for having spent when reading same books.
Server will read duration and carry out cumulative statistics, to obtain the user's according to the reading data of newest reception Duration is read, the reading duration that the books are read than user as will be described carries out cumulative statistics, is read to obtain the user The whole reading duration that the books have been spent.
Duration mark is returned to client by step 503.
In the present embodiment, server by the duration mark return to client so that the client according to it is described when Long mark, by preservation when time reading data are deleted.
In the present embodiment, can server receive that client reports after time data are read, by what is wherein carried Duration mark returns to client, and client decides whether to send out again to server according to the reception condition that the duration identifies It send when time reading data.It, on the one hand can be when server not be received when secondary reading data based on the use identified to duration Data are carried out by user end to server to reissue, and prevent server side from reading the missing of data;On the other hand in server success It receives when secondary reading data, avoids sending when time repetition of reading data.So as to which server is made more accurately to count The reading duration of user.
Embodiment ten
Fig. 9 is present invention determine that reading the flow diagram of the embodiment of the method six of duration.Referring to Fig. 9, the present embodiment Method can include:
What step 601, reception client were sent reads data when secondary.
In the present embodiment, about when time reading the explanation of data and receive the process of reading data that client sends and upper The step 501 for stating embodiment of the method is similar, and details are not described herein again.
Step 602 judges whether the duration mark has preserved locally.
In the present embodiment, server judges whether the reading duration mark has preserved, for example search the Kazakhstan locally Whether the existing duration identifies in uncommon table.If the duration mark is not preserved locally, step 603 is performed, if institute It states duration mark to have preserved locally, then performs step 605.
Step 603 preserves duration mark, and duration mark is returned to client locally.
Step 604 works as the secondary reading duration read duration and count the user according to described.
In the present embodiment, according to the process and the above method of the reading duration that the user is counted when time reading duration The step 502 of embodiment is similar, and details are not described herein again.
Step 605, the cumulative statistics for abandoning this reading duration.
In the present embodiment, can server receive that client reports after time data are read, by what is wherein carried Duration mark returns to client, and client decides whether to send out again to server according to the reception condition that the duration identifies It send when time reading data.It, on the one hand can be when server not be received when secondary reading data based on the use identified to duration Data are carried out by user end to server to reissue, and prevent server side from reading the missing of data;On the other hand in server success It receives when secondary reading data, avoids sending when time repetition of reading data.So as to which server is made more accurately to count The reading duration of user.
In addition, in practical applications, it is possible that following situation, i.e. server have received the described of client upload After secondary reading data, but duration mark can not be returned to client or server and return institute to client Duration mark is stated, but client can not actually receive the duration mark.In this case, client is because without practical The duration mark of server return is received, also would not will read data deletion, and can be under when secondary described in preservation After primary triggering upload opportunity, when time reading data described in repetition upload, up to client is received after the duration identifies It described can will work as time reading data to delete, thus can ensure that server reads user the accuracy of the statistics of duration.
Embodiment 11
Figure 10 is present invention determine that reading the flow diagram of the embodiment of the method seven of duration.Referring to Figure 10, the present embodiment Method, can include:
What step 701, reception client were sent reads data when secondary.
In the present embodiment, about when time reading the explanation of data and receive the process of reading data that client sends and upper The step 501 for stating embodiment of the method is similar, and details are not described herein again.Wherein, it is described when time reading data further include:The books exist It is described to read the interior total number of characters for showing content pages of duration when secondary.
Step 702 judges whether the duration mark has preserved locally.
In the present embodiment, judge the duration mark in the process locally whether preserved and the step of above method embodiment Rapid 602 is similar, and details are not described herein again.
In the present embodiment, if duration mark is not preserved locally, step 703 is performed, if the duration identifies It has been preserved locally, has then performed step 707.
Step 703 preserves duration mark locally, and the user is read to the reading duration of the books Cumulative statistics is carried out, and duration mark is sent to client.
Step 704, by the books the user read at each time shown in duration total number of characters of content pages into The cumulative statistics of row.
In the present embodiment, the books are read to total number of characters that content pages are shown in duration in the user at each time Cumulative statistics is carried out, to obtain the total number of characters of reading that the user reads the books.
Step 705, the average reading rate for determining the user.
In the present embodiment, the total number of word of reading of the books is read according to the user and the user reads institute State the whole average reading rate read duration, determine the user that books have been spent.
The server can calculate the average reading rate of the user according to equation below
Wherein, WiTotal number of characters that content pages are shown in duration is read in ith by user;tiIth for user is read Read duration;I is more than or equal to 1.
The average reading rate of the user can be pushed to client and show user by server.
The present invention is not limited thereto, and optionally, in order to obtain the average reading rate of the user, the client may not be used yet Duration and the books are read described when secondary read in duration shows that total number of characters of content pages is sent to when secondary by described Server, and it is local directly according to described when time reading duration and the books described in time read and to be shown in duration The total number of characters for holding page determines the average reading rate of the user, alternatively, more accurately averagely being read to obtain user Speed can also read each time of the books duration according to the user of local record and each reading duration is corresponding total Number of characters determines the average reading rate of the user.
Step 706 determines that the user reads the total duration that the books need to be spent.
In the present embodiment, according to the average reading rate of the user and total number of characters of the books, it may be determined that institute It states user and reads the total duration that the books need to be spent.
In the present embodiment, the server can calculate the total duration that the user runs through the books according to equation below Tt
Wherein, WtFor total number of characters of each content pages of the books, i.e., total number of characters of described books all the elements page; Average reading rate for the user.
The total duration that the user can be read the books and need to spend by server is pushed to client and shows user.
Step 707 abandons the cumulative statistics that this user reads the reading duration of the books.
In the present embodiment, can server receive that client reports after time data are read, by what is wherein carried Duration mark returns to client, and client decides whether to send out again to server according to the reception condition that the duration identifies It send when time reading data.It, on the one hand can be when server not be received when secondary reading data based on the use identified to duration Data are carried out by user end to server to reissue, and prevent server side from reading the missing of data;On the other hand in server success It receives when secondary reading data, avoids sending when time repetition of reading data.So as to which server is made more accurately to count The reading duration of user.
Embodiment 12
Figure 11 is present invention determine that reading the structure diagram of the device embodiment five of duration.Referring to Figure 11, the present embodiment Device, can include:It reads data reception module 51, statistical module 52 and receives and confirm module 53;Wherein, data are read to connect Receive module 51, for receive client transmission when time read data, it is described when time read data include when time read duration and It is corresponding described when time duration mark of reading duration distribution;Optionally, it is described when time reading data may also include:User ID and book Nationality ID;Statistical module 52, for working as the reading duration of user described in time reading data statistics according to;It receives and confirms module 53, for duration mark to be returned to client, so that the client is identified according to the duration, it will be in client sheet Ground preserves described when time reading data are deleted.
In the present embodiment, optionally, the statistical module 52 can be specifically used for reading data when secondary according to described, by institute State user and read the reading durations of the books and carry out cumulative statistics, with obtain the user read the books spent it is whole Body reads duration.
The device of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 8, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment 13
Figure 12 is present invention determine that reading the structure diagram of the device embodiment six of duration.Referring to Figure 12, the present embodiment Device, on the basis of Figure 11 shown device structures, further, the statistical module 52, including:Judging submodule 522, For judging whether the duration mark has preserved locally;Cumulative control submodule 523, if for duration mark at this Ground does not preserve, then according to described when time reading duration counts the reading duration of the user, and preserves the duration mark;If The duration mark has been preserved locally, then abandons the cumulative system that this user reads the reading duration of the books Meter.
The device of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 9, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment 14
Figure 13 is present invention determine that reading the structure diagram of the device embodiment seven of duration.Referring to Figure 13, the present embodiment Device, on the basis of Figure 12 shown device structures, further, wherein, described device further includes:Total number of characters adds up mould Block 54 shows that total number of characters of content pages carries out cumulative system for the books to be read in the user at each time in duration Meter obtains the total number of characters of reading that the user reads the books;Reading rate determining module 55, for according to the use The total number of word of reading of the books is read at family and the user reads the whole reading duration that the books have been spent, really The average reading rate of the fixed user.
It is described when time reading data further include in the present embodiment:The books are shown described when in time reading duration Total number of characters of content pages.
Optionally, described device further includes:Total duration determining module 56, for the average reading speed according to the user Total number of characters of degree and the books, determines that the user reads the total duration that the books need to be spent.
The device of the present embodiment, can be used for perform Figure 10 shown in embodiment of the method technical solution, realization principle and Technique effect is similar, and details are not described herein again.
Embodiment 15
Figure 14 is the structure diagram of electronic equipment one embodiment of the present invention.As shown in figure 14, the electronic equipment can To include:Housing 41, processor 42, memory 43, circuit board 44 and power circuit 45, wherein, circuit board 44 is placed in housing 41 space interiors surrounded, processor 42 and memory 43 are arranged on circuit board 44;Power circuit 45, for for above-mentioned electronics Each circuit or the device power supply of equipment;Memory 43 is used to store executable program code;Processor 42 is stored by reading The executable program code stored in device 43 runs program corresponding with executable program code, for performing aforementioned any reality The method for applying the determining reading duration described in example.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that have mobile communication function, and to provide speech, data It communicates as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the scope of personal computer, there is calculating and processing work( Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play multimedia content.The kind equipment includes:Audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) other have the function of the electronic equipment of data interaction.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that Also there are other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.
For device embodiment, since it is substantially similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist Implement the function of each unit/module is realized can in the same or multiple software and or hardware during the present invention.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, all should by the change or replacement that can be readily occurred in It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (28)

  1. A kind of 1. determining method for reading duration, which is characterized in that including:
    Determine user's reading current book reads duration when secondary;
    Time data ought be read to be preserved, it is described when time read data include it is described when time read duration and it is corresponding it is described when time Read the duration mark of duration distribution;
    When machine is triggered when sending, time reading data of working as are sent to server, so that described in the server statistics The reading duration of user;
    If receiving the duration mark that the server returns, data deletion will be read when secondary described in preservation;
    If the duration mark that the server returns is not received, when transmission opportunity is triggered next time, by described in When secondary reading data are sent to the server again.
  2. 2. the determining method for reading duration according to claim 1, which is characterized in that the transmission opportunity includes:Currently Books close, return to main screen key be triggered and/or account switching.
  3. 3. the determining method for reading duration according to claim 1, which is characterized in that the determining user reads current book Nationality reads duration when secondary, including:
    After detecting that user opens book contents page, record is when time reading time started;
    Detect that record reads the end time when secondary when scheduled reading break event occurs;Wherein, the scheduled reading is beaten Disconnected event actively closes the reading stopping event except the book contents page for user;
    Work as time reading time started and when the secondary reading end time according to described, calculate and work as time reading duration.
  4. 4. the determining method for reading duration according to claim 3, which is characterized in that the scheduled reading break event Including:Event, the reading process of half screen or full frame covering read interface are killed or ocr software crash event in reading process.
  5. 5. the determining method for reading duration according to claim 3, which is characterized in that scheduled reading occurs detecting During break event, before time reading end time, the method further includes record:
    Detect that record reads time out when secondary when scheduled reading suspending event occurs;
    After detecting the scheduled reading suspending event, record is when time continuation reading time;
    Wherein, the end time is read when the secondary reading time started described in the basis and when secondary, calculated when time reading duration, packet It includes:
    Continue reading time and when secondary read is terminated when the secondary reading time started, when secondary reading time out, when secondary according to described Time is calculated when time reading duration.
  6. 6. the determining method for reading duration according to claim 5, which is characterized in that the scheduled reading suspending event Including:Check catalogue, content search, popup menu or order half screen shade.
  7. 7. the determining method for reading duration according to any one of claims 1 to 6, which is characterized in that determining that user reads Read current book when time reading duration after, the method further includes:
    Determine the books described when the total page number for showing active page in content pages in time reading duration;
    Determine the number of characters in each active page;
    According to the books described when the total page number that active page in content pages is shown in time reading duration and each effective Number of characters in page determines the books described when the total number of characters for showing content pages in time reading duration;
    Wherein, it is described when time reading data further include:The books are described when secondary read in duration shows the total of content pages Number of characters.
  8. 8. the determining method for reading duration according to claim 7, which is characterized in that described to determine the books described When showing the total page number of active page in content pages in secondary reading duration, including:
    Determine the books described when whether the duration of first content page shown in time reading duration is more than predetermined threshold;
    If more than predetermined threshold, it is determined that the first content page is active page;
    The books are counted described when the total page number that active page in content pages is shown in time reading duration.
  9. 9. a kind of determining device for reading duration, which is characterized in that including:
    Read duration determining module, for determine user read current book when time read duration;
    Memory module is preserved for that secondary ought read data, described when secondary data of reading read duration including described when secondary It is and corresponding described when time duration mark of reading duration distribution;
    Sending module, for when machine is triggered when sending, time reading data of working as being sent to server, so that the clothes The reading duration of business device counting user;
    Removing module, if for receiving the duration mark that the server returns, by described in preservation when secondary reading Data are deleted, if not receiving the duration mark that the server returns, the sending module are notified to be sent out next time Opportunity is sent when being triggered, the server is sent to again when time reading data by described.
  10. 10. the determining device for reading duration according to claim 9, which is characterized in that the transmission opportunity includes:Currently Books close, return to main screen key be triggered and/or account switching.
  11. 11. the determining device for reading duration according to claim 9, which is characterized in that the reading duration determining module, Including:
    First detection sub-module, after detecting that user opens book contents page, record is when time reading time started;
    Second detection sub-module, when scheduled reading break event occurring for detecting, record reads the end time when secondary;Its In, the scheduled reading break event actively closes the reading stopping event except the book contents page for user;
    First computational submodule for working as time reading time started described in basis and working as the secondary reading end time, calculates and works as secondary read Read duration.
  12. 12. the determining device for reading duration according to claim 11, which is characterized in that the scheduled reading interrupts thing Part includes:Event, the reading process of half screen or full frame covering read interface are killed in reading process or ocr software collapses thing Part.
  13. 13. the determining device for reading duration according to claim 11, which is characterized in that second detection sub-module, It is additionally operable to detecting that record detects that generation is pre- before time the end time is read when scheduled reading break event occurs During fixed reading suspending event, record is when time reading time out;After detecting the scheduled reading suspending event, note Record is when time continuation reading time;
    Wherein, first computational submodule, specifically for reading the time started, when secondary reading suspends when secondary according to described Between, when it is secondary continuation reading time and when time read the end time, calculate when time read duration.
  14. 14. the determining device for reading duration according to claim 13, which is characterized in that scheduled read suspends thing Part includes:Check catalogue, content search, popup menu or order half screen shade.
  15. 15. the device of reading duration is determined according to claim 9 to 14 any one of them, which is characterized in that described device is also Including:
    Number of characters determining module, for determining the books in the active page in content pages are shown in time reading duration Total page number;Determine the number of characters in each active page;According to the books described when secondary read in duration shows content pages Number of characters in the total page number of middle active page and each active page determines the books described when institute in time reading duration Show total number of characters of content pages;
    Wherein, it is described when time reading data further include:The books are described when secondary read in duration shows the total of content pages Number of characters.
  16. 16. the determining device for reading duration according to claim 15, which is characterized in that the number of characters determining module, Including:
    First determination sub-module, for determining the books in the active page in content pages are shown in time reading duration Total page number;
    Second determination sub-module, for determining the number of characters in each active page;
    Third determination sub-module, for showing active page in content pages in duration when time reading described according to the books Number of characters in total page number and each active page determines the books described when secondary read in duration shows content pages Total number of characters.
  17. 17. the determining device for reading duration according to claim 16, which is characterized in that first determination sub-module, Including:
    Judging unit, for determining whether the books read the duration of first content page shown in duration described when secondary More than predetermined threshold;
    Determination unit, if for the books described when the duration of first content page shown in time reading duration is more than in advance Determine threshold value, it is determined that the first content page is active page;
    Statistic unit, for counting the books described when total page that active page in content pages is shown in time reading duration Number.
  18. A kind of 18. determining method for reading duration, which is characterized in that including:
    Receive that client sends when time reading data, it is described to include when time reading duration and corresponding described work as when time reading data The secondary duration mark for reading duration distribution;
    According to described when time reading duration of reading duration counting user;
    Duration mark is returned into client, so that the client is identified according to the duration, preservation is read when secondary Data are read to delete.
  19. 19. the determining method for reading duration according to claim 18, which is characterized in that when secondary reading described in the basis The reading duration of duration counting user, including:
    If not preserving the duration mark, according to described when secondary duration of reading counts the reading duration of the user, and protect Deposit the duration mark;
    If preserving the duration mark, this statistics for reading duration is abandoned.
  20. 20. the determining method for reading duration according to claim 19, which is characterized in that when secondary reading described in the basis The reading duration of duration counting user, including:
    According to described when time reading data, the reading duration of user's read books is subjected to cumulative statistics, with described in acquisition User reads the whole reading duration that the books have been spent.
  21. 21. the method for being determined to read duration according to claim 19 to 20 any one of them, which is characterized in that described to be read when secondary Data are read to further include:Books are described when total number of characters that content pages are shown in time reading duration;
    Wherein, after according to when the reading duration of time reading duration counting user, the method further includes:
    The books in the user at each time are read and show that total number of characters of content pages carries out cumulative statistics in duration, are obtained Obtain the total number of characters of reading that the user reads the books;
    It has been spent according to the total number of word of reading of the user reading books and the user reading books whole Body reads duration, determines the average reading rate of the user.
  22. 22. the determining method for reading duration according to claim 21, which is characterized in that further include:
    According to the average reading rate of the user and total number of characters of the books, it is described to determine that the user reads The total duration that books need to be spent.
  23. 23. a kind of determining device for reading duration, which is characterized in that including:
    Read data reception module, for receive client transmission when time read data, it is described when time read data include work as It is secondary to read duration and correspond to described when the secondary duration mark read duration and distributed;
    Statistical module, for working as time reading duration of reading data statistics user according to described;
    It receives and confirms module, for duration mark to be returned to client, so that the client is according to the duration mark Know, by preservation when time reading data are deleted.
  24. 24. the determining device for reading duration according to claim 23, which is characterized in that
    The statistical module, including:
    Judging submodule, for judging that the duration identifies whether to have preserved;
    Cumulative control submodule, does not preserve if being identified for the duration, when described in time reading duration statistics according to The reading duration of user, and preserve the duration mark;If preserving the duration mark, this system for reading duration is abandoned Meter.
  25. 25. the determining device for reading duration according to claim 24, which is characterized in that the statistical module, it is specific to use In reading data when secondary according to described, the reading duration of user's read books is subjected to cumulative statistics, to obtain the use Read the whole reading duration that the books have been spent in family.
  26. 26. the device of reading duration is determined according to claim 24 to 25 any one of them, which is characterized in that described to be read when secondary Data are read to further include:Books are described when total number of characters that content pages are shown in time reading duration;
    Wherein, described device further includes:
    Total number of characters accumulator module shows the total of content pages for the books to be read at each time in duration in the user Number of characters carries out cumulative statistics, obtains the total number of characters of reading that the user reads the books;
    Reading rate determining module, for reading the total number of word of reading of the books and the user according to the user Read the whole average reading rate read duration, determine the user that the books have been spent.
  27. 27. the determining device for reading duration according to claim 26, which is characterized in that described device further includes:
    Total duration determining module for the average reading rate and total number of characters of the books according to the user, determines The user reads the total duration that the books need to be spent.
  28. 28. a kind of electronic equipment, which is characterized in that the electronic equipment includes:Housing, processor, memory, circuit board and electricity Source circuit, wherein, circuit board is placed in the space interior that housing surrounds, and processor and memory setting are on circuit boards;Power supply Circuit, for powering for each circuit or device of above-mentioned electronic equipment;Memory is used to store executable program code;Processing Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding Row preceding claims 1-8 or 18-22 any one of them determines the method for reading duration.
CN201710068238.1A 2017-02-07 2017-02-07 A kind of determining method, apparatus and electronic equipment for reading duration Active CN106933964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710068238.1A CN106933964B (en) 2017-02-07 2017-02-07 A kind of determining method, apparatus and electronic equipment for reading duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710068238.1A CN106933964B (en) 2017-02-07 2017-02-07 A kind of determining method, apparatus and electronic equipment for reading duration

Publications (2)

Publication Number Publication Date
CN106933964A CN106933964A (en) 2017-07-07
CN106933964B true CN106933964B (en) 2018-06-19

Family

ID=59422938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710068238.1A Active CN106933964B (en) 2017-02-07 2017-02-07 A kind of determining method, apparatus and electronic equipment for reading duration

Country Status (1)

Country Link
CN (1) CN106933964B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491252B (en) * 2017-08-21 2018-05-29 掌阅科技股份有限公司 Read the statistical method and electronic equipment of duration
CN107766460A (en) * 2017-09-27 2018-03-06 风变科技(深圳)有限公司 Synchronous timing method, device, terminal device and storage medium based on reading
CN110633255B (en) * 2018-06-05 2021-06-11 北京世纪好未来教育科技有限公司 Method and device for acquiring user use duration
CN109902058A (en) * 2019-01-25 2019-06-18 上海基分文化传播有限公司 Arrangement for reading and the method for detecting user's reading behavior and effective reading duration
CN112765476A (en) * 2020-07-27 2021-05-07 上海斐杰教育科技有限公司 Parent-child reading resource recommendation service system and method
CN112052760A (en) * 2020-08-25 2020-12-08 北京金和网络股份有限公司 Method and device for judging learning effectiveness aiming at different article types
CN112328529B (en) * 2020-11-03 2023-09-05 北京奇艺世纪科技有限公司 Method, device, terminal and storage medium for determining reading progress of electronic book

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026176A1 (en) * 2010-05-15 2015-01-22 Roddy McKee Bullock Enhanced E-Book and Enhanced E-book Reader
CN104090741A (en) * 2014-06-17 2014-10-08 小米科技有限责任公司 Statistical method and device for electronic book reading
CN104850409B (en) * 2015-06-05 2019-06-04 北京京东尚科信息技术有限公司 Statistical web page stay time method
CN109726334A (en) * 2016-01-06 2019-05-07 北京京东尚科信息技术有限公司 The method for pushing and device of e-book

Also Published As

Publication number Publication date
CN106933964A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106933964B (en) A kind of determining method, apparatus and electronic equipment for reading duration
CN108470253B (en) User identification method and device and storage equipment
CN104348810B (en) The detection method of stolen account number, apparatus and system
CN109086742A (en) scene recognition method, scene recognition device and mobile terminal
CN107852412A (en) For phishing and the system and method for brand protection
CN108197570A (en) A kind of demographic method, device, electronic equipment and storage medium
CN111597817B (en) Event information extraction method and device
CN107103014A (en) The replay method of history pushed information, device and system
CN107563194A (en) Latency steals user data behavioral value method and device
CN101727646A (en) Alarm system and method thereof of network bank
CN109918678B (en) Method and device for identifying field meaning
CN109086317A (en) Risk control method and relevant apparatus
CN110135850A (en) A kind of information processing method and relevant apparatus
CN107704613A (en) A kind of approaches to IM, terminal and computer-readable recording medium
CN107066536B (en) Comment determining method and device
CN108153663B (en) Page data processing method and device
CN107277245A (en) Check card based reminding method and device
CN104778389A (en) Numerical value transferring method, terminal, server and system
CN107305552A (en) Aid reading method and apparatus
CN116740444A (en) Information acquisition method, device, electronic equipment and storage medium
CN110992044B (en) Data processing method and device, electronic equipment and readable storage medium
CN108364228A (en) A kind of business data processing method and its equipment
CN112328813B (en) Recommendation information generation method and device based on AI and computer equipment
CN105243315A (en) Single picture verification code input method, apparatus and system
CN112653612B (en) Message processing method, device and system and message server

Legal Events

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