CN115700847A - Drawing book reading method and related equipment - Google Patents

Drawing book reading method and related equipment Download PDF

Info

Publication number
CN115700847A
CN115700847A CN202110860614.7A CN202110860614A CN115700847A CN 115700847 A CN115700847 A CN 115700847A CN 202110860614 A CN202110860614 A CN 202110860614A CN 115700847 A CN115700847 A CN 115700847A
Authority
CN
China
Prior art keywords
electronic device
user
page
time
concentration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110860614.7A
Other languages
Chinese (zh)
Inventor
朱维峰
曾俊飞
查永东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110860614.7A priority Critical patent/CN115700847A/en
Publication of CN115700847A publication Critical patent/CN115700847A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a picture book reading method and related equipment, wherein in the user reading process, the electronic equipment can record abnormal behaviors (such as page jumping, long-time non-page turning and the like) of a user, segment the time of the whole reading process, output the concentration degree rating of the user in a corresponding time period based on the times of the abnormal behaviors of the user in each time period, and further calculate the value of the concentration degree of the user in the reading process at this time and the concentration degree rating. Therefore, under the condition that hardware cost and algorithm cost are not additionally increased, according to the page turning record of the user, the concentration degree of the user in the reading process can be output, and the user experience is improved. In addition, in the reading process of the user, if the user has abnormal behaviors (for example, behaviors of continuously skipping pages for 2 times within 1 minute and having skipped pages reaching 3 pages and the like) in a short time, the electronic device can remind the user to concentrate on the attention or remind the user to finish the reading, so that the interactive experience is improved.

Description

绘本阅读方法及相关设备Picture book reading methods and related equipment

技术领域technical field

本申请涉及终端技术领域,尤其涉及一种绘本阅读方法及相关设备。The present application relates to the field of terminal technology, and in particular to a picture book reading method and related equipment.

背景技术Background technique

在儿童早期教育阶段,绘本是儿童认知世界的重要途径。然而,传统的纸质绘本在使用过程中往往会遇到很多困难,例如,很多家长没有足够的时间去陪孩子阅读绘本,因此,市面上出现了点读笔、点读机等电子设备,可以陪伴孩子阅读绘本,但是,这些电子设备无法计算孩子在阅读绘本过程中的专注度,当家长不能陪伴孩子阅读绘本时,即在孩子独立阅读绘本的情况下,家长无法获知孩子在本次阅读绘本过程中的专注度,用户体验差。In the stage of early childhood education, picture books are an important way for children to understand the world. However, traditional paper picture books often encounter many difficulties in the use process. For example, many parents do not have enough time to accompany their children to read picture books. Therefore, electronic devices such as point reading pens and point readers have appeared on the market. Accompany the child to read picture books, but these electronic devices cannot calculate the child's concentration in the process of reading picture books. When parents cannot accompany their children to read picture books, that is, when the child reads picture books independently, parents cannot know that the child is reading picture books this time. Concentration in the process and poor user experience.

发明内容Contents of the invention

本申请实施例提供了一种绘本阅读方法及相关设备,可以计算用户在阅读过程中的专注度。The embodiment of the present application provides a picture book reading method and related equipment, which can calculate the user's concentration during the reading process.

第一方面,本申请实施例提供了一种绘本阅读方法,应用于包括摄像头的电子设备,该方法包括:电子设备利用摄像头采集到绘本图像,并基于绘本图像识别绘本页;电子设备在检测到绘本页的页码发生变化时,生成翻页记录;电子设备基于翻页记录判断用户是否出现异常行为,若是,则电子设备记录异常行为;电子设备基于异常行为确定用户的专注度评级。In the first aspect, the embodiment of the present application provides a method for reading a picture book, which is applied to an electronic device including a camera. When the page number of the picture book page changes, a page turning record is generated; the electronic device judges whether the user has abnormal behavior based on the page turning record, and if so, the electronic device records the abnormal behavior; the electronic device determines the user's concentration rating based on the abnormal behavior.

本申请实施例通过实施第一方面提供的方法,可以在不额外增加硬件成本和算法成本的情况下,根据用户翻页的记录,输出用户在阅读过程中的专注度,提高用户体验。By implementing the method provided in the first aspect, the embodiment of the present application can output the user's concentration in the reading process according to the user's page-turning record without additional hardware and algorithm costs, and improve user experience.

在一种可能的实现方式中,电子设备基于异常行为确定用户的专注度评级,具体包括:电子设备记录用户整个阅读绘本过程的总时长,并将总时长分为M个时间段,其中,M为正整数;电子设备记录M个时间段中异常行为的出现次数,并基于M个时间段中异常行为的出现次数来分别确定M个时间段对应的用户的专注度评级;其中,异常行为的出现次数越多,专注度评级越低;异常行为的出现次数越少,专注度评级越高。这样,可以确定用户在阅读过程中各个时间段的专注度评级。In a possible implementation, the electronic device determines the user's concentration rating based on the abnormal behavior, which specifically includes: the electronic device records the total time of the user's entire reading process of picture books, and divides the total time into M time periods, where M is a positive integer; the electronic device records the number of occurrences of abnormal behaviors in M time periods, and based on the number of occurrences of abnormal behaviors in M time periods, respectively determines the concentration rating of the user corresponding to M time periods; wherein, the number of abnormal behaviors The higher the number of occurrences, the lower the rating of concentration; the fewer the number of occurrences of abnormal behavior, the higher the rating of concentration. In this way, the concentration rating of the user at various time periods during the reading process can be determined.

在一种可能的实现方式中,该方法还包括:若电子设备确定M个时间段中的第m个时间段对应的用户的专注度评级不是最高的,并基于M个时间段中的第m+1个时间段中异常行为的出现次数确定第m+1个时间段对应的用户的专注度评级为A,其中,专注度评级A不是最高的,也不是最低的,则电子设备确定将第m+1个时间段对应的用户的专注度评级由专注度评级A调整至专注度评级B,其中,专注度评级B比专注度评级A低一级,m为正整数且小于M。这样,可以确定用户可能存在长时间的非专注状态。In a possible implementation, the method further includes: if the electronic device determines that the concentration rating of the user corresponding to the mth time period among the M time periods is not the highest, and based on the mth time period among the M time periods, The number of occurrences of abnormal behaviors in the +1 time period determines that the concentration rating of the user corresponding to the m+1th time period is A, where the concentration rating A is neither the highest nor the lowest, then the electronic device determines that the first The concentration rating of the user corresponding to the m+1 time period is adjusted from concentration rating A to concentration rating B, where concentration rating B is one level lower than concentration rating A, and m is a positive integer and less than M. In this way, it can be determined that the user may have a long period of inattention.

在一种可能的实现方式中,在电子设备基于异常行为确定用户的专注度评级之后,该方法还包括:电子设备基于M个时间段的时长和M个时间段对应的用户的专注度评级确定用户整个阅读绘本过程的专注度评级;其中,M个时间段对应的用户的专注度评级越高,和/或,专注度评级越高的时间段对应的持续时长越长,则用户整个阅读绘本过程的专注度评级越高。这样,可以确定用户在整个阅读过程中的专注度评级。In a possible implementation, after the electronic device determines the user's concentration rating based on the abnormal behavior, the method further includes: the electronic device determines the user's concentration rating based on the duration of M time periods and the user's concentration level corresponding to the M time periods. The concentration rating of the user throughout the process of reading the picture book; wherein, the higher the user's concentration rating corresponding to the M time periods, and/or, the longer the duration corresponding to the time period with the higher concentration rating, the user's entire reading picture book The higher the concentration rating of the process. In this way, the user's concentration rating throughout the reading process can be determined.

在一种可能的实现方式中,异常行为包括以下一项或多项:“跳页”行为、“长时间未翻页”行为、“未读完就翻页”行为、“提问未响应”行为。这样,可以确定异常行为具体包括哪些行为。In a possible implementation, the abnormal behavior includes one or more of the following: "page skipping" behavior, "page not turned for a long time" behavior, "turning page before finishing reading" behavior, "no response to question" behavior . In this way, it can be determined which behaviors the abnormal behaviors specifically include.

在一种可能的实现方式中,翻页记录中包括以下一项或多项:用户翻到的页码、开始时间、本页读完比例、播放内容结束时间、提问时间、提问是否响应、结束时间。这样,可以确定翻页记录具体包括哪些内容。In a possible implementation, the page turning record includes one or more of the following: the page number the user turned to, the start time, the proportion of the page read, the end time of the playing content, the question time, whether the question was answered, and the end time . In this way, it can be determined which contents are specifically included in the page turning records.

在一种可能的实现方式中,电子设备基于翻页记录判断用户是否出现异常行为,具体包括:若电子设备检测到用户翻页之前的页码与翻页记录中的用户翻到的页码不连续,则电子设备确定用户出现“跳页”行为。这样,可以基于翻页记录中的用户翻到的页码确定用户是否出现异常行为。In a possible implementation, the electronic device judges whether the user has abnormal behavior based on the page-turning record, specifically including: if the electronic device detects that the page number before the user turns the page is not continuous with the page number that the user turned to in the page-turning record, Then the electronic device determines that the user has a "page jumping" behavior. In this way, it can be determined whether the user has abnormal behavior based on the page number turned by the user in the page turning record.

在一种可能的实现方式中,电子设备基于翻页记录判断用户是否出现异常行为,具体包括:若电子设备检测到翻页记录中的结束时间比播放内容结束时间延迟超过第一时间阈值,则电子设备确定用户出现“长时间未翻页”行为。这样,可以基于翻页记录中的结束时间和播放内容结束时间确定用户是否出现异常行为。In a possible implementation manner, the electronic device judges whether the user has abnormal behavior based on the page-turning record, which specifically includes: if the electronic device detects that the end time in the page-turning record is delayed by more than the first time threshold from the end time of the playing content, then The electronic device determines that the user exhibits "long time no page turning" behavior. In this way, it can be determined whether the user has abnormal behavior based on the end time in the page turning record and the end time of the playing content.

在一种可能的实现方式中,电子设备基于翻页记录判断用户是否出现异常行为,具体包括:若电子设备检测到翻页记录中的本页读完比例小于1,则电子设备确定用户出现“未读完就翻页”行为。这样,可以基于翻页记录中的本页读完比例确定用户是否出现异常行为。In a possible implementation, the electronic device judges whether the user has abnormal behavior based on the page-turning record, which specifically includes: if the electronic device detects that the proportion of this page in the page-turning record is less than 1, the electronic device determines that the user has " Turning the page before finishing reading” behavior. In this way, it can be determined whether the user has abnormal behavior based on the reading ratio of the current page in the page turning record.

在一种可能的实现方式中,电子设备基于翻页记录判断用户是否出现异常行为,具体包括:电子设备向用户发起提问,并记录提问时间,若电子设备在发起提问之后的第二时间阈值内未接收到用户的回应,则电子设备确定用户出现“提问未响应”行为。这样,可以基于翻页记录中的提问时间确定用户是否出现异常行为。In a possible implementation, the electronic device judges whether the user has abnormal behavior based on the page-turning record, which specifically includes: the electronic device initiates a question to the user and records the time of the question; if the electronic device is within the second time threshold after initiating the question If no response from the user is received, the electronic device determines that the behavior of "no response to the question" occurs by the user. In this way, it can be determined whether the user has abnormal behavior based on the questioning time in the page-turning record.

在一种可能的实现方式中,在电子设备确定用户出现异常行为之后,该方法还包括:电子设备通过输出装置输出异常行为对应的提示。这样,在用户出现异常行为时可以提醒用户集中注意力或结束阅读。In a possible implementation manner, after the electronic device determines that the user has an abnormal behavior, the method further includes: the electronic device outputs a prompt corresponding to the abnormal behavior through an output device. In this way, the user can be reminded to concentrate or stop reading when the user has abnormal behavior.

第二方面,本申请实施例提供了一种电子设备,该电子设备包括一个或多个处理器和一个或多个存储器;其中,一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面任一项可能的实现方式中的方法。In a second aspect, an embodiment of the present application provides an electronic device, which includes one or more processors and one or more memories; wherein, the one or more memories are coupled to the one or more processors, and one or more The multiple memories are used to store computer program codes, and the computer program codes include computer instructions. When one or more processors execute the computer instructions, the electronic device executes the method in any possible implementation manner of the first aspect above.

第三方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有计算机程序,计算机程序包括程序指令,当程序指令在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的实现方式中的方法。In a third aspect, an embodiment of the present application provides a computer storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are run on the electronic device, the electronic device is made to perform any of the above-mentioned first aspects. Method in one possible implementation.

第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面任一项可能的实现方式中的方法。In a fourth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the method in any possible implementation manner of the first aspect above.

附图说明Description of drawings

图1是本申请实施例提供的一种绘本识别方法的流程示意图;Fig. 1 is a schematic flow chart of a picture book recognition method provided by an embodiment of the present application;

图2是本申请实施例提供的一种绘本识别的场景示意图;FIG. 2 is a schematic diagram of a picture book recognition scene provided by an embodiment of the present application;

图3是本申请实施例提供的一种绘本阅读方法在阅读阶段的流程示意图;Fig. 3 is a schematic flow chart of a picture book reading method provided in the embodiment of the present application in the reading stage;

图4是本申请实施例提供的一种绘本阅读方法在统计阶段的流程示意图;Fig. 4 is a schematic flow chart of a picture book reading method provided in the embodiment of the present application in the statistical stage;

图5是本申请实施例提供的一种用户在一次阅读过程中专注度的变化趋势示意图;Fig. 5 is a schematic diagram of a change trend of a user's concentration in a reading process provided by an embodiment of the present application;

图6是本申请实施例提供的一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图7是本申请实施例提供的另一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in the text is only a description of associated objects The association relationship indicates that there may be three kinds of relationships, for example, A and/or B, which may indicate: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.

应当理解,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be understood that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.

在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

在儿童早期教育阶段,绘本是儿童认知世界的重要途径。然而,传统的纸质绘本在使用过程中往往会遇到很多困难,例如,很多家长没有足够的时间去陪孩子阅读绘本,因此,市面上出现了点读笔、点读机等电子设备,可以陪伴孩子阅读绘本,但是,这些电子设备无法计算孩子在阅读绘本过程中的专注度,当家长不能陪伴孩子阅读绘本时,即在孩子独立阅读绘本的情况下,家长无法获知孩子在本次阅读绘本过程中的专注度,用户体验差。In the stage of early childhood education, picture books are an important way for children to understand the world. However, traditional paper picture books often encounter many difficulties in the use process. For example, many parents do not have enough time to accompany their children to read picture books. Therefore, electronic devices such as point reading pens and point readers have appeared on the market. Accompany the child to read picture books, but these electronic devices cannot calculate the child's concentration in the process of reading picture books. When parents cannot accompany their children to read picture books, that is, when the child reads picture books independently, parents cannot know that the child is reading picture books this time. Concentration in the process and poor user experience.

目前,市面上出现了更多的具有绘本阅读能力的电子设备(也可以称为绘本阅读智能终端设备)。At present, more electronic devices capable of reading picture books (also called intelligent terminal devices for reading picture books) appear on the market.

例如,一些电子设备可以阅读绘本内容,当用户将绘本放置在电子设备前一定范围内,电子设备可以通过摄像头识别绘本,在用户翻动绘本至某一页时,电子设备可以识别绘本当前页内容,并读出绘本上的文字内容(即播放绘本上的文字内容对应的音频),但是,这些电子设备仍无法对用户在阅读过程中是否专注作出评估计算。For example, some electronic devices can read the content of picture books. When the user places the picture book within a certain range in front of the electronic device, the electronic device can recognize the picture book through the camera. When the user flips the picture book to a certain page, the electronic device can recognize the content of the current page of the picture book. And read out the text content on the picture book (that is, play the audio corresponding to the text content on the picture book), but these electronic devices still cannot evaluate and calculate whether the user is concentrating during the reading process.

又例如,一些电子设备可以根据用户对试读章节内容的浏览次数和书籍全文的浏览次数生成相应的推送内容推送给用户,但是,这是这些电子设备获取用户阅读过程中的行为特征较少且简单,也无法对用户阅读过程中是否专注作出评估计算。For another example, some electronic devices can generate corresponding push content to push to the user according to the number of times the user browses the content of the trial chapters and the full text of the book. However, these electronic devices have few behavioral characteristics and It is simple, and it is impossible to evaluate and calculate whether the user is concentrating during the reading process.

再例如,一些电子设备在用户阅读过程中,通过摄像头观察用户行为,判断用户读书状态(是否专注于读书),当发现用户想要进行交互或者读书行为异常时,可以进行陪伴交互,完成阅读过程中与用户的交互。但是,这些电子设备不仅需要用于识别绘本的摄像头,还需要外置用于识别用户人脸的摄像头,依赖视觉相关算法识别用户的状态,成本和门槛都较高,且容易涉及用户隐私问题。For another example, some electronic devices observe the user's behavior through the camera during the user's reading process, and judge the user's reading status (whether to focus on reading). interaction with users. However, these electronic devices not only need a camera for recognizing picture books, but also need an external camera for recognizing the user's face, relying on vision-related algorithms to recognize the user's status, the cost and threshold are high, and it is easy to involve user privacy issues.

本申请实施例提供了一种绘本阅读方法,在用户进行阅读过程中,电子设备可以记录用户的异常行为(例如跳页、长时间未翻页等异常行为),并将整个阅读过程的时间进行分段,之后,基于每段时间内用户出现异常行为的次数来输出对应时间段内用户的专注度评级,并进一步计算本次阅读过程中用户的整体专注度的值及专注度评级。这样,在不额外增加硬件成本和算法成本的情况下,根据用户翻页的记录,可以输出用户在阅读过程中的专注度,提高用户体验。此外,在用户进行阅读过程中,若用户在短时间内出现较为异常的行为(例如1分钟内连续跳页2次,且被跳过的页数达到3页等行为)时,电子设备可以提醒用户集中注意力或者提醒用户结束本次阅读,提高交互体验。The embodiment of the present application provides a picture book reading method. During the user's reading process, the electronic device can record the user's abnormal behavior (such as page skipping, page not turning for a long time, etc.), and record the time of the entire reading process. Segmentation, after that, output the user's concentration rating in the corresponding time period based on the number of abnormal behaviors of the user in each period, and further calculate the value and concentration rating of the user's overall concentration in the reading process. In this way, without additional hardware cost and algorithm cost, according to the user's page-turning record, the user's concentration during the reading process can be output to improve user experience. In addition, during the user's reading process, if the user has abnormal behaviors in a short period of time (such as skipping pages twice within 1 minute, and the number of pages skipped reaches 3 pages, etc.), the electronic device can remind The user can concentrate or remind the user to end the reading, so as to improve the interactive experience.

首先介绍本申请实施例提供的一种绘本识别的方法流程。Firstly, a flow of a picture book recognition method provided by the embodiment of the present application is introduced.

图1示例性示出了本申请实施例提供的一种绘本识别的方法流程。Fig. 1 exemplarily shows a process flow of a picture book recognition method provided by an embodiment of the present application.

如图1所示,该方法可以应用于具有绘本阅读能力的电子设备100。下面详细介绍该方法的具体步骤:As shown in FIG. 1 , the method can be applied to an electronic device 100 capable of reading picture books. The specific steps of this method are described in detail below:

S101、电子设备100采集图像。S101. The electronic device 100 collects images.

具体地,电子设备100可以利用自身携带的摄像头在图像采集区域内实时地采集图像,该实时采集的图像可以用于后续步骤进行绘本识别。其中,图像采集区域可以为摄像头能够拍摄到的区域。Specifically, the electronic device 100 may use its own camera to collect images in real time in the image collection area, and the real-time collected images may be used in subsequent steps for picture book recognition. Wherein, the image acquisition area may be an area that can be photographed by the camera.

如图2所示,用户在进行绘本阅读时,可以先将绘本放置在电子设备100前的一定范围内(即电子设备100的摄像头的图像采集区域内),以使得电子设备100可以利用摄像头完整地或接近完整地拍摄到绘本。进一步地,电子设备100可以利用摄像头实时地采集到包括绘本的图像。As shown in FIG. 2 , when reading a picture book, the user can first place the picture book within a certain range in front of the electronic device 100 (that is, within the image collection area of the camera of the electronic device 100 ), so that the electronic device 100 can use the camera to complete Completely or nearly completely capture the picture book. Further, the electronic device 100 may use the camera to collect images including picture books in real time.

可选地,电子设备100可以在接收到用户的第一输入之后再开始执行步骤S101,其中,第一输入可以包括但不限于用户的语音指令输入、点击操作等等。Optionally, the electronic device 100 may start to execute step S101 after receiving the user's first input, where the first input may include but not limited to the user's voice command input, click operation and so on.

S102、电子设备100执行图像识别算法来进行绘本识别。S102. The electronic device 100 executes an image recognition algorithm to recognize picture books.

在本申请实施例中,电子设备100可以实时地执行图像识别算法来对上述实时采集的图像进行识别。In the embodiment of the present application, the electronic device 100 may execute an image recognition algorithm in real time to recognize the above-mentioned images collected in real time.

具体地,电子设备100可以将实时采集的图像输入到提前训练好的绘本识别模型中进行绘本识别。Specifically, the electronic device 100 may input the images collected in real time into a pre-trained picture book recognition model to perform picture book recognition.

模板库中可以预先存储有大量的绘本图像,绘本图像可以为绘本封面页的图像或绘本内容页的图像。绘本图像可以和所属的绘本之间存在关联关系,该关联关系也可以存储在模板库中,示例性地,建立关联关系的具体实现可以包括:将绘本图像与对应的绘本的名称建立关联关系,其中,绘本的名称可以表示该绘本具体是哪一本绘本。A large number of picture book images may be pre-stored in the template library, and the picture book image may be an image of a cover page of a picture book or an image of a content page of a picture book. There may be an association relationship between the picture book image and the picture book to which it belongs, and the association relationship may also be stored in the template library. Exemplarily, the specific implementation of establishing the association relationship may include: establishing an association relationship between the picture book image and the corresponding picture book name, Wherein, the name of the picture book may indicate which picture book the picture book is.

其中,电子设备100进行绘本识别可以采用基于视觉AI能力的图像识别技术,本申请实施例对绘本识别过程中采用的图像识别算法不作限定。Wherein, the electronic device 100 may use an image recognition technology based on visual AI capabilities for picture book recognition, and the embodiment of the present application does not limit the image recognition algorithm used in the picture book recognition process.

其中,模板库和绘本识别模型可以存储在本地,也可以存储在云端,本申请实施例对此不作限定。Wherein, the template library and the picture book recognition model can be stored locally or in the cloud, which is not limited in this embodiment of the present application.

S103、电子设备100判断是否可以识别出绘本。S103. The electronic device 100 judges whether the picture book can be recognized.

具体地,电子设备100若确定上述实时采集的图像与模板库中预存的其中一个绘本图像匹配成功,则电子设备100确定可以识别出绘本。Specifically, if the electronic device 100 determines that the image collected in real time is successfully matched with one of the picture book images prestored in the template library, the electronic device 100 determines that the picture book can be recognized.

其中,模板库中的绘本图像都是训练过的绘本图像,即这些图像都是经历过特征提取、模型训练等过程的。在摄像头实时采集的图像中包括上述训练过的绘本图像的情况下,电子设备100才可以识别出绘本。Among them, the picture book images in the template library are all trained picture book images, that is, these images have undergone processes such as feature extraction and model training. The electronic device 100 can recognize the picture book only when the image collected by the camera in real time includes the above-mentioned trained picture book image.

S104、电子设备100判断绘本当前页是否是绘本的封面页。S104. The electronic device 100 determines whether the current page of the picture book is a cover page of the picture book.

具体地,电子设备100在进行绘本识别时,可以将摄像头实时采集的图像优先和预存的全部绘本封面页的图像一一进行匹配,如果匹配成功(即摄像头实时采集的图像与预存的其中一个绘本封面页的图像匹配成功),则电子设备100可以确定摄像头实时采集的图像包括绘本封面页的图像,即电子设备100识别出了绘本的封面页,进一步地,电子设备100可以确定用户展示在摄像头图像采集区域的是绘本的封面页。Specifically, when the electronic device 100 performs picture book recognition, it may firstly match the images captured by the camera in real time with the images of all picture book cover pages stored in advance. If the image of the cover page matches successfully), the electronic device 100 can determine that the image captured by the camera in real time includes the image of the cover page of the picture book, that is, the electronic device 100 has recognized the cover page of the picture book. The image collection area is the cover page of the picture book.

进一步地,在确定绘本当前页是绘本的封面页之后,电子设备100可以执行步骤S105。Further, after determining that the current page of the picture book is the cover page of the picture book, the electronic device 100 may execute step S105.

S105、电子设备100播放切换绘本的音频,同时切换备选的内容索引页。S105. The electronic device 100 plays the audio for switching picture books, and switches the alternative content index page at the same time.

具体地,若电子设备100识别出绘本的封面页,则可以认为用户切换了绘本。进一步地,电子设备100可以播放切换绘本的音频,该音频用于提示用户已经切换了绘本。可选地,该音频内容还可以包括用户切换到的绘本的名称,例如,该音频可以为“您已切换绘本,该绘本的名称为XXX”。同时,电子设备100可以切换备选的内容索引页,即电子设备100可以将识别出来的绘本所对应的绘本的内容页作为当前的备选的内容索引页。Specifically, if the electronic device 100 recognizes the cover page of the picture book, it may be considered that the user has switched the picture book. Further, the electronic device 100 may play an audio for switching the picture book, and the audio is used to prompt the user that the picture book has been switched. Optionally, the audio content may also include the name of the picture book switched to by the user, for example, the audio may be "You have switched the picture book, and the name of the picture book is XXX". At the same time, the electronic device 100 may switch the candidate content index page, that is, the electronic device 100 may use the content page of the picture book corresponding to the identified picture book as the current candidate content index page.

S106、电子设备100判断绘本当前页与备选的内容索引页是否匹配。S106. The electronic device 100 determines whether the current page of the picture book matches the candidate content index page.

具体地,电子设备100在确定绘本当前页不是绘本的封面页之后,电子设备100可以将摄像头实时采集的绘本当前页的图像与当前的备选的内容索引页的图像一一进行匹配,如果匹配成功(即摄像头实时采集的绘本当前页的图像与当前的备选的内容索引页的图像中的其中一个匹配成功),则电子设备100可以确定绘本当前页与备选的内容索引页匹配,即电子设备100识别出了绘本当前页。否则,本次识别失败。Specifically, after the electronic device 100 determines that the current page of the picture book is not the cover page of the picture book, the electronic device 100 can match the image of the current page of the picture book captured by the camera in real time with the image of the current candidate content index page one by one. If successful (that is, the image of the current page of the picture book captured by the camera in real time matches one of the images of the current candidate content index page), the electronic device 100 can determine that the current page of the picture book matches the candidate content index page, that is, The electronic device 100 has identified the current page of the picture book. Otherwise, this recognition fails.

进一步地,电子设备100在识别出绘本当前页之后,电子设备100可以执行步骤S107。Further, after the electronic device 100 identifies the current page of the picture book, the electronic device 100 may execute step S107.

其中,当前的备选的内容索引页为步骤S105中所述的电子设备100识别出来的绘本所对应的绘本的内容页。Wherein, the current candidate content index page is the content page of the picture book corresponding to the picture book identified by the electronic device 100 in step S105.

在本申请实施例中,绘本识别过程使用的特征匹配方式可以参考公开号为CN111695419A的专利中公开的特征匹配方式,CN111695419A的全文在这里引入。不限于此,绘本识别过程还可以使用其他现有技术中的特征匹配方式,本申请实施例对此不作限定。In the embodiment of the present application, the feature matching method used in the picture book recognition process can refer to the feature matching method disclosed in the patent publication number CN111695419A, and the full text of CN111695419A is incorporated here. Not limited thereto, the picture book recognition process may also use other feature matching methods in the prior art, which is not limited in this embodiment of the present application.

容易理解,用户在切换绘本时,需要先将绘本的封面页放置在电子设备100前的一定范围内,以使得电子设备100可以识别到绘本的封面页,并切换备选的内容索引页,从而可以使得电子设备100基于该备选的内容索引页来执行后续步骤。It is easy to understand that when switching picture books, the user needs to first place the cover page of the picture book within a certain range in front of the electronic device 100, so that the electronic device 100 can recognize the cover page of the picture book and switch the alternative content index page, so that The electronic device 100 may be made to perform subsequent steps based on the candidate content index page.

在本申请实施例中,电子设备100可以周期性地进行绘本识别,例如,电子设备100可以每200ms获取一次绘本识别模型输出的最新的识别结果,从而可以识别到在用户整个阅读过程中绘本页的变化情况。In the embodiment of the present application, the electronic device 100 can periodically perform picture book recognition. For example, the electronic device 100 can acquire the latest recognition result output by the picture book recognition model every 200 ms, so that it can recognize the picture book pages in the entire reading process of the user. changes.

S107、电子设备100判断用户是否翻到新页。S107. The electronic device 100 determines whether the user turns to a new page.

具体地,在电子设备100识别到绘本当前页之后,由于电子设备100可以周期性地进行绘本识别,因此,电子设备100可以判断本次识别到的绘本当前页与上一次识别到的绘本当前页是否为同一页,若是,则表示绘本页没有发生变化,即本次识别到的绘本当前页就是上一次识别到的绘本当前页,那么,电子设备100可以确定用户没有翻到新页;若否,则表示绘本页发生了变化,即本次识别到的绘本当前页不是上一次识别到的绘本当前页,那么,电子设备100可以确定用户翻到了新页。Specifically, after the electronic device 100 recognizes the current page of the picture book, since the electronic device 100 can periodically identify the picture book, the electronic device 100 can determine whether the current page of the picture book recognized this time is different from the current page of the picture book recognized last time. Whether it is the same page, if so, it means that the page of the picture book has not changed, that is, the current page of the picture book recognized this time is the current page of the picture book recognized last time, then the electronic device 100 can determine that the user has not turned to a new page; if not , it means that the page of the picture book has changed, that is, the current page of the picture book recognized this time is not the current page of the picture book recognized last time, then the electronic device 100 can determine that the user has turned to a new page.

其中,电子设备100判断本次识别到的绘本当前页与上一次识别到的绘本当前页是否为同一页的实现方式可以包括但不限于以下2种:Wherein, the electronic device 100 may determine whether the current page of the picture book recognized this time is the same page as the current page of the picture book recognized last time may include but not limited to the following two methods:

实现方式1、判断本次识别到的绘本当前页的内容与上一次识别到的绘本当前页的内容是否相同,若是,则本次识别到的绘本当前页与上一次识别到的绘本当前页为同一页。Implementation method 1. Determine whether the content of the current page of the picture book recognized this time is the same as that of the current page of the picture book recognized last time. If so, then the current page of the picture book recognized this time is equal to the current page of the picture book recognized last time. same page.

实现方式2、判断本次识别到的绘本当前页的页码与上一次识别到的绘本当前页的页码是否相同,若是,则本次识别到的绘本当前页与上一次识别到的绘本当前页为同一页。Implementation method 2. Determine whether the page number of the current page of the picture book recognized this time is the same as the page number of the current page of the picture book recognized last time. If so, then the current page of the picture book recognized this time and the current page of the picture book recognized last time are same page.

S108、电子设备100开始记录新页阅读信息并开始播放新页内容对应的音频。S108. The electronic device 100 starts to record the reading information of the new page and starts to play the audio corresponding to the content of the new page.

具体地,电子设备100在确定用户翻到了新页之后,电子设备100可以开始记录新页阅读信息,同时,电子设备100可以切换播放的音频,并开始播放新页内容对应的音频。Specifically, after the electronic device 100 determines that the user has turned to a new page, the electronic device 100 may start recording the reading information of the new page, and at the same time, the electronic device 100 may switch the played audio and start playing the audio corresponding to the content of the new page.

其中,新页阅读信息可以包括用户翻页时间点、翻页前当前页读完比例、提问是否响应等信息,后面的实施例中会详细介绍这些信息,在此先不展开。Among them, the new page reading information may include information such as the time when the user turns the page, the proportion of the current page read before the page is turned, and whether the question is answered or not. These information will be introduced in detail in the following embodiments, and will not be expanded here.

下面介绍本申请实施例提供的绘本阅读方法的具体执行过程。The specific execution process of the picture book reading method provided in the embodiment of the present application is introduced below.

该方法可以应用于具有绘本阅读能力的电子设备100。该方法的具体执行过程分为两个阶段:阅读阶段和统计阶段。下面进行详细介绍:The method can be applied to the electronic device 100 capable of reading picture books. The specific execution process of this method is divided into two stages: the reading stage and the statistical stage. The following is a detailed introduction:

1、阅读阶段1. Reading stage

电子设备100在绘本识别成功之后可以进入阅读阶段,由于电子设备100可以周期性地利用图像识别算法进行绘本识别(例如每200ms识别一次),识别到绘本页上的内容,因此,在阅读阶段,当用户翻页(即用户从当前页翻到新的一页)时,电子设备100可以识别到用户翻到的新的一页,并可以记录下用户本次翻页的时间点、翻到的页码数,以及翻页前当前页是否读完等信息。可选地,电子设备100如果在用户阅读过程中与用户进行了提问类交互,则电子设备100也可以记录用户对提问是否响应的信息。进一步地,电子设备100可以从上述阅读过程中记录的信息中提取用户的异常行为(例如跳页、长时间未翻页等异常行为)以及异常行为对应的起止时间等信息。进一步地,当电子设备100识别到用户在短时间内多次出现异常行为时,电子设备100可以和用户确认是否要继续阅读。The electronic device 100 can enter the reading stage after the picture book recognition is successful. Since the electronic device 100 can periodically use the image recognition algorithm to carry out picture book recognition (for example, once every 200ms), and recognize the content on the picture book page, therefore, in the reading stage, When the user turns a page (that is, the user turns from the current page to a new page), the electronic device 100 can recognize the new page that the user turns to, and can record the time point when the user turns the page this time, and the page turned to. Page number, and information such as whether the current page has been read before turning the page. Optionally, if the electronic device 100 interacts with the user on a question during the reading process, the electronic device 100 may also record information about whether the user responds to the question. Further, the electronic device 100 may extract information such as the user's abnormal behavior (such as page skipping, page not turning for a long time, etc.) and the start and end time corresponding to the abnormal behavior from the information recorded during the reading process. Further, when the electronic device 100 recognizes that the user has several abnormal behaviors within a short period of time, the electronic device 100 may confirm with the user whether to continue reading.

下面详细介绍本申请实施例提供的绘本阅读方法在阅读阶段的具体流程。The following describes in detail the specific flow of the picture book reading method provided in the embodiment of the present application at the reading stage.

图3示例性示出了本申请实施例提供的绘本阅读方法在阅读阶段的具体流程。下面详细介绍该方法在阅读阶段的具体步骤:Fig. 3 exemplarily shows the specific flow of the picture book reading method provided in the embodiment of the present application in the reading stage. The specific steps of the method in the reading phase are described in detail below:

S301、电子设备100记录用户翻页时间点、翻页前当前页读完比例、提问是否响应等信息。S301. The electronic device 100 records information such as the time point when the user turns the page, the proportion of the current page read before the page is turned, and whether the question is answered or not.

参见下表1,表1示例性示出了在用户一次完整的阅读过程中电子设备100记录的用户翻页时间点、翻页前当前页读完比例、提问是否响应等信息。See Table 1 below. Table 1 exemplarily shows information such as the user's page turning time, the proportion of the current page read before turning the page, and whether the question is answered or not recorded by the electronic device 100 during a complete reading process of the user.

其中,表1中的时间点表示一次阅读过程开始的第几分钟第几秒,例如,1:00表示一次阅读过程开始的第1分钟第0秒。表1中一行内容表示一条翻页记录,表1中的“序号”表示每一条翻页记录的序号。一条翻页记录中可以包括但不限于以下信息:“页码”、“开始时间”、“播放内容结束时间”、“本页读完比例”(即翻页前当前页读完比例)、“提问时间”、“提问是否响应”、“结束时间”。Wherein, the time points in Table 1 represent the minutes and seconds at the beginning of a reading process, for example, 1:00 represents the first minute and the 0th second at the beginning of a reading process. One row in Table 1 represents a page-turning record, and the "sequence number" in Table 1 represents the sequence number of each page-turning record. A page turning record can include but not limited to the following information: "page number", "start time", "end time of playing content", "reading ratio of this page" (that is, the reading ratio of the current page before turning the page), "question time", "response to the question", "end time".

当用户翻页(即从当前页翻到新页)时,电子设备100可以检测到用户的翻页行为(例如电子设备100可以利用前述绘本识别过程中的图像识别算法识别到绘本页发生变化),此时,可以记录新页的页码(即表1中的“页码”或者称为用户翻到的页码),同时,还可以记录翻页时间点(即表1中的当前页的“结束时间”、新页的“开始时间”)。When the user turns a page (that is, turns from the current page to a new page), the electronic device 100 can detect the user's page turning behavior (for example, the electronic device 100 can use the image recognition algorithm in the aforementioned picture book recognition process to recognize that the picture book page changes) , at this time, the page number of the new page (i.e. the "page number" in Table 1 or the page number turned by the user) can be recorded, and at the same time, the page turning time point (i.e. the "end time" of the current page in Table 1) can also be recorded ", the "start time" of the new page).

在用户翻到新页时,电子设备100可以开始播放本页内容对应的音频,在电子设备100结束播放本页内容对应的音频时,可以记录结束播放本页内容对应的音频时的时间点(即表1中的“播放内容结束时间”),同时,还可以记录用户读完本页的比例(即表1中的“本页读完比例”)。When the user turns to a new page, the electronic device 100 can start playing the audio corresponding to the content of this page, and when the electronic device 100 finishes playing the audio corresponding to the content of this page, it can record the time point when the audio corresponding to the content of this page ends ( That is, the "end time of playing content" in Table 1), and at the same time, the proportion of users who have finished reading this page (that is, the "proportion of reading this page" in Table 1) can also be recorded.

其中,用户读完本页的比例可以基于已经播放的本页内容对应的音频的时长与本页内容对应的音频的总时长来确定。Wherein, the proportion of users who finish reading the page can be determined based on the duration of the played audio corresponding to the content of the page and the total duration of the audio corresponding to the content of the page.

例如,电子设备100在结束播放本页内容对应的音频时,如果已经将本页内容对应的音频全部播放完(即电子设备100在全部播放完本页内容对应的音频之前,未检测到用户出现翻页行为),那么,电子设备可以记录本页读完比例为1。For example, when the electronic device 100 finishes playing the audio corresponding to the content of this page, if the audio corresponding to the content of this page has been played completely (that is, the electronic device 100 does not detect that the user appears before the audio corresponding to the content of this page is completely played, page-turning behavior), then the electronic device can record that the reading ratio of this page is 1.

又例如,电子设备100在结束播放本页内容对应的音频时,如果没有将本页内容对应的音频全部播放完(即电子设备100在仅播放了一部分本页内容对应的音频的情况下,检测到用户出现翻页行为),那么,电子设备100可以计算已经播放的本页内容对应的音频的时长所占本页内容对应的音频的总时长的比例,并将该比例记录为用户读完本页的比例。For another example, when the electronic device 100 finishes playing the audio corresponding to the content of this page, if the audio corresponding to the content of this page has not been played completely (that is, when the electronic device 100 only plays a part of the audio corresponding to the content of this page), it will detect until the user has a page-turning behavior), then the electronic device 100 can calculate the ratio of the duration of the audio corresponding to the content of this page that has been played to the total duration of the audio corresponding to the content of this page, and record this ratio as the user finished reading this page. page ratio.

在用户翻到新页时,当新页内容中包含提问类交互时,电子设备100可以记录提问的时间点(即表1中的“提问时间”),此外,电子设备100发起提问之后,还可以记录是否接收到了用户对本次提问的语音响应(即表1中的“提问是否响应”)。When the user turns to a new page, when the content of the new page contains question interaction, the electronic device 100 can record the time point of the question (that is, the "question time" in Table 1). In addition, after the electronic device 100 initiates the question, it also It may be recorded whether the user's voice response to the question is received (that is, "whether the question is answered or not" in Table 1).

需要说明的是,在表1中,仅仅以同一页中最多只发起一次提问为例记录提问结果。在一些实施例中,对于在同一页中发起多次提问的情况,电子设备100可以调整记录方式,例如,电子设备100可以一行记录一次提问结果,在后续阶段进行处理时,可以再通过判断相邻行的页码是否一致来合并同一页中的多次提问结果。It should be noted that in Table 1, only one question is initiated on the same page as an example to record the question result. In some embodiments, the electronic device 100 can adjust the recording method for multiple questions initiated on the same page. For example, the electronic device 100 can record the question result once per line. Check whether the page numbers of adjacent rows are consistent to combine multiple query results on the same page.

Figure BDA0003184951950000081
Figure BDA0003184951950000081

表1Table 1

S302、电子设备100提取用户跳页、长时间未翻页、未读完就翻页、提问未响应的事件对应的起止时间等信息。S302. The electronic device 100 extracts information such as start and end times corresponding to events such as user skipping pages, not turning pages for a long time, turning pages before finishing reading, and asking questions without responding.

参见下表2,表2示例性示出了用户在一次完整的阅读过程中可能出现的异常行为以及电子设备100识别异常行为的方式。Referring to Table 2 below, Table 2 exemplarily shows possible abnormal behaviors of the user during a complete reading process and the manner in which the electronic device 100 recognizes the abnormal behaviors.

其中,用户在一次完整的阅读过程中可能出现的异常行为可以包括但不限于以下4种:跳页、长时间不翻页、未读完就翻页、提问未响应。Among them, the abnormal behaviors that may occur during a complete reading process of the user may include but are not limited to the following four types: page skipping, not turning pages for a long time, turning pages before finishing reading, and not responding to questions.

异常行为1、跳页:Abnormal behavior 1. Page jumping:

“跳页”可以是指用户在阅读过程中一次翻了多页,跳过了一些页未读,且短时间内没有翻回来。"Page skipping" may mean that the user turns multiple pages at a time during the reading process, skips some unread pages, and does not turn back within a short time.

电子设备100识别“跳页”行为的可能实现方式:A possible implementation manner for the electronic device 100 to recognize the behavior of "jumping pages":

(1)电子设备100可以比较相邻两条翻页记录中对应的页码,确定第二条翻页记录(即后一条翻页记录)对应的页码比第一条翻页记录(即前一条翻页记录)对应的页码大超过1页,即第二条翻页记录对应的页码与第一条翻页记录对应的页码之间的差值大于1,也即是说,电子设备100检测到用户翻页之前的页码与用户翻到的页码不连续。(1) The electronic device 100 can compare the corresponding page numbers in two adjacent page-turning records, and determine that the page number corresponding to the second page-turning record (ie, the next page-turning record) is higher than that of the first page-turning record (ie, the previous page-turning record). The page number corresponding to page record) is greater than 1 page, that is, the difference between the page number corresponding to the second page-turning record and the page number corresponding to the first page-turning record is greater than 1, that is to say, the electronic device 100 detects that the user The page number before turning the page is not continuous with the page number the user turned to.

示例性地,如表1所示,序号3对应的翻页记录可以为第二条翻页记录,序号2对应的翻页记录可以为第一条翻页记录,容易看出,第二条翻页记录对应的页码为页码4,第一条翻页记录对应的页码为页码2,页码4与页码2的差值为2,2大于1,因此,电子设备100可以确定用户在时间点1:50时出现了“跳页”行为,即从第2页跳页到第4页,用户一次翻了2页,跳页页数为1页。Exemplarily, as shown in Table 1, the page-turning record corresponding to sequence number 3 may be the second page-turning record, and the page-turning record corresponding to sequence number 2 may be the first page-turning record. It is easy to see that the second page-turning record The page number corresponding to the page record is page number 4, the page number corresponding to the first page turning record is page number 2, and the difference between page number 4 and page number 2 is 2, and 2 is greater than 1. Therefore, the electronic device 100 can determine that the user is at time point 1: At 50 o'clock, a "page jump" behavior occurred, that is, from page 2 to page 4, the user turned 2 pages at a time, and the number of page jumps was 1 page.

同理,从表1中也容易看出,用户在时间点5:40时又出现了“跳页”行为,即从第6页跳页到第8页,用户一次翻了2页,跳页页数为1页。In the same way, it is easy to see from Table 1 that at the time point of 5:40, the user had the behavior of "jumping pages", that is, from page 6 to page 8, the user turned 2 pages at a time, and the page skipped The number of pages is 1 page.

(2)电子设备100可以确定两条翻页记录对应的页码之间包含未读过的页对应的页码,且电子设备100确定用户在短时间内(例如10秒内)没有再翻回到第一条翻页记录对应的页码的下一页。(2) The electronic device 100 can determine that the page numbers corresponding to the unread pages are included between the page numbers corresponding to the two page turning records, and the electronic device 100 can determine that the user has not turned back to the first page within a short period of time (for example, within 10 seconds). The next page of the page number corresponding to a page turning record.

示例性地,假设第一条翻页记录对应的页码为2,第二条翻页记录对应的页码为4,若电子设备100检测到上述两条翻页记录之间没有包含页码3的翻页记录,则电子设备100可以确定用户未读过的页对应的页码为3,从而确定上述两条翻页记录对应的页码之间包含未读过的页对应的页码。进一步地,若电子设备100还检测到用户在短时间内(例如10秒内)没有再翻回到上述页码3对应的页,则电子设备100可以确定用户在短时间内没有再翻回到第一条翻页记录对应的页码的下一页。从而,电子设备100可以确定用户出现了“跳页”行为,即从第2页跳到了第4页。For example, assuming that the page number corresponding to the first page-turning record is 2, and the page number corresponding to the second page-turning record is 4, if the electronic device 100 detects that there is no page-turning page containing page number 3 between the two page-turning records record, the electronic device 100 may determine that the page number corresponding to the page that the user has not read is 3, so as to determine that the page numbers corresponding to the unread pages are contained between the page numbers corresponding to the above two page turning records. Further, if the electronic device 100 also detects that the user has not turned back to the page corresponding to the above page number 3 within a short period of time (for example, within 10 seconds), the electronic device 100 can determine that the user has not turned back to the page corresponding to the page number 3 within a short period of time. The next page of the page number corresponding to a page turning record. Therefore, the electronic device 100 can determine that the user has "jumped pages", that is, the user has jumped from the second page to the fourth page.

在一些实施例中,电子设备100也可以将上述(1)(2)两种可能实现方式结合起来综合判断用户是否出现“跳页”行为。例如,电子设备100可以利用上述(1)的方式来初步判断用户是否出现“跳页”行为,若是,则电子设备100可以再利用上述(2)的方式来进一步判断用户是否出现“跳页”行为,若是,则电子设备100可以综合确定用户出现了“跳页”行为。这样,可以避免电子设备100出现误识别现象。In some embodiments, the electronic device 100 may also combine the two possible implementations of (1) and (2) above to comprehensively determine whether the user has a "page skipping" behavior. For example, the electronic device 100 can use the above-mentioned method (1) to preliminarily determine whether the user has "jumped pages". Behavior, if so, the electronic device 100 can comprehensively determine that the user has a "page skipping" behavior. In this way, it is possible to avoid misidentification of the electronic device 100 .

异常行为2、长时间未翻页:Abnormal behavior 2. The page has not been turned for a long time:

“长时间未翻页”可以是指在电子设备100将本页内容对应的音频全部播放完之后的一段时间内(例如1分钟内),用户没有出现翻页行为。"No page turning for a long time" may mean that the user does not perform page turning behavior within a period of time (for example, within 1 minute) after the electronic device 100 finishes playing all the audios corresponding to the contents of the current page.

电子设备100识别“长时间未翻页”行为的可能实现方式:A possible implementation manner for the electronic device 100 to identify the behavior of "no page turning for a long time":

电子设备100可以找到相邻两条翻页记录,且确定第二条翻页记录(即后一条翻页记录)对应的开始时间(即第一条翻页记录中的“结束时间”)比第一条翻页记录(即前一条翻页记录)对应的播放内容结束时间延迟超过预设时间阈值(例如1分钟)。容易理解,电子设备100也可以比较同一条翻页记录中的“结束时间”与“播放内容结束时间”,并确定上述“结束时间”比上述“播放内容结束时间”延迟超过预设时间阈值(例如1分钟)。The electronic device 100 can find two adjacent page-turning records, and determine that the start time corresponding to the second page-turning record (ie, the next page-turning record) (ie, the "end time" in the first page-turning record) is shorter than the first page-turning record. The end time delay of the playback content corresponding to a page-turning record (ie, the previous page-turning record) exceeds a preset time threshold (for example, 1 minute). It is easy to understand that the electronic device 100 can also compare the "end time" and "the end time of the playing content" in the same page-turning record, and determine that the "end time" is delayed by more than the preset time threshold ( eg 1 minute).

其中,上述预设时间阈值也可以称为第一时间阈值。Wherein, the aforementioned preset time threshold may also be referred to as a first time threshold.

示例性地,如表1所示,序号5对应的翻页记录可以为第二条翻页记录,序号4对应的翻页记录可以为第一条翻页记录,假设上述预设时间阈值为1分钟,容易看出,第二条翻页记录对应的开始时间比第一条翻页记录对应的播放内容结束时间延迟了1分钟30秒,超过了上述预设时间阈值1分钟,因此,电子设备100可以确定用户在时间点5:00时出现了“长时间未翻页”行为。Exemplarily, as shown in Table 1, the page-turning record corresponding to sequence number 5 may be the second page-turning record, and the page-turning record corresponding to sequence number 4 may be the first page-turning record, assuming that the above preset time threshold is 1 Minutes, it is easy to see that the start time corresponding to the second page-turning record is 1 minute and 30 seconds later than the end time of the playback content corresponding to the first page-turning record, which exceeds the preset time threshold by 1 minute. Therefore, the electronic device 100 It can be determined that the behavior of "the user has not turned the page for a long time" occurred at the time point of 5:00.

异常行为3、未读完就翻页:Abnormal behavior 3. Turning the page before finishing reading:

“未读完就翻页”可以是指电子设备100在仅播放了一部分本页内容对应的音频的情况下,用户就出现了翻页行为。"Turn the page before finishing reading" may mean that the user turns the page when the electronic device 100 only plays a part of the audio corresponding to the content of the current page.

电子设备100识别“未读完就翻页”行为的可能实现方式:A possible implementation manner for the electronic device 100 to recognize the behavior of "turning the page before finishing reading":

电子设备100在检测到用户的翻页行为时,可以开始生成新的一页对应的翻页记录(即新的翻页记录),同时,电子设备100可以找到新的一页对应的翻页记录的上一条翻页记录,且确定该翻页记录对应的本页读完比例小于1,即新的翻页记录发生时,上一页内容还没有读完。When the electronic device 100 detects the user's page-turning behavior, it can start to generate a page-turning record corresponding to a new page (that is, a new page-turning record), and at the same time, the electronic device 100 can find a page-turning record corresponding to a new page. The previous page-turning record, and it is determined that the page-reading ratio corresponding to the page-turning record is less than 1, that is, when a new page-turning record occurs, the content of the previous page has not been read.

示例性地,如表1所示,电子设备100可以在时间点5:40时检测到用户的翻页行为,并开始生成序号6对应的翻页记录,同时,电子设备100可以找到序号5对应的翻页记录,由于该翻页记录对应的本页读完比例为0.8,0.8小于1,因此,电子设备100可以确定用户在时间点5:40时出现了“未读完就翻页”行为。For example, as shown in Table 1, the electronic device 100 can detect the user's page-turning behavior at the time point 5:40, and start to generate the page-turning record corresponding to the serial number 6. At the same time, the electronic device 100 can find the page-turning record corresponding to the serial number 5. Since the page-turning record corresponding to the page-turning record is 0.8, and 0.8 is less than 1, the electronic device 100 can determine that the user has the behavior of "turning the page before finishing reading" at the time point of 5:40 .

容易理解,若电子设备100检测到某一条翻页记录中的“本页未读完比例”小于1,则电子设备100可以确定用户出现“未读完就翻页”行为。It is easy to understand that if the electronic device 100 detects that the "ratio of unread this page" in a certain page-turning record is less than 1, the electronic device 100 can determine that the user has the behavior of "turning the page before finishing reading".

异常行为4、提问未响应:Abnormal behavior 4. No response to questions:

“提问未响应”可以是指电子设备100在发起提问之后,用户没有对本次提问进行语音回应。"No response to the question" may mean that after the electronic device 100 initiates the question, the user does not make a voice response to the question.

电子设备100识别“提问未响应”行为的可能实现方式:A possible implementation manner for the electronic device 100 to identify the behavior of "no response to the question":

在绘本内容中包含提问类交互时,即对于有互动的页码,电子设备100可以向用户发起提问,并记录提问时间,在电子设备100发起提问之后的预设时间阈值内(例如10秒内),电子设备100没有接收到用户对本次提问进行的语音回应。When the picture book content includes question-like interactions, that is, for pages with interactions, the electronic device 100 can initiate a question to the user, and record the question time, within a preset time threshold (for example, within 10 seconds) after the electronic device 100 initiates the question. , the electronic device 100 does not receive the user's voice response to this question.

其中,上述预设时间阈值也可以称为第二时间阈值。Wherein, the aforementioned preset time threshold may also be referred to as a second time threshold.

示例性地,如表1所示,在序号3对于的翻页记录中可以看出,电子设备100在时间点2:40时发起的提问,假设预设时间阈值为10秒,若电子设备100在发起提问之后的10秒内一直没有接收到用户对本次提问进行的语音回应,即电子设备100在时间点2:50还没有接收到用户对本次提问进行的语音回应,则电子设备100可以确定用户出现了“提问未响应”行为。Exemplarily, as shown in Table 1, it can be seen from the page-turning record of the serial number 3 that the question initiated by the electronic device 100 at the time point 2:40, assuming that the preset time threshold is 10 seconds, if the electronic device 100 If the voice response to the question from the user has not been received within 10 seconds after initiating the question, that is, the electronic device 100 has not received the voice response to the question from the user at the time point 2:50, then the electronic device 100 It can be determined that the user has "asked no response" behavior.

Figure BDA0003184951950000101
Figure BDA0003184951950000101

表2Table 2

参见下表3,表3示例性示出了电子设备100基于表1中记录的信息提取到的用户在一次完整的阅读过程中出现的跳页、长时间未翻页、未读完就翻页、提问未响应的事件对应的起止时间等信息。See Table 3 below. Table 3 exemplarily shows the user's page skipping, long-time page turning, and page turning before finishing reading, which are extracted by the electronic device 100 based on the information recorded in Table 1. , Inquiry information such as the start and end time corresponding to the unresponsive event.

其中,表3中包括用户在一次完整的阅读过程中可能出现的异常行为、以及异常行为对应的信息,即开始时间、结束时间、跳页页数、读完比例、未翻页时长。Among them, Table 3 includes the abnormal behaviors that may occur during a complete reading process of the user, and the information corresponding to the abnormal behaviors, that is, the start time, end time, number of skipped pages, percentage of finished reading, and duration of unturned pages.

Figure BDA0003184951950000111
Figure BDA0003184951950000111

表3table 3

容易理解,上述步骤S302中提取用户的异常行为的过程可以是在步骤S301中生成一条翻页记录之后就可以执行的,而不是在生成一次完整的阅读过程中的全部翻页记录之后才执行的。It is easy to understand that the process of extracting the user's abnormal behavior in the above step S302 can be executed after generating a page-turning record in step S301, rather than after generating all the page-turning records in a complete reading process .

S303、电子设备100判断是否需要提醒用户。S303. The electronic device 100 determines whether to remind the user.

具体地,用户在阅读过程中,电子设备100可以先判断用户是否在短时间内出现较为异常的行为,并进一步判断是否需要提醒用户。Specifically, during the user's reading process, the electronic device 100 may first determine whether the user has abnormal behavior in a short period of time, and further determine whether to remind the user.

若电子设备100确定用户在短时间内出现较为异常的行为,则电子设备100可以确定需要提醒用户,进一步地,电子设备100可以执行步骤S304来提醒用户。If the electronic device 100 determines that the user has relatively abnormal behavior in a short period of time, the electronic device 100 may determine that it is necessary to remind the user, and further, the electronic device 100 may execute step S304 to remind the user.

若电子设备100确定用户在短时间内没有出现较为异常的行为,则电子设备100可以确定不需要提醒用户,进一步地,电子设备100可以不作出提醒。If the electronic device 100 determines that the user has no abnormal behavior within a short period of time, the electronic device 100 may determine that there is no need to remind the user, and further, the electronic device 100 may not make a reminder.

其中,电子设备100可以基于步骤S302中提取得到的异常行为对应的信息(例如表3中的信息)来判断用户是否在短时间内出现了较为异常的行为。Wherein, the electronic device 100 may determine whether the user has relatively abnormal behavior in a short period of time based on the information corresponding to the abnormal behavior extracted in step S302 (for example, the information in Table 3).

参见下表4,表4示例性示出了用户在阅读过程中短时间内可能出现的较为异常的行为、相应的提示方式以及反馈处理方式。See Table 4 below. Table 4 exemplarily shows relatively abnormal behaviors that may occur in a short period of time during the reading process, corresponding prompting methods, and feedback processing methods.

Figure BDA0003184951950000121
Figure BDA0003184951950000121

表4Table 4

其中,用户在阅读过程中可能出现的较为异常的行为可以包括但不限于以下4种:Among them, the relatively abnormal behaviors that may occur during the reading process of the user may include but are not limited to the following four types:

较为异常的行为1、一定时间段内(例如1分钟内)连续跳页达到某一预设次数阈值(例如2次),且被跳过的页数达到某一预设页数阈值(例如3页)。Abnormal behavior 1. Within a certain period of time (for example, within 1 minute), consecutive page skipping reaches a preset threshold (for example, 2 times), and the number of skipped pages reaches a preset threshold (for example, 3 Page).

以表4中的“1分钟内连续跳页达到2次,且被跳过的页数达到3页”为例,电子设备100可以基于步骤S302中提取得到的“跳页”行为对应的信息来判断用户是否在1分钟内连续跳页达到2次,且被跳过的页数达到3页。Taking "page skipping reaches 2 consecutive times within 1 minute, and the number of pages skipped reaches 3 pages" in Table 4 as an example, the electronic device 100 may determine based on the information corresponding to the "page skipping" behavior extracted in step S302. It is judged whether the user skips pages continuously for 2 times within 1 minute, and the number of pages skipped reaches 3 pages.

其中,电子设备100可以判断2次相邻的“跳页”行为对应的开始时间(或结束时间)之间的差值是否大于1分钟,若是,则电子设备100确定用户在1分钟内连续跳页达到2次。进一步地,电子设备100可以判断上述2次相邻的“跳页”行为对应的跳页页数的总和是否大于或等于3页,若是,则电子设备100确定用户跳过的页数达到3页。Among them, the electronic device 100 can determine whether the difference between the start time (or end time) corresponding to two adjacent "page skipping" behaviors is greater than 1 minute, and if so, the electronic device 100 determines that the user continuously skips pages within 1 minute. page reached 2 times. Further, the electronic device 100 may determine whether the sum of the number of pages skipped corresponding to the above two adjacent "page skipping" behaviors is greater than or equal to 3 pages, and if so, the electronic device 100 determines that the number of pages skipped by the user reaches 3 pages .

较为异常的行为2、翻页时间过长,单次不翻页时长达到某一预设时间阈值(例如2分钟)。Abnormal behavior 2. The page-turning time is too long, and the duration of a single non-turning page reaches a preset time threshold (for example, 2 minutes).

以表4中的“翻页时间过长,单次不翻页时长达到2分钟”为例,电子设备100可以基于步骤S302中提取得到的“长时间未翻页”行为对应的未翻页时长来判断用户单次不翻页时长是否大于或等于2分钟,若是,则电子设备100确定用户单次不翻页时长达到2分钟。Taking "the page-turning time is too long, and the single non-turning time reaches 2 minutes" in Table 4 as an example, the electronic device 100 can base on the non-page-turning time corresponding to the "long time no page-turning" behavior extracted in step S302 To determine whether the user does not turn the page once for more than or equal to 2 minutes, if so, the electronic device 100 determines that the user does not turn the page for a single time for 2 minutes.

较为异常的行为3、连读达到某一预设页数阈值(例如3页)未读完,且读完比例均小于某一预设比例阈值(例如80%)。Abnormal Behavior 3. Continuous reading reaches a preset threshold of pages (for example, 3 pages) and is not finished, and the percentage of completion of reading is less than a preset ratio threshold (for example, 80%).

以表4中的“连读达到3页未读完,且读完比例均小于80%”为例,电子设备100可以基于步骤S302中提取得到的“未读完就翻页”行为对应的读完比例来判断用户是否连读达到3页未读完,且读完比例均小于80%。Taking "Consecutive reading reaches 3 pages without finishing reading, and the reading completion ratio is less than 80%" in Table 4 as an example, the electronic device 100 may base on the reading behavior corresponding to the behavior of "turning pages before finishing reading" extracted in step S302. The completion ratio is used to judge whether the user has not finished reading up to 3 pages, and the completion ratio is less than 80%.

其中,电子设备100可以判断用户连续出现“未读完就翻页”行为的次数是否大于或等于3次,若是,则电子设备100可以确定用户连续达到3页未读完,进一步地,电子设备100可以判断上述连续3次“未读完就翻页”行为对应的读完比例是否均小于80%,若是,则电子设备100可以确定用户连续3次“未读完就翻页”行为对应的读完比例均小于80%。Among them, the electronic device 100 can determine whether the number of times the user has continuously performed the behavior of "turning the page before finishing reading" is greater than or equal to 3 times, and if so, the electronic device 100 can determine that the user has not finished reading 3 pages in a row. Further, the electronic device 100 can determine whether the completion rate corresponding to the above-mentioned 3 consecutive times of "turning the page before finishing reading" is less than 80%. The reading percentage is less than 80%.

较为异常的行为4、持续一段时间内(例如1分钟内)未将绘本放入可识别范围内。Relatively abnormal behavior 4. The picture book is not put into the recognizable range for a period of time (for example, within 1 minute).

以表4中的“持续1分钟未将绘本放入可识别范围内”为例,电子设备100可以利用前述绘本识别过程中的图像识别算法进行绘本识别,若电子设备100无法识别到绘本,且无法识别到绘本的时长大于或等于1分钟,则电子设备100可以确定用户持续1分钟未将绘本放入可识别范围内。Taking "the picture book is not within the recognizable range for 1 minute" in Table 4 as an example, the electronic device 100 can use the image recognition algorithm in the aforementioned picture book recognition process to identify the picture book, if the electronic device 100 cannot recognize the picture book, and If the picture book cannot be recognized for longer than or equal to 1 minute, the electronic device 100 may determine that the user has not put the picture book within the recognizable range for 1 minute.

S304、电子设备100提醒用户。S304. The electronic device 100 reminds the user.

具体地,在电子设备100确定需要提醒用户时,电子设备100可以利用相应的提示方式提醒用户集中注意力或者提醒用户结束本次阅读等等。Specifically, when the electronic device 100 determines that it is necessary to remind the user, the electronic device 100 may use a corresponding prompt method to remind the user to concentrate or remind the user to end the current reading and so on.

其中,提醒用户所用的相应的提示方式可以为表4中示例性所示的提示方式:Wherein, the corresponding prompt method used to remind the user may be the prompt method shown in Table 4 as an example:

针对上述较为异常的行为1,电子设备100可以输出表4示例性所示的提示“我看到你一直在翻页,是不喜欢这段内容吗?”。For the above-mentioned relatively abnormal behavior 1, the electronic device 100 may output the prompt "I see that you have been turning pages, do you not like this content?" as shown in Table 4 exemplarily.

进一步地,电子设备100可以接收到用户针对该提示作出的语音回应,并针对语音回应作出相应的反馈处理。例如,若电子设备100检测到用户的语音回应代表的是“不喜欢”的意图,则电子设备100可以提示用户换一本书。又例如,若电子设备100检测到用户的语音回应代表的是“喜欢”的意图,则电子设备100可以继续执行阅读任务(例如播放本页内容对应的音频),并忽略本次阅读过程中后续可能出现的该较为异常的行为1,即若电子设备100检测到该异常行为1再次出现时,电子设备100可以不作出提醒。Further, the electronic device 100 may receive the user's voice response to the prompt, and perform corresponding feedback processing on the voice response. For example, if the electronic device 100 detects that the user's voice response represents an intention of "dislike", the electronic device 100 may prompt the user to change a book. For another example, if the electronic device 100 detects that the user's voice response represents the intention of "like", the electronic device 100 can continue to perform the reading task (such as playing the audio corresponding to the content of this page), and ignore the subsequent reading in the current reading process. The relatively abnormal behavior 1 that may occur, that is, if the electronic device 100 detects that the abnormal behavior 1 occurs again, the electronic device 100 may not give a reminder.

针对上述较为异常的行为2,电子设备100可以输出表4示例性所示的提示“还有继续读绘本吗?要不要休息一下?”。For the above abnormal behavior 2, the electronic device 100 may output the prompt "Do you want to continue reading picture books? Do you want to take a break?" as shown in Table 4 exemplarily.

进一步地,电子设备100可以接收到用户针对该提示作出的语音回应,并针对语音回应作出相应的反馈处理。例如,若电子设备100检测到用户的语音回应代表的是“不继续”的意图,则电子设备100可以停止执行绘本阅读任务(即退出绘本)。又例如,若电子设备100检测到用户的语音回应代表的是“继续”的意图,则电子设备100可以继续执行阅读任务(例如播放本页内容对应的音频),并忽略本次阅读过程中后续可能出现的该较为异常的行为2,即若电子设备100检测到该异常行为2再次出现时,电子设备100可以不作出提醒。Further, the electronic device 100 may receive the user's voice response to the prompt, and perform corresponding feedback processing on the voice response. For example, if the electronic device 100 detects that the user's voice response represents the intention of "not continuing", the electronic device 100 may stop executing the picture book reading task (ie exit the picture book). For another example, if the electronic device 100 detects that the user's voice response represents the intention of "continue", the electronic device 100 can continue to perform the reading task (such as playing the audio corresponding to the content of this page), and ignore the subsequent reading tasks in this reading process. The relatively abnormal behavior 2 that may occur, that is, if the electronic device 100 detects that the abnormal behavior 2 occurs again, the electronic device 100 may not give a reminder.

针对上述较为异常的行为3,电子设备100可以输出表4示例性所示的提示“前几页都没有读完哦,请耐心读完吧”。For the above-mentioned relatively abnormal behavior 3, the electronic device 100 may output the prompt "I haven't finished reading the first few pages, please read it patiently" as shown in Table 4 exemplarily.

进一步地,电子设备100可以继续执行阅读任务(例如播放本页内容对应的音频),并忽略本次阅读过程中后续可能出现的该较为异常的行为3,即若电子设备100检测到该异常行为3再次出现时,电子设备100可以不作出提醒。Further, the electronic device 100 can continue to perform the reading task (such as playing the audio corresponding to the content of this page), and ignore the relatively abnormal behavior 3 that may occur later in the current reading process, that is, if the electronic device 100 detects the abnormal behavior When 3 appears again, the electronic device 100 may not make a reminder.

针对上述较为异常的行为4,电子设备100可以输出表4示例性所示的提示“我现在看不到绘本啦,请把绘本放到我面前”。For the above abnormal behavior 4, the electronic device 100 may output the prompt "I can't see the picture book now, please put the picture book in front of me" as exemplarily shown in Table 4.

进一步地,电子设备100可以继续利用前述绘本识别过程中的图像识别算法进行绘本识别,若电子设备100在进行提示后又持续一段时间(例如1分钟)识别不到绘本,则电子设备100可以停止执行绘本阅读任务(即退出绘本)。若电子设备100在进行提示后识别到绘本,则电子设备100继续执行绘本阅读任务(例如播放本页内容对应的音频)。Further, the electronic device 100 may continue to use the image recognition algorithm in the aforementioned picture book recognition process for picture book recognition. If the electronic device 100 fails to recognize the picture book for a period of time (for example, 1 minute) after prompting, the electronic device 100 may stop. Execute the picture book reading task (that is, exit the picture book). If the electronic device 100 recognizes the picture book after prompting, the electronic device 100 continues to execute the picture book reading task (for example, playing the audio corresponding to the content of this page).

其中,电子设备100进行反馈处理需要电子设备100对用户的语音进行识别、对用户的意图进行理解。电子设备100可以通过利用云端的自动语音识别(Automatic SpeechRecognition,ASR)能力和自然语言处理(Natural Language Processing,NLP)能力来实现语音识别和意图理解。Wherein, the feedback processing of the electronic device 100 requires the electronic device 100 to recognize the user's voice and understand the user's intention. The electronic device 100 may implement speech recognition and intent understanding by utilizing automatic speech recognition (Automatic Speech Recognition, ASR) capabilities and natural language processing (Natural Language Processing, NLP) capabilities of the cloud.

其中,表4中示例性所示的提示语可以是电子设备100通过输出装置(例如扬声器、显示屏等)输出的。Wherein, the prompt words exemplarily shown in Table 4 may be output by the electronic device 100 through an output device (such as a loudspeaker, a display screen, etc.).

需要说明的是,表4中所示的用户在阅读过程中短时间内可能出现的较为异常的行为、相应的提示方式以及反馈处理方式仅仅是示例性的,不应构成对本申请的限定。It should be noted that the relatively abnormal behaviors, corresponding prompts and feedback processing methods shown in Table 4 that may occur in a short period of time during the reading process of the user are only exemplary and should not be construed as limiting the present application.

通过执行图3所示的方法,在阅读阶段,电子设备100可以实时发现用户是否出现较为异常的行为,若是,则电子设备100可以在阅读过程中提醒用户集中注意力,或者,提醒用户结束本次阅读。By executing the method shown in FIG. 3 , during the reading phase, the electronic device 100 can find out in real time whether the user has abnormal behaviors, and if so, the electronic device 100 can remind the user to pay attention during the reading process, or remind the user to end the book. reads.

在一些实施例中,电子设备100不需要在确定用户出现了较为异常的行为之后再提醒用户,而是在确定用户出现了异常行为之后,就可以及时提醒用户集中注意力,或,结束阅读等。In some embodiments, the electronic device 100 does not need to remind the user after it is determined that the user has an abnormal behavior, but after it is determined that the user has an abnormal behavior, it can promptly remind the user to concentrate, or end reading, etc. .

2、统计阶段2. Statistical stage

电子设备100在完成阅读阶段之后(即结束本次阅读之后)可以进入统计阶段,在统计阶段,电子设备100可以记录用户本次整个阅读绘本过程的总时长,并将该总时长进行分段(例如可以将该总时长分为M个时间段,其中,M为正整数),并记录每个时间段内用户出现异常行为的次数,之后基于每个时间段内用户出现异常行为的次数来确定并输出对应时间段内用户的专注度评级。进一步地,电子设备100可以基于本次阅读过程每个时间段的时长以及对应时间段内用户的专注度评级,来计算本次整个阅读绘本过程中用户的整体专注度的数值,并确定本次整个阅读绘本过程中用户的专注度评级。After the electronic device 100 completes the reading stage (that is, after finishing the current reading), the electronic device 100 can enter the statistical stage. In the statistical stage, the electronic device 100 can record the total duration of the user's entire picture book reading process this time, and segment the total duration ( For example, the total duration can be divided into M time periods, where M is a positive integer), and the number of abnormal behaviors of users in each time period is recorded, and then determined based on the number of abnormal behaviors of users in each time period And output the concentration rating of the user in the corresponding time period. Further, the electronic device 100 may calculate the value of the user's overall concentration in the entire process of reading the picture book this time based on the duration of each time period of the current reading process and the user's concentration rating in the corresponding time period, and determine the current The user's concentration rating during the entire process of reading picture books.

在本申请实施例中,电子设备100进入统计阶段可以是通过用户发出的指令(例如语音指令)来触发的。例如,电子设备100可以在接收到用户发出“我已完成本次阅读”的语音指令之后进入统计阶段。In the embodiment of the present application, the entry of the electronic device 100 into the counting phase may be triggered by an instruction (such as a voice instruction) issued by the user. For example, the electronic device 100 may enter the counting phase after receiving the user's voice instruction "I have finished this reading".

在一些实施例中,电子设备100也可以在检测到绘本最后一页的内容播放结束之后自动进入统计阶段。In some embodiments, the electronic device 100 may also automatically enter the counting phase after detecting that the content of the last page of the picture book is played.

下面详细介绍本申请实施例提供的绘本阅读方法在统计阶段的具体流程。The specific flow of the picture book reading method provided in the embodiment of the present application in the statistical stage is introduced in detail below.

图4示例性示出了本申请实施例提供的绘本阅读方法在统计阶段的具体流程。下面详细介绍该方法在统计阶段的具体步骤:Fig. 4 exemplarily shows the specific flow of the picture book reading method provided by the embodiment of the present application in the statistical stage. The specific steps of the method in the statistical stage are described in detail below:

S401、电子设备100将用户一次阅读过程的总时长进行分段。S401. The electronic device 100 divides the total duration of one reading process by the user into segments.

具体地,在前述阅读阶段结束之后,电子设备100可以按照一定的分段规则将用户一次阅读过程的总时长进行分段。例如,电子设备100可以将总时长均分为多个时间段,如果某个分割时间点刚好处在出现一次异常行为的时间段之间,则可以延长该时间段,使得该时间段包含出现该异常行为的时间段,后续时间段也可以依次顺延。Specifically, after the aforementioned reading stage ends, the electronic device 100 may segment the total duration of one reading process of the user according to a certain segmentation rule. For example, the electronic device 100 may divide the total duration into multiple time periods, and if a certain division time point is just between the time periods when an abnormal behavior occurs, the time period may be extended so that the time period includes the occurrence of the abnormal behavior. The time period of the abnormal behavior, and the subsequent time period can also be extended in sequence.

示例性地,电子设备100可以以1分钟为单位将用户一次阅读过程的总时长进行分段。以表1为例,参见表1,从表1中可以看出,用户一次阅读过程的总时长为10分钟,如果以1分钟为单位进行分段,则可以分为以下10个时间段:0:00-1:00;1:00-2:00;2:00-3:00;3:00-4:00;4:00-5:00;5:00-6:00;6:00-7:00;7:00-8:00;8:00-9:00;9:00-10:00。但是,时间段3:00-4:00的分割时间点4:00刚好处在出现“长时间未翻页”行为的时间段3:30-5:00之间,因此,电子设备100可以延长该时间段3:00-4:00,即可以将时间段3:00-4:00和时间段4:00-5:00合并为一个时间段3:00-5:00。容易理解,电子设备100最终可以将表1中用户一次阅读过程的总时长分为以下9个时间段:0:00-1:00;1:00-2:00;2:00-3:00;3:00-5:00;5:00-6:00;6:00-7:00;7:00-8:00;8:00-9:00;9:00-10:00。Exemplarily, the electronic device 100 may segment the total duration of one reading process by the user in units of 1 minute. Taking Table 1 as an example, refer to Table 1. It can be seen from Table 1 that the total time of a user's reading process is 10 minutes. If it is segmented in units of 1 minute, it can be divided into the following 10 time periods: 0 :00-1:00; 1:00-2:00; 2:00-3:00; 3:00-4:00; 4:00-5:00; 5:00-6:00; 6:00 -7:00; 7:00-8:00; 8:00-9:00; 9:00-10:00. However, the split time point 4:00 of the time period 3:00-4:00 is just between the time period 3:30-5:00 when the behavior of "not turning the page for a long time" occurs, so the electronic device 100 can extend the The time period is 3:00-4:00, that is, the time period 3:00-4:00 and the time period 4:00-5:00 can be combined into one time period 3:00-5:00. It is easy to understand that the electronic device 100 can finally divide the total duration of a user's reading process in Table 1 into the following nine time periods: 0:00-1:00; 1:00-2:00; 2:00-3:00 ;3:00-5:00;5:00-6:00;6:00-7:00;7:00-8:00;8:00-9:00;9:00-10:00.

需要说明的是,电子设备100将用户一次阅读过程的总时长进行分段使用的分段规则也可以是其他,本申请实施例对此不作限定。It should be noted that the segmentation rules for the electronic device 100 to divide the total time of one reading process by the user into segments may also be other, which is not limited in this embodiment of the present application.

S402、电子设备100记录每个时间段中用户出现异常行为的次数,并基于记录的每个时间段中用户出现异常行为的次数,对每个时间段中用户的专注度进行评级。S402. The electronic device 100 records the number of abnormal behaviors of the user in each time period, and grades the concentration of the user in each time period based on the recorded number of abnormal behaviors of the user in each time period.

具体地,在电子设备100将用户一次阅读过程的总时长进行分段之后,电子设备100可以记录每个时间段中用户出现异常行为的次数。其中,单个时间段中用户出现异常行为的次数与专注度评级之间具有一定的映射关系,该映射关系可以是预先设定的,电子设备100在记录完单个时间段中用户出现异常行为的次数之后可以基于上述映射关系得到对应的专注度评级。Specifically, after the electronic device 100 divides the total duration of one reading process of the user into segments, the electronic device 100 may record the number of abnormal behaviors of the user in each time segment. Wherein, there is a certain mapping relationship between the number of abnormal behaviors of the user in a single time period and the concentration rating, and the mapping relationship can be preset. After the electronic device 100 records the number of abnormal behaviors of the user in a single time period Then the corresponding concentration rating can be obtained based on the above mapping relationship.

参见下表5,表5示例性示出了单个时间段中用户出现异常行为的次数与专注度评级之间的映射关系。从表5中可以看出,电子设备100将单个时间段中用户出现异常行为的次数分为4种情况:0次、1次、2次、3次。电子设备100将专注度分为4个等级,这4个等级由高到低依次为:专注、比较专注、不太专注、不专注。单个时间段中用户出现异常行为的次数为0次时,专注度评级为专注;单个时间段中用户出现异常行为的次数为1次时,专注度评级为比较专注;单个时间段中用户出现异常行为的次数为2次时,专注度评级为不太专注;单个时间段中用户出现异常行为的次数为3次时,专注度评级为不专注。容易看出,异常行为的出现次数越多,专注度评级越低,异常行为的出现次数越少,专注度评级越高。Referring to Table 5 below, Table 5 exemplarily shows the mapping relationship between the number of abnormal behaviors of users in a single time period and the concentration rating. It can be seen from Table 5 that the electronic device 100 divides the number of abnormal behaviors of the user in a single time period into four situations: 0 times, 1 time, 2 times, and 3 times. The electronic device 100 divides the degree of concentration into four levels, and the four levels are in order from high to low: focused, relatively focused, not very focused, and not focused. When the number of abnormal behaviors of the user in a single time period is 0, the concentration rating is concentrated; when the number of abnormal behaviors of the user in a single time period is 1 time, the concentration rating is relatively focused; the user is abnormal in a single time period When the number of behaviors is 2 times, the degree of concentration is rated as not very focused; when the number of abnormal behaviors of the user in a single time period is 3 times, the degree of concentration is rated as inattentive. It is easy to see that the more occurrences of abnormal behaviors, the lower the concentration rating, and the fewer the occurrences of abnormal behaviors, the higher the concentration rating.

需要说明的是,表5中示出的单个时间段中用户出现异常行为的次数与专注度评级之间的映射关系仅仅是示例性的,不应构成对本申请的限定。It should be noted that the mapping relationship between the number of abnormal behaviors of the user in a single time period and the concentration rating shown in Table 5 is only exemplary, and should not be construed as limiting the present application.

在一些实施例中,单个时间段中用户出现异常行为的次数与专注度评级之间的映射关系也可以是其他。专注度也可以分为更多等级或更少等级,每个专注度评级对应的单个时间段中用户出现异常行为的次数也可以是其他单个数值或区间。In some embodiments, the mapping relationship between the number of abnormal behaviors of the user in a single time period and the concentration rating may also be other. Concentration can also be divided into more grades or fewer grades, and the number of abnormal behaviors of users in a single time period corresponding to each concentration rating can also be other single values or intervals.

在另一些实施例中,在确定每个时间段用户的专注度评级时,还可以结合用户出现异常行为的异常程度来更细致地区分专注度评级。其中,用户出现异常行为的异常程度可以基于用户长时间未翻页的时长、跳页的页数等来确定。In some other embodiments, when determining the concentration rating of the user in each time period, the concentration rating can be further distinguished in more detail in combination with the degree of abnormality of the user's abnormal behavior. Wherein, the degree of abnormality of the user's abnormal behavior can be determined based on the length of time the user has not turned pages for a long time, the number of pages skipped, and the like.

单个时间段中用户出现异常行为的次数The number of times a user experienced unusual behavior in a single time period 专注度评级Concentration Rating 00 专注concentrate on 11 比较专注relatively focused 22 不太专注less focused 33 不专注inattentive

表5table 5

电子设备100基于记录的每个时间段中用户出现异常行为的次数,可以得到每个时间段中用户的专注度评级。The electronic device 100 may obtain the concentration rating of the user in each time period based on the recorded number of abnormal behaviors of the user in each time period.

进一步地,电子设备100还可以比较相邻两个时间段(即当前时间段和当前时间段的上一个时间段)用户的专注度评级,如果当前时间段和当前时间段的上一个时间段,用户的专注度评级均为非专注(例如比较专注,或,不太专注,或,不专注),则当前时间段的专注度评级可以进行调整,例如,在本来应得的专注度评级的基础上下降一级,得到调整后的当前时间段的专注度评级。这样,可以在判断用户可能出现了较长时间的非专注行为的情况下,下调对用户这段时间的专注度评级。Further, the electronic device 100 can also compare the concentration ratings of users in two adjacent time periods (ie, the current time period and the previous time period of the current time period), if the current time period and the previous time period of the current time period, If the user's concentration ratings are all non-focused (for example, relatively focused, or not very focused, or not focused), the concentration rating of the current time period can be adjusted, for example, on the basis of the original concentration rating Up and down one level to get an adjusted concentration rating for the current time period. In this way, under the condition that it is judged that the user may have been inattentive for a long period of time, the rating of the user's concentration during this period may be lowered.

参见下表6,表6示例性示出了当前时间段的上一个时间段的专注度评级、当前时间段本来应得的专注度评级、调整后的当前时间段的专注度评级。Referring to Table 6 below, Table 6 exemplarily shows the concentration rating of the previous time period of the current time period, the original concentration rating of the current time period, and the adjusted concentration rating of the current time period.

从表6中可以看出,在时间段1的专注度评级为比较专注/不太专注/不专注,时间段2本来应得的专注度评级为不太专注的情况下,由于这两个时间段内用户的专注度评级均为非专注,因此,时间段2本来应得的专注度评级需要作调整来得到调整后的时间段2的专注度评级。调整后的时间段2的专注度评级可以是在时间段2本来应得的专注度评级基础上下降一级得到的,即将不太专注下降一级为不专注,因此,调整后的时间段2的专注度评级为不专注。It can be seen from Table 6 that when the concentration rating of time period 1 is relatively focused/not very focused/not focused, and the original concentration rating of time period 2 is not very focused, due to the two time periods The concentration ratings of users in this period are non-focused, so the original concentration ratings of time period 2 need to be adjusted to obtain the adjusted concentration ratings of time period 2. The adjusted concentration rating of time period 2 can be obtained by dropping one level from the originally deserved concentration rating of time period 2, that is, not being very focused is reduced by one level to non-focused. Therefore, the adjusted time period 2 is rated as inattentive.

在一些实施例中,在时间段1的专注度评级为比较专注/不太专注/不专注,时间段2本来应得的专注度评级为不专注的情况下,由于不专注是表5的专注度评级中最低的一级,因此,在这种情况下,时间段2本来应得的专注度评级不需要作调整,即时间段2本来应得的专注度评级与调整后的时间段2的专注度评级一致。In some embodiments, when the concentration rating of time period 1 is more focused/not very focused/not focused, and the original concentration rating of time period 2 is non-focused, because non-focus is the focus of Table 5 Therefore, in this case, the original concentration rating of time period 2 does not need to be adjusted, that is, the original concentration rating of time period 2 is the same as the adjusted Concentration ratings are consistent.

表6中的其他3种情况,由于这两个时间段内用户的专注度评级没有出现均为非专注的情况,因此,时间段2本来应得的专注度评级不需要作调整,即时间段2本来应得的专注度评级与调整后的时间段2的专注度评级一致。In the other three cases in Table 6, since the user's concentration ratings in these two time periods did not appear to be non-focused, the original concentration ratings of time period 2 do not need to be adjusted, that is, the time period 2 would have deserved a concentration rating consistent with the adjusted concentration rating for time period 2.

Figure BDA0003184951950000171
Figure BDA0003184951950000171

表6Table 6

基于表5和表6中的信息,容易理解,若电子设备100将用户本次阅读绘本过程的总时长划分后为M个时间段,其中,M为正整数,该M个时间段中的第m个时间段对应的用户的专注度评级不是最高的(例如专注度评级为比较专注/不太专注/不专注),而且,电子设备100基于该M个时间段中的第m+1个时间段中异常行为的出现次数确定第m+1个时间段对应的用户的专注度评级为A,其中,专注度评级A不是最高的也不是最低的(例如专注度评级A为比较专注/不太专注),则电子设备100进一步可以确定将第m+1个时间段对应的用户的专注度评级由专注度评级A调整至专注度评级B,其中,专注度评级B比所述专注度评级A低一级(例如若专注度评级A为比较专注,则专注度评级B为不太专注),m为正整数且小于M。Based on the information in Table 5 and Table 6, it is easy to understand that if the electronic device 100 divides the total duration of the user's current picture book reading process into M time periods, where M is a positive integer, the first time period in the M time periods The concentration rating of the user corresponding to the m time periods is not the highest (for example, the concentration rating is relatively focused/not very focused/not focused), and the electronic device 100 is based on the m+1th time in the M time periods The number of occurrences of abnormal behavior in the segment determines that the concentration rating of the user corresponding to the m+1th time period is A, where the concentration rating A is neither the highest nor the lowest (for example, the concentration rating A is relatively focused/not very focus), then the electronic device 100 can further determine that the concentration rating of the user corresponding to the m+1th time period is adjusted from the concentration rating A to the concentration rating B, wherein the concentration rating B is higher than the concentration rating A One level lower (for example, if the concentration rating A is more focused, then the concentration rating B is less focused), m is a positive integer and less than M.

基于表1和表3中的信息,电子设备100通过执行步骤S401和步骤S402,可以得到如下表7示例性所示的分析结果。Based on the information in Table 1 and Table 3, the electronic device 100 can obtain the analysis results shown in Table 7 below by performing Step S401 and Step S402.

参见表7,从表7中可以看出,在时间段0:00-1:00、6:00-7:00、7:00-8:00、8:00-9:00、9:00-10:00中,用户均未出现异常行为,即用户出现异常行为的次数均为0,根据表5可知,这5个时间段的专注度评级均为专注。See Table 7, as can be seen from Table 7, in the time period 0:00-1:00, 6:00-7:00, 7:00-8:00, 8:00-9:00, 9:00 In -10:00, no abnormal behavior occurred in the user, that is, the number of abnormal behaviors of the user was 0. According to Table 5, the concentration ratings of these 5 time periods are all focused.

在时间段1:00-2:00中,用户出现“跳页”行为,即用户出现异常行为的次数为1,根据表5可知,该时间段本来应得的专注度评级为比较专注,且由于该时间段的上一个时间段0:00-1:00的专注度评级为专注,因此,该时间段的专注度评级依然为该时间段本来应得的专注度评级,即为比较专注。In the time period 1:00-2:00, the user has "jumping page" behavior, that is, the number of times the user has abnormal behavior is 1. According to Table 5, the concentration rating that should have been given during this time period is relatively focused, and Since the concentration rating of the previous time period 0:00-1:00 in this time period is focused, the concentration rating of this time period is still the original concentration rating of this time period, that is, relatively focused.

在时间段2:00-3:00中,用户出现“提问未响应”行为,即用户出现异常行为的次数为1,根据表5可知,该时间段本来应得的专注度评级为比较专注,但是由于该时间段的上一个时间段1:00-2:00的专注度评级为比较专注,因此,该时间段的专注度评级在该时间段本来应得的专注度评级基础上下调一级,即为不太专注。In the time period 2:00-3:00, the user has the behavior of "no response to the question", that is, the number of times the user has abnormal behavior is 1. According to Table 5, the concentration rating that should have been in this time period is relatively focused. However, since the concentration rating of the previous time period 1:00-2:00 in this time period is relatively concentrated, the concentration rating of this time period is lowered by one level based on the original concentration rating of this time period , that is, less focused.

在时间段3:00-5:00中,用户出现“长时间未翻页”行为,即用户出现异常行为的次数为1,根据表5可知,该时间段本来应得的专注度评级为比较专注,但是由于该时间段的上一个时间段2:00-3:00的专注度评级为不太专注,因此,该时间段的专注度评级在该时间段本来应得的专注度评级基础上下调一级,即为不太专注。In the time period 3:00-5:00, the user has the behavior of "not turning the page for a long time", that is, the number of times the user has abnormal behavior is 1. According to Table 5, it can be seen that the concentration rating that this time period should have been compared Concentration, but since the concentration rating of the previous time period 2:00-3:00 in this time period is not very focused, the concentration rating of this time period is based on the original concentration rating of this time period Down one level, that is, less focused.

在时间段5:00-6:00中,用户出现“未读完就翻页”行为和“跳页”行为,即用户出现异常行为的次数为2,根据表5可知,该时间段本来应得的专注度评级为不太专注,但是由于该时间段的上一个时间段3:00-5:00的专注度评级为不太专注,因此,该时间段的专注度评级在该时间段本来应得的专注度评级基础上下调一级,即为不专注。In the time period 5:00-6:00, the user has the behavior of "turning the page before finishing reading" and "jumping the page", that is, the number of abnormal behaviors of the user is 2. According to Table 5, this time period should have The concentration rating obtained is not too focused, but because the concentration rating of the previous time period 3:00-5:00 in this time period is not very focused, the concentration rating of this time period is originally in this time period The deserving concentration rating is lowered by one level, that is, inattention.

Figure BDA0003184951950000181
Figure BDA0003184951950000181

表7Table 7

在一些实施例中,表7中每个时间段的专注度评级也可以均为每个时间段本来应得的专注度评级,即电子设备100也可以不对每个时间段本来应得的专注度评级进行任何调整,直接将每个时间段本来应得的专注度评级作为最终的每个时间段的专注度评级。In some embodiments, the concentration ratings of each time period in Table 7 can also be the concentration ratings that each time period should have, that is, the electronic device 100 may not have the original concentration of each time period. If any adjustments are made to the rating, the original concentration rating for each time period will be directly used as the final concentration rating for each time period.

进一步地,基于表7中的信息,可以得到图5示例性所示的用户在一次阅读过程中专注度的变化趋势示意图。Further, based on the information in Table 7, the schematic diagram of the change trend of the user's concentration in a reading process as shown in FIG. 5 can be obtained.

从图5中可以看出,用户在一次阅读过程中的专注度呈现先降低后提高的变化趋势,即在0-6分钟时间段内,用户的专注度评级依次为专注(0-1分钟)、比较专注(1-2分钟)、不太专注(2-5分钟)、不专注(5-6分钟),即专注度呈现降低的变化趋势;在6-10分钟时间段内,用户的专注度评级均为专注(6-10分钟),即专注度与6分钟之前相比呈现提高的变化趋势。It can be seen from Figure 5 that the user's concentration during a reading process shows a trend of first decreasing and then increasing, that is, within the time period of 0-6 minutes, the user's concentration rating is in the order of concentration (0-1 minute) , relatively focused (1-2 minutes), not very focused (2-5 minutes), not focused (5-6 minutes), that is, the concentration shows a decreasing trend; in the period of 6-10 minutes, the user's concentration The degrees of concentration are all concentrated (6-10 minutes), that is, the degree of concentration shows a trend of improvement compared with that before 6 minutes.

由于图5中标注有用户在阅读过程中出现的异常行为,因此,从图5中还可以看出用户在哪个时间段出现了异常行为。如图5所示,用户在时间段1:00-2:00和时间段5:00-6:00出现了“跳页”行为,用户在时间段2:00-3:00出现了“提问未响应”行为,用户在时间段3:00-5:00出现了“长时间未翻页”行为,用户在时间段5:00-6:00出现了“未读完就翻页”行为。Since the abnormal behavior of the user during the reading process is marked in Fig. 5, it can also be seen from Fig. 5 in which time period the user has the abnormal behavior. As shown in Figure 5, the user has the behavior of "jumping pages" in the time period 1:00-2:00 and the time period 5:00-6:00, and the user has the behavior of "asking questions" in the time period 2:00-3:00 "Not responding" behavior, the user has the behavior of "not turning the page for a long time" in the time period 3:00-5:00, and the user has the behavior of "turning the page before finishing reading" in the time period 5:00-6:00.

S403、电子设备100基于每个时间段的时长及专注度评级计算用户本次阅读的专注度的值。S403. The electronic device 100 calculates the user's concentration value for this reading based on the duration of each time period and the concentration rating.

具体地,电子设备100可以使用多种方式基于每个时间段的时长及专注度评级来计算用户本次阅读的专注度的值。下面以线性加权的方式为例来说明电子设备100基于每个时间段的时长及专注度评级计算用户本次阅读的专注度的值的具体计算过程:Specifically, the electronic device 100 may use multiple methods to calculate the user's concentration value for this reading based on the duration of each time period and the concentration rating. The following uses linear weighting as an example to illustrate the specific calculation process for the electronic device 100 to calculate the user's concentration value for this reading based on the duration of each time period and the concentration rating:

在一种可能的实现方式中,用户本次阅读的专注度的值V可以利用如下公式1来计算:In a possible implementation, the value V of the concentration of the user's current reading can be calculated using the following formula 1:

Figure BDA0003184951950000191
Figure BDA0003184951950000191

其中,T1,T2,T3,T4依次为前述四类专注度:专注、比较专注、不太专注、不专注的持续时长;C3,C4依次为不太专注、不专注的次数(或称为不太专注、不专注的时间段个数);T为用户本次阅读的总时长(即一次阅读过程的开始时间与结束时间之间的时间间隔);Tp为本次阅读过程中途暂停的总时长(即一次阅读过程中每一次用户中途暂停读绘本与用户又重新回来继续读绘本之间的时间间隔之和);Cp为本次阅读过程中途暂停的次数;P为被翻到的总页数(跳过的页不算);Pf为用户实际读完的总页数(即被翻到的总页数减去未读完就翻页的页数)。Among them, T 1 , T 2 , T 3 , T 4 are the duration of the aforementioned four types of focus in turn: focus, relatively focus, less focus, and non-focus duration; C 3 , C 4 are less focus, not focus The number of times (or called less focused, unfocused time periods); T is the total duration of the user's current reading (that is, the time interval between the start time and the end time of a reading process); T p is the current The total duration of the pause in the reading process (that is, the sum of the time interval between each time the user pauses to read the picture book in the middle of a reading process and the user returns to continue reading the picture book); C p is the number of pauses in the reading process; P is the total number of pages turned (skipped pages are not counted); P f is the total number of pages actually read by the user (that is, the total number of pages turned minus the number of pages turned before they are finished).

在本申请实施例中,电子设备100计算在一次阅读过程中用户每一次中途暂停的时长的实现方式可以为:电子设备100可以在接收到用户发出暂停阅读的指令(例如语音指令)时记录下该时刻t1,之后,电子设备100可以在接收到用户重新回来继续阅读的指令(例如语音指令)时记录下该时刻t2,并计算时刻t2与时刻t1之间的差值,该差值即为用户中途暂停一次的时长。In this embodiment of the application, the electronic device 100 may calculate the duration of each pause in the middle of a reading process by the electronic device 100. When the electronic device 100 receives an instruction (such as a voice instruction) to suspend reading from the user, it can be recorded. After the time t1, the electronic device 100 may record the time t2 when receiving an instruction (such as a voice command) from the user to continue reading again, and calculate the difference between the time t2 and the time t1, and the difference is The length of time the user pauses once.

其中,上述公式1中的参数a1,a2,a3,a4,ap,af,thrp的值均可以是预先设定的,用户也可以按照自己的标准进行自主设置。例如,对于专注的持续时长占比

Figure BDA0003184951950000192
比较专注的持续时长占比
Figure BDA0003184951950000193
可以依次给予正向加权a1=1,a2=0。对于不太专注的持续时长占比
Figure BDA0003184951950000194
不专注的持续时长占比
Figure BDA0003184951950000195
暂停的时长占比
Figure BDA0003184951950000196
可以依次给予负向加权a3=-2,a4=-5,ap=-1。对于用户读完的页数的比例
Figure BDA0003184951950000197
可以给予正向加权af=2,且可以设置thrp=0.9,如果
Figure BDA0003184951950000198
超过0.9,则
Figure BDA0003184951950000199
可以为正向的值(即正值)。Wherein, the values of the parameters a 1 , a 2 , a 3 , a 4 , a p , a f , and thr p in the above formula 1 can all be preset, and users can also set them independently according to their own standards. For example, for the percentage of duration of concentration
Figure BDA0003184951950000192
The proportion of duration that is more focused
Figure BDA0003184951950000193
The forward weights a 1 =1, a 2 =0 can be given sequentially. Percentage of less focused duration
Figure BDA0003184951950000194
Percentage of inattentive duration
Figure BDA0003184951950000195
The percentage of pause time
Figure BDA0003184951950000196
Negative weights a 3 =-2, a 4 =-5, a p =-1 can be given sequentially. Percentage of pages read by the user
Figure BDA0003184951950000197
The forward weight a f =2 can be given, and thr p =0.9 can be set, if
Figure BDA0003184951950000198
more than 0.9, then
Figure BDA0003184951950000199
Can be positive values (i.e. positive values).

其中,惩罚值Penalty是基于不太专注及不专注的时间段个数来确定的,示例性地,惩罚值Penalty可以通过如下公式2来计算:Wherein, the penalty value Penalty is determined based on the number of periods of inattention and inattention. Exemplarily, the penalty value Penalty can be calculated by the following formula 2:

Figure BDA0003184951950000201
Figure BDA0003184951950000201

从上述公式2可以看出,不太专注的时间段个数C3和不专注的时间段个数C4越多,Penalty的值越接近于0。在公式1中,惩罚值Penalty可以与

Figure BDA0003184951950000202
相乘。It can be seen from the above formula 2 that the more the number of less focused time periods C 3 and the number of inattentive time periods C 4 are, the closer the value of Penalty is to 0. In formula 1, the penalty value Penalty can be compared with
Figure BDA0003184951950000202
multiplied.

参见表8,表8示例性示出了专注度的值V与专注度评级之间的映射关系。Referring to Table 8, Table 8 exemplarily shows the mapping relationship between the concentration value V and the concentration rating.

从表8中可以看出,若专注度的值V大于0.5,则表示用户本次阅读是专注的;若专注度的值V在-0.1到0.5之间,则表示用户本次阅读是比较专注的;若专注度的值V在-3到-0.1之间,则表示用户本次阅读是不太专注的;若专注度的值V小于-3,则表示用户本次阅读是不专注的。It can be seen from Table 8 that if the value V of concentration is greater than 0.5, it means that the user is focused on reading this time; if the value V of concentration is between -0.1 and 0.5, it means that the user is more focused on reading this time If the value V of concentration is between -3 and -0.1, it means that the user is not very focused on this reading; if the value V of concentration is less than -3, it means that the user is not focused on this reading.

专注度的值VThe value of concentration V 专注度评级Concentration Rating V>0.5V>0.5 专注concentrate on -0.1≤V≤0.5-0.1≤V≤0.5 比较专注relatively focused -3≤V<-0.1-3≤V<-0.1 不太专注less focused V<-3V<-3 不专注inattentive

表8Table 8

需要说明的是,表8中示出的专注度的值V与专注度评级之间的映射关系仅仅是示例性的,不应构成对本申请的限定。在一些实施例中,表8中专注度的值V的三个临界值0.5、-0.1、-3还可以设置为其他数值,来用于区分不同的专注度评级。It should be noted that the mapping relationship between the concentration value V and the concentration rating shown in Table 8 is only exemplary, and should not be construed as limiting the present application. In some embodiments, the three critical values 0.5, -0.1, -3 of the concentration value V in Table 8 can also be set as other values to distinguish different concentration ratings.

基于表1至表8中的信息,电子设备100可以利用上述公式1和公式2计算得到用户本次阅读的专注度的值。Based on the information in Table 1 to Table 8, the electronic device 100 can use the above formula 1 and formula 2 to calculate the concentration value of the user's current reading.

具体地,从表1、表3、表7中可以得出:T1为5分钟(即表7中专注度评级为“专注”时对应的各个时间段的时长之和),T2为1分钟(即表7中专注度评级为“比较专注”时对应的各个时间段的时长之和),T3为3分钟(即表7中专注度评级为“不太专注”时对应的各个时间段的时长之和),T4为1分钟(即表7中专注度评级为“专注”时对应的各个时间段的时长之和),T为10分钟(即表2中第一条翻页记录对应的开始时间到最后一条翻页记录对应的结束时间之间的时间间隔),P为10页(即表2中“页码”一列对应的总行数),Pf为9页(即表2中“页码”一列对应的总行数减去“本页读完比例”一列对应的本页读完比例小于1的总行数),C3为2次(表7中专注度评级为“不太专注”的次数),C4为1次(表7中专注度评级为“不专注”的次数)。在本次计算过程中,假设Tp为0分钟,Cp为0次。Specifically, it can be drawn from Table 1, Table 3, and Table 7 that T1 is 5 minutes (that is, the sum of the duration of each time period when the concentration rating in Table 7 is "focused"), and T2 is 1 Minutes (that is, the sum of the corresponding time periods when the concentration rating in Table 7 is "comparatively focused"), T3 is 3 minutes (that is, the corresponding time periods when the concentration rating in Table 7 is "not very focused" The sum of the duration of the segment), T4 is 1 minute (that is, the sum of the duration of each time segment when the concentration rating in Table 7 is "focused"), and T is 10 minutes (that is, the first page turning in Table 2 Record the corresponding start time to the time interval between the end time corresponding to the last page-turning record), P is 10 pages (that is, the total number of rows corresponding to the "page number" column in Table 2), and P f is 9 pages (that is, Table 2 The total number of rows corresponding to the "page number" column minus the total number of rows corresponding to the "reading ratio of this page" column is less than 1), C 3 is 2 times (the concentration rating in Table 7 is "not very focused ” times), C 4 was 1 time (the number of times the degree of concentration was rated as “not focused” in Table 7). In this calculation process, it is assumed that T p is 0 minutes and C p is 0 times.

进一步地,基于已经确定的上述公式1和上述公式2中的各个参数的具体值,电子设备100可以利用上述公式1和公式2计算得到用户本次阅读的专注度的值约为-0.7。Further, based on the determined specific values of each parameter in the above formula 1 and the above formula 2, the electronic device 100 can use the above formula 1 and formula 2 to calculate and obtain the value of the concentration of the user for this reading is about -0.7.

进一步地,基于表8中专注度的值V与专注度评级之间的映射关系,电子设备100可以确定用户本次阅读是不太专注的。Further, based on the mapping relationship between the concentration value V and the concentration rating in Table 8, the electronic device 100 can determine that the user is not very focused on reading this time.

在a1=1,a2=0,a3=-2,a4=-5,ap=-1,af=2,thrp=0.9的情况下,电子设备100利用上述公式1和上述公式2计算出来的用户一次阅读的专注度的最大值约为1.2,最小值约为-5。In the case of a 1 =1, a 2 =0, a 3 =-2, a 4 =-5, a p =-1, a f =2, thr p =0.9, the electronic device 100 uses the above formula 1 and The maximum value of the user's concentration for one reading calculated by the above formula 2 is about 1.2, and the minimum value is about -5.

其中,上述专注度的最大值是在用户在整个阅读过程中均未出现异常行为的情况下计算出来的,即整个阅读过程用户的专注度均为“专注”(即T1=T、T2=T3=T4=0)、中途也未暂停(即Tp=0、Cp=0)、没有未读完的页(即

Figure BDA0003184951950000211
)。Among them, the maximum value of the above-mentioned concentration is calculated when the user has no abnormal behavior during the entire reading process, that is, the user's concentration during the entire reading process is "concentration" (that is, T 1 =T, T 2 =T 3 =T 4 =0), no pause in the middle (ie T p =0, C p =0), no unfinished pages (ie
Figure BDA0003184951950000211
).

其中,上述专注度的最小值是在如下情况下计算出来的:整个阅读过程中用户的专注度均为“不专注”,即T4=T、T1=T2=T3=0、中途暂停总时长与本次阅读总时长之比

Figure BDA0003184951950000212
中途暂停次数Cp≥3、用户读完的页数的比例
Figure BDA0003184951950000213
Among them, the minimum value of the above-mentioned concentration is calculated under the following circumstances: the user's concentration is "not focused" throughout the reading process, that is, T 4 =T, T 1 =T 2 =T 3 =0, halfway The ratio of the total pause time to the total reading time of this session
Figure BDA0003184951950000212
The number of pauses C p ≥ 3, the ratio of the number of pages the user has finished reading
Figure BDA0003184951950000213

容易看出,每个时间段对应的用户的专注度评级越高,和/或,专注度评级越高的时间段对应的持续时长越长,则用户在整个阅读绘本过程中的专注度评级越高。It is easy to see that the higher the concentration rating of the user corresponding to each time period, and/or, the longer the duration corresponding to the time period with the higher concentration rating, the higher the user's concentration rating in the entire process of reading picture books. high.

需要说明的是,电子设备100还可以使用其他加权方式来计算用户本次阅读的专注度的值,本申请实施例对此不作限定。It should be noted that the electronic device 100 may also use other weighting methods to calculate the value of the user's current reading concentration, which is not limited in this embodiment of the present application.

通过执行图4所示的方法,电子设备100可以输出统计阶段的分时段结果(例如表7所示的分析结果)和最终计算结果(即专注度的值及该专注度的值对应的专注度评级)。该分时段结果和最终计算结果可以用于评价儿童用户在阅读过程中的阅读情况,供家长参考。此外,电子设备100输出的标注有异常行为的专注度变化趋势示意图(例如图5所示的用户在一次阅读过程中专注度的变化趋势示意图),可以作为儿童用户阅读情况的明细供家长查看。By executing the method shown in FIG. 4, the electronic device 100 can output the period-by-period results of the statistical phase (such as the analysis results shown in Table 7) and the final calculation results (that is, the value of the degree of concentration and the degree of concentration corresponding to the value of the degree of concentration). rating). The segmented result and the final calculation result can be used to evaluate the reading situation of the child user during the reading process, for parents' reference. In addition, the schematic diagram of the change trend of concentration marked with abnormal behaviors output by the electronic device 100 (for example, the schematic diagram of the change trend of the user's concentration in a reading process as shown in FIG. 5 ) can be used as the details of the child user's reading situation for parents to view.

在一些实施例中,电子设备100可以基于计算得到的专注度的值及该专注度的值对应的专注度评级来确定用户是否对该类型的绘本或内容感兴趣,例如,用户在阅读过程中的专注度越高,可以表示用户对该类型的绘本或内容越感兴趣。若电子设备100确定用户对该类型的绘本或内容感兴趣,则电子设备100可以输出一些相同类型的绘本来向用户进行推荐。In some embodiments, the electronic device 100 may determine whether the user is interested in this type of picture book or content based on the calculated concentration value and the concentration rating corresponding to the concentration value. The higher the concentration of , it can indicate that the user is more interested in this type of picture book or content. If the electronic device 100 determines that the user is interested in this type of picture book or content, the electronic device 100 may output some picture books of the same type for recommendation to the user.

在另一些实施例中,上述公式1和公式2中的各个参数可以进行自主设定。这样,可以给儿童用户的家长一定的控制权。例如,上述公式1和上述公式2中的各个参数的具体含义和重要程度可以呈现给家长,便于家长理解,如果家长认为上述公式1和/或公式2中的某项参数并不重要,则家长可以删除该项参数,或,自主调整该项参数的值。In some other embodiments, each parameter in the above formula 1 and formula 2 can be set independently. In this way, some control can be given to the parent of the child user. For example, the specific meaning and importance of each parameter in the above-mentioned formula 1 and the above-mentioned formula 2 can be presented to the parents, which is convenient for the parents to understand. If the parents think that a certain parameter in the above-mentioned formula 1 and/or formula 2 is not important, the parents This parameter can be deleted, or the value of this parameter can be adjusted independently.

本申请的实施例中的电子设备100是具有绘本阅读能力的电子设备,也可以称为绘本阅读智能终端设备,电子设备100可以是绘本阅读机器人、绘本阅读手机、绘本阅读平板等等。本申请实施例对电子设备100的类型、物理形态、尺寸不作限定。The electronic device 100 in the embodiment of the present application is an electronic device capable of reading picture books, and may also be called a smart terminal device for picture book reading. The electronic device 100 may be a picture book reading robot, a picture book reading mobile phone, a picture book reading tablet, and the like. The embodiment of the present application does not limit the type, physical form, and size of the electronic device 100 .

在一些实施例中,电子设备100为绘本阅读机器人的情况下,电子设备100可以提前与带有显示屏的电子设备200(例如手机)建立通信连接(例如蓝牙通信连接等),电子设备100可以将前述统计阶段输出的分析结果(例如前述分时段结果、最终计算结果、标注有异常行为的专注度变化趋势示意图等等)发送给电子设备200,电子设备200可以保存该结果,该结果可以在电子设备200的显示屏上显示,用于供儿童用户的家长查看,从而获知儿童用户在阅读过程中的阅读情况。可选地,上述公式1和公式2中的各个参数也可以通过家长在电子设备200上来进行自主设定。In some embodiments, when the electronic device 100 is a picture book reading robot, the electronic device 100 can establish a communication connection (such as a Bluetooth communication connection, etc.) The analysis results output by the aforementioned statistical stage (such as the aforementioned time-period results, the final calculation results, the schematic diagram of the change trend of the degree of concentration marked with abnormal behavior, etc.) are sent to the electronic device 200, and the electronic device 200 can save the results. The display on the display screen of the electronic device 200 is used for viewing by the parents of the child user, so as to know the reading situation of the child user during the reading process. Optionally, each parameter in the above formula 1 and formula 2 may also be set independently by parents on the electronic device 200 .

下面介绍本申请实施例提供的一种电子设备100的结构。The structure of an electronic device 100 provided in the embodiment of the present application is introduced below.

图6示例性示出了本申请实施例中提供的一种电子设备100的结构。FIG. 6 exemplarily shows the structure of an electronic device 100 provided in the embodiment of the present application.

如图6所示,电子设备100可以包括:处理器601、存储器602、扬声器603、麦克风604、总线605、摄像头606、电源607。这些部件可以通过总线605连接。其中:As shown in FIG. 6 , the electronic device 100 may include: a processor 601 , a memory 602 , a speaker 603 , a microphone 604 , a bus 605 , a camera 606 , and a power supply 607 . These components may be connected by a bus 605 . in:

处理器601可用于读取和执行计算机可读指令,包括一个或者多个处理核心,处理器601通过运行软件程序以及模块,从而执行各种功能的应用以及信息处理。具体实现中,处理器601可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器601的硬件架构可以是专用集成电路(Application Specific Integrated Circuits,ASIC)架构、MIPS架构、ARM架构或者NP架构等等。The processor 601 can be used to read and execute computer-readable instructions, including one or more processing cores. The processor 601 executes various functional applications and information processing by running software programs and modules. In a specific implementation, the processor 601 may mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for instruction decoding, and sends out control signals for the operations corresponding to the instructions. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, logic operations, etc., and can also perform address operations and conversions. The register is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of the instruction. In a specific implementation, the hardware architecture of the processor 601 may be an application specific integrated circuit (Application Specific Integrated Circuits, ASIC) architecture, MIPS architecture, ARM architecture, or NP architecture, and so on.

存储器602通过总线605和处理器601相连。存储器602可用于用于存储各种软件程序和/或多组程序指令。处理器601用于执行至少一个程序指令,以实现上述实施例的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。The memory 602 is connected to the processor 601 through a bus 605 . Memory 602 may be used to store various software programs and/or sets of program instructions. The processor 601 is configured to execute at least one program instruction, so as to implement the technical solutions of the foregoing embodiments. Its implementation principle and technical effect are similar to those of the related embodiments of the method above, and will not be repeated here.

扬声器603(也可以称为音频播放设备或音频外放设备)通过总线605和处理器601相连,可用于将音频电信号转换为声音信号。在本申请实施例中,电子设备100可以通过扬声器603播放绘本内容对应的音频。The speaker 603 (also referred to as an audio playback device or an audio playback device) is connected to the processor 601 through a bus 605, and can be used to convert audio electrical signals into sound signals. In the embodiment of the present application, the electronic device 100 may play the audio corresponding to the content of the picture book through the speaker 603 .

麦克风604通过总线605和处理器601相连,可用于将声音信号转换为电信号。在本申请实施例中,电子设备100可以通过麦克风604接收用户发出的声音信号,可以实现与用户进行语音互动。可选地,在电子设备100不需要实现与用户进行语音互动的功能时,电子设备100的结构中也可以不包括麦克风604。The microphone 604 is connected to the processor 601 through a bus 605 and can be used to convert sound signals into electrical signals. In the embodiment of the present application, the electronic device 100 may receive a voice signal from the user through the microphone 604, and may implement voice interaction with the user. Optionally, when the electronic device 100 does not need to implement the function of voice interaction with the user, the structure of the electronic device 100 may not include the microphone 604 .

摄像头606通过总线605和处理器601相连,可用于用于捕获静态图像或视频。在本申请实施例中,摄像头606可用于拍摄绘本的封面页的图像和/或绘本的内容页的图像,进一步地,电子设备100可以利用摄像头606(例如3456×3456的摄像头)拍摄的图像来进行绘本识别。The camera 606 is connected to the processor 601 through the bus 605 and can be used to capture still images or videos. In the embodiment of the present application, the camera 606 can be used to capture the image of the cover page of the picture book and/or the image of the content page of the picture book. Further, the electronic device 100 can use the image captured by the camera 606 (for example, a 3456×3456 camera) to Identify picture books.

电源607可用于向处理器601、存储器602、扬声器603、麦克风604、摄像头606等内部部件供电。The power supply 607 can be used to supply power to internal components such as the processor 601 , the memory 602 , the speaker 603 , the microphone 604 , and the camera 606 .

可选地,电子设备100的结构中还可以包括舵机,舵机可用于调整电子设备100的姿态,以使得电子设备100的摄像头606可以拍摄到绘本。例如,在电子设备100为绘本阅读机器人的情况下,绘本阅读机器人执行绘本阅读任务时,舵机可以控制绘本阅读机器人低头(摄像头可以安装在头部,例如额头部位),使得绘本机器人可以拍摄到身前一定距离(例如30厘米左右)位置处的绘本。Optionally, the structure of the electronic device 100 may also include a steering gear, which can be used to adjust the attitude of the electronic device 100, so that the camera 606 of the electronic device 100 can capture picture books. For example, in the case where the electronic device 100 is a picture book reading robot, when the picture book reading robot performs the picture book reading task, the steering gear can control the picture book reading robot to lower its head (the camera can be installed on the head, such as the forehead), so that the picture book robot can take pictures. Picture books at a certain distance (for example, about 30 centimeters) in front of you.

电子设备100的结构中还可以包括显示屏(图中未示出),可以用于输出图形图像信息。在本申请实施例中,显示屏可以显示电子设备100输出的用户在一次阅读过程中的专注度分析结果,例如,表7所示的分析结果、计算得到的专注度的值及该专注度的值对应的专注度评级、标注有异常行为的专注度变化趋势示意图等等。The structure of the electronic device 100 may also include a display screen (not shown in the figure), which may be used to output graphic image information. In the embodiment of the present application, the display screen can display the analysis result of the user's concentration in a reading process output by the electronic device 100, for example, the analysis results shown in Table 7, the value of the calculated concentration and the value of the concentration. The concentration rating corresponding to the value, the schematic diagram of the concentration change trend marked with abnormal behavior, etc.

电子设备100的结构中还可以包括通信模块(图中未示出),可以用于电子设备100与其他电子设备建立通信连接,并通过该通信连接与其他电子设备进行通信。The structure of the electronic device 100 may also include a communication module (not shown in the figure), which may be used for the electronic device 100 to establish a communication connection with other electronic devices, and communicate with other electronic devices through the communication connection.

电子设备100的结构中还可以包括计时器(图中未示出),可以用于电子设备100记录用户的翻页时间、提问时间、播放内容结束时间等等。The structure of the electronic device 100 may also include a timer (not shown in the figure), which may be used for the electronic device 100 to record the user's page-turning time, question time, end time of playing content, and so on.

在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or Execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

在本申请实施例中,存储器可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SS)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,不限于此。In the embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), or a volatile memory (volatile memory), such as random-access memory (RAM). A memory is, without limitation, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.

本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, and is used for storing program instructions and/or data.

应当理解的是,图6所示电子设备100仅是一个范例,并且电子设备100可以具有比图6中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图6中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the electronic device 100 shown in FIG. 6 is merely an example, and that the electronic device 100 may have more or fewer components than those shown in FIG. 6, two or more components may be combined, or Different component configurations are possible. The various components shown in Figure 6 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面介绍本申请实施例提供的另一种电子设备100的结构。The structure of another electronic device 100 provided in the embodiment of the present application is introduced below.

图7示例性示出了本申请实施例中提供的另一种电子设备100的结构。FIG. 7 exemplarily shows the structure of another electronic device 100 provided in the embodiment of the present application.

如图7所示,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 7, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or A universal serial bus (universal serial bus, USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (displayserial interface, DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 .

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (codedivision multiple access, CDMA), wideband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (beidounavigation satellite system, BDS), a quasi-zenith satellite system (quasi- zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备100姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100, and can be applied to applications such as horizontal and vertical screen switching, pedometers, etc.

距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.

温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .

应当理解的是,图7所示电子设备100仅是一个范例,并且电子设备100可以具有比图7中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图7中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the electronic device 100 shown in FIG. 7 is only an example, and that the electronic device 100 may have more or fewer components than those shown in FIG. 7, two or more components may be combined, or Different component configurations are possible. The various components shown in Figure 7 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

其中,电子设备200的结构可以与上述图7所示的电子设备100的结构部分或全部相同,在此不再赘述。Wherein, the structure of the electronic device 200 may be partly or completely the same as the structure of the electronic device 100 shown in FIG. 7 , and will not be repeated here.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solidstate disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), and the like.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs to instruct related hardware. The programs can be stored in computer-readable storage media. When the programs are executed , may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still apply to the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of each embodiment of the application.

Claims (13)

1.一种绘本阅读方法,其特征在于,应用于包括摄像头的电子设备,所述方法包括:1. A picture book reading method, characterized in that it is applied to an electronic device comprising a camera, and the method comprises: 所述电子设备利用所述摄像头采集到绘本图像,并基于所述绘本图像识别绘本页;The electronic device collects a picture book image by using the camera, and recognizes a picture book page based on the picture book image; 所述电子设备在检测到所述绘本页的页码发生变化时,生成翻页记录;When the electronic device detects that the page number of the picture book page changes, it generates a page turning record; 所述电子设备基于所述翻页记录判断所述用户是否出现异常行为,若是,则所述电子设备记录所述异常行为;The electronic device judges whether the user has abnormal behavior based on the page turning record, and if so, the electronic device records the abnormal behavior; 所述电子设备基于所述异常行为确定所述用户的专注度评级。The electronic device determines an attentiveness rating of the user based on the abnormal behavior. 2.根据权利要求1所述的方法,其特征在于,所述电子设备基于所述异常行为确定所述用户的专注度评级,具体包括:2. The method according to claim 1, wherein the electronic device determines the concentration rating of the user based on the abnormal behavior, specifically comprising: 所述电子设备记录所述用户整个阅读绘本过程的总时长,并将所述总时长分为M个时间段,其中,M为正整数;The electronic device records the total duration of the user's entire process of reading picture books, and divides the total duration into M time periods, where M is a positive integer; 所述电子设备记录所述M个时间段中所述异常行为的出现次数,并基于所述M个时间段中所述异常行为的出现次数来分别确定所述M个时间段对应的所述用户的专注度评级;The electronic device records the occurrence times of the abnormal behavior in the M time periods, and respectively determines the user corresponding to the M time periods based on the occurrence times of the abnormal behavior in the M time periods concentration rating for 其中,所述异常行为的出现次数越多,所述专注度评级越低;所述异常行为的出现次数越少,所述专注度评级越高。Wherein, the more occurrences of the abnormal behaviors, the lower the concentration rating; the fewer the occurrences of the abnormal behaviors, the higher the concentration rating. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 若所述电子设备确定所述M个时间段中的第m个时间段对应的所述用户的专注度评级不是最高的,并基于所述M个时间段中的第m+1个时间段中所述异常行为的出现次数确定所述第m+1个时间段对应的所述用户的专注度评级为A,其中,所述专注度评级A不是最高的,也不是最低的,则所述电子设备确定将所述第m+1个时间段对应的所述用户的所述专注度评级由所述专注度评级A调整至专注度评级B,其中,所述专注度评级B比所述专注度评级A低一级,m为正整数且小于M。If the electronic device determines that the concentration rating of the user corresponding to the mth time period in the M time periods is not the highest, and based on the m+1th time period in the M time periods The number of occurrences of the abnormal behavior determines that the concentration rating of the user corresponding to the m+1th time period is A, wherein the concentration rating A is neither the highest nor the lowest, then the electronic The device determines to adjust the concentration rating of the user corresponding to the m+1th time period from the concentration rating A to the concentration rating B, wherein the concentration rating B is higher than the concentration rating Rating A is one level lower, and m is a positive integer less than M. 4.根据权利要求2或3所述的方法,其特征在于,在所述电子设备基于所述异常行为确定所述用户的专注度评级之后,所述方法还包括:4. The method according to claim 2 or 3, characterized in that, after the electronic device determines the concentration rating of the user based on the abnormal behavior, the method further comprises: 所述电子设备基于所述M个时间段的时长和所述M个时间段对应的所述用户的专注度评级确定所述用户整个阅读绘本过程的专注度评级;The electronic device determines the concentration rating of the user's entire process of reading picture books based on the duration of the M time periods and the concentration rating of the user corresponding to the M time periods; 其中,所述M个时间段对应的所述用户的专注度评级越高,和/或,所述专注度评级越高的时间段对应的持续时长越长,则所述用户整个阅读绘本过程的专注度评级越高。Wherein, the higher the concentration rating of the user corresponding to the M time periods, and/or, the longer the duration corresponding to the higher time period of the concentration rating, the user's entire reading picture book process The higher the concentration rating. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述异常行为包括以下一项或多项:“跳页”行为、“长时间未翻页”行为、“未读完就翻页”行为、“提问未响应”行为。5. The method according to any one of claims 1-4, wherein the abnormal behavior includes one or more of the following: "page skipping" behavior, "page not turned for a long time" behavior, "unread "Turn the page when you're done" behavior, "Question not responded to" behavior. 6.根据权利要求1-5任一项所述的方法,其特征在于,所述翻页记录中包括以下一项或多项:用户翻到的页码、开始时间、本页读完比例、播放内容结束时间、提问时间、提问是否响应、结束时间。6. The method according to any one of claims 1-5, wherein the page turning record includes one or more of the following: the page number the user turned to, the start time, the percentage of the page being read, the playback Content end time, question time, question response or not, end time. 7.根据权利要求5或6所述的方法,其特征在于,所述电子设备基于所述翻页记录判断所述用户是否出现异常行为,具体包括:7. The method according to claim 5 or 6, wherein the electronic device determines whether the user has abnormal behavior based on the page-turning record, specifically comprising: 若所述电子设备检测到用户翻页之前的页码与所述翻页记录中的所述用户翻到的页码不连续,则所述电子设备确定所述用户出现所述“跳页”行为。If the electronic device detects that the page number before the user turns the page is not continuous with the page number turned by the user in the page turning record, the electronic device determines that the user has the "page skipping" behavior. 8.根据权利要求5-7任一项所述的方法,其特征在于,所述电子设备基于所述翻页记录判断所述用户是否出现异常行为,具体包括:8. The method according to any one of claims 5-7, wherein the electronic device determines whether the user has abnormal behavior based on the page-turning record, specifically including: 若所述电子设备检测到所述翻页记录中的所述结束时间比所述播放内容结束时间延迟超过第一时间阈值,则所述电子设备确定所述用户出现所述“长时间未翻页”行为。If the electronic device detects that the end time in the page turning record is delayed by more than the first time threshold than the end time of the playing content, the electronic device determines that the user has the "long time no page turning" "Behavior. 9.根据权利要求5-8任一项所述的方法,其特征在于,所述电子设备基于所述翻页记录判断所述用户是否出现异常行为,具体包括:9. The method according to any one of claims 5-8, wherein the electronic device determines whether the user has abnormal behavior based on the page-turning record, specifically including: 若所述电子设备检测到所述翻页记录中的所述本页读完比例小于1,则所述电子设备确定所述用户出现所述“未读完就翻页”行为。If the electronic device detects that the reading ratio of the current page in the page turning record is less than 1, the electronic device determines that the user has the behavior of "turning the page before finishing reading". 10.根据权利要求5-9任一项所述的方法,其特征在于,所述电子设备基于所述翻页记录判断所述用户是否出现异常行为,具体包括:10. The method according to any one of claims 5-9, wherein the electronic device determines whether the user has abnormal behavior based on the page-turning record, specifically including: 所述电子设备向用户发起提问,并记录所述提问时间,若所述电子设备在发起所述提问之后的第二时间阈值内未接收到用户的回应,则所述电子设备确定所述用户出现所述“提问未响应”行为。The electronic device initiates a question to the user, and records the time of the question, and if the electronic device does not receive a response from the user within a second time threshold after initiating the question, the electronic device determines that the user appears The "ask no response" behavior. 11.根据权利要求1-9任一项所述的方法,其特征在于,在所述电子设备确定用户出现所述异常行为之后,所述方法还包括:11. The method according to any one of claims 1-9, characterized in that, after the electronic device determines that the user has the abnormal behavior, the method further comprises: 所述电子设备通过输出装置输出所述异常行为对应的提示。The electronic device outputs a prompt corresponding to the abnormal behavior through an output device. 12.一种电子设备,其特征在于,所述电子设备包括一个或多个处理器和一个或多个存储器;其中,所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行如权利要求1-11中任一项所述的方法。12. An electronic device, characterized in that the electronic device comprises one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, the The one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device is configured to perform the functions described in claims 1-11. any one of the methods described. 13.一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的方法。13. A computer storage medium, characterized in that the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are run on the electronic equipment, the electronic equipment executes the The method described in any one of claims 1-11.
CN202110860614.7A 2021-07-28 2021-07-28 Drawing book reading method and related equipment Pending CN115700847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110860614.7A CN115700847A (en) 2021-07-28 2021-07-28 Drawing book reading method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110860614.7A CN115700847A (en) 2021-07-28 2021-07-28 Drawing book reading method and related equipment

Publications (1)

Publication Number Publication Date
CN115700847A true CN115700847A (en) 2023-02-07

Family

ID=85120641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110860614.7A Pending CN115700847A (en) 2021-07-28 2021-07-28 Drawing book reading method and related equipment

Country Status (1)

Country Link
CN (1) CN115700847A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117217624A (en) * 2023-10-27 2023-12-12 广州道然信息科技有限公司 Child reading level prediction method and system based on drawing book reading record

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117217624A (en) * 2023-10-27 2023-12-12 广州道然信息科技有限公司 Child reading level prediction method and system based on drawing book reading record
CN117217624B (en) * 2023-10-27 2024-03-01 广州道然信息科技有限公司 Child reading level prediction method and system based on drawing book reading record

Similar Documents

Publication Publication Date Title
CN110364151B (en) Voice awakening method and electronic equipment
CN110784830B (en) Data processing method, Bluetooth module, electronic device and readable storage medium
EP4149109A1 (en) Video generation method and related apparatus
US11470246B2 (en) Intelligent photographing method and system, and related apparatus
US20230421900A1 (en) Target User Focus Tracking Photographing Method, Electronic Device, and Storage Medium
CN113467735A (en) Image adjusting method, electronic device and storage medium
WO2022193989A1 (en) Operation method and apparatus for electronic device and electronic device
CN114554012B (en) Methods for answering incoming calls, electronic equipment and storage media
US20240171826A1 (en) Volume adjustment method and system, and electronic device
WO2022161077A1 (en) Speech control method, and electronic device
CN111930335A (en) Sound adjusting method and device, computer readable medium and terminal equipment
CN114466238B (en) Frame demultiplexing method, electronic device and storage medium
CN114221402A (en) Charging method and device of terminal equipment and terminal equipment
CN113129916B (en) A method, system and related device for audio collection
CN113593567B (en) Method for converting video and sound into text and related equipment
US20230402150A1 (en) Adaptive Action Evaluation Method, Electronic Device, and Storage Medium
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN113438364B (en) Vibration adjustment method, electronic device, storage medium
CN114120987B (en) Voice wake-up method, electronic equipment and chip system
CN113572798B (en) Device control method, system, device, and storage medium
CN115700847A (en) Drawing book reading method and related equipment
CN109285563B (en) Voice data processing method and device in online translation process
CN113918003A (en) Method, device and electronic device for detecting duration of skin contact with screen
WO2023197997A1 (en) Wearable device, and sound pickup method and apparatus
CN113364067B (en) Charging accuracy calibration method and electronic device

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