












技术领域technical field
本申请涉及计算机技术领域,具体涉及用于生成互动做菜教程的方法和设备。The present application relates to the field of computer technology, and in particular to a method and device for generating an interactive cooking tutorial.
背景技术Background technique
随着人们生活水平的提高,人们对食品安全的重视程度也逐渐提高,越来越多的人选择按照菜谱自己烹饪干净又健康的菜肴。目前,菜谱的形式有文字菜谱以及做菜视频,人们通过阅读文字菜谱、或者观看做菜视频学习烹饪某个菜品的各个步骤,然后进行实际操作。With the improvement of people's living standards, people's emphasis on food safety has gradually increased, and more and more people choose to cook clean and healthy dishes according to the recipe. At present, recipes are in the form of text recipes and cooking videos. People learn the various steps of cooking a certain dish by reading the text recipes or watching cooking videos, and then perform practical operations.
然而,通过阅读文字菜谱或者观看做菜视频学习烹饪步骤并进行实践的方法会使用户在实践的过程中忽略如步骤时长等细节而不自知,导致做出的成品与预期存在较大差异。However, the method of learning cooking steps and practicing by reading recipes or watching cooking videos will cause users to ignore details such as the length of steps in the practice process without knowing it, resulting in a large difference between the finished product and the expected.
发明内容SUMMARY OF THE INVENTION
本申请实施例提出了用于生成互动做菜教程的方法和设备。The embodiments of the present application propose a method and device for generating an interactive cooking tutorial.
第一方面,本申请实施例提供了一种用于生成互动做菜教程的方法,应用于服务器,包括:接收互动做菜教程创建请求,互动做菜教程创建请求包括文字菜谱;对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长;为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频;基于至少两个步骤中任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频,生成互动做菜教程,其中,当互动做菜教程被触发展示时,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。In the first aspect, an embodiment of the present application provides a method for generating an interactive cooking tutorial, which is applied to a server and includes: receiving an interactive cooking tutorial creation request, where the interactive cooking tutorial creation request includes a text recipe; Analyze, determine at least two cooking steps, and the timing between any two adjacent cooking steps in the at least two cooking steps; match the corresponding demonstration for each cooking step in the at least two cooking steps Video; based on the timing between any two adjacent cooking steps in at least two steps and the demonstration video corresponding to each cooking step, an interactive cooking tutorial is generated, wherein when the interactive cooking tutorial is triggered and displayed, For other cooking steps except the last cooking step in at least two cooking steps, the cooking step will count down according to the subsequent timing after the execution of the cooking step.
在一些实施例中,文字菜谱包括整篇菜谱,对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长,包括:对整篇菜谱进行语义分析,确定整篇菜谱所包括的各个做菜步骤,以及各个做菜步骤中的任意相邻两个做菜步骤之间的计时时长。In some embodiments, the text recipe includes the entire recipe, the text recipe is analyzed to determine at least two cooking steps, and the timing time between any two adjacent cooking steps in the at least two cooking steps, including : Semantic analysis of the entire recipe to determine each cooking step included in the entire recipe, as well as the timing between any two adjacent cooking steps in each cooking step.
在一些实施例中,文字菜谱包括多个分段菜谱以及任意相邻两个分段菜谱之间的计时时长信息,对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长,包括:根据多个分段菜谱,确定多个分段菜谱对应的至少两个做菜步骤,以及根据任意相邻两个分段菜谱之间的计时时长信息确定至少两个做菜步骤中的任意相邻两个做菜步骤之间的计时时长。In some embodiments, the text recipe includes multiple segmented recipes and timing information between any two adjacent segmented recipes, and the text recipe is analyzed to determine at least two cooking steps and at least two cooking steps The timing duration between any two adjacent cooking steps in the steps includes: determining at least two cooking steps corresponding to the multiple segmented recipes according to multiple segmented recipes, and according to any two adjacent segmented recipes The timing duration information between determines the timing duration between any two adjacent cooking steps in the at least two cooking steps.
在一些实施例中,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:针对至少两个做菜步骤中的每个做菜步骤,在数据库中查找该做菜步骤对应的示范视频。In some embodiments, matching a corresponding demonstration video for each of the at least two cooking steps includes: searching a database for the cooking step for each of the at least two cooking steps Demonstration video corresponding to the steps.
在一些实施例中,互动做菜教程创建请求包括文字菜谱对应的做菜视频,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:根据文字菜谱对做菜视频进行切分,获得每个做菜步骤对应的示范视频。In some embodiments, the interactive cooking tutorial creation request includes a cooking video corresponding to the text recipe, and matching a corresponding demonstration video for each of the at least two cooking steps, including: pairing the cooking video according to the text recipe Divide and get the demonstration video corresponding to each cooking step.
在一些实施例中,互动做菜教程创建请求包括至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:从互动做菜教程创建请求中提取至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频。In some embodiments, the interactive cooking tutorial creation request includes a demonstration video matched to each of the at least two cooking steps, and a corresponding demonstration video matched to each of the at least two cooking steps A video, including: extracting a demonstration video corresponding to each cooking step in at least two cooking steps from the interactive cooking tutorial creation request.
在一些实施例中,互动做菜教程创建请求包括至少两个做菜步骤中部分做菜步骤的示范视频,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:对于至少两个做菜步骤中的每个做菜步骤,响应于在做菜教程创建请求中查找到该做菜步骤对应的示范视频,从做菜教程创建请求中提取该做菜步骤对应的示范视频;或者,响应于在做菜教程创建请求中未查找到该做菜步骤对应的示范视频,在数据库中查询该做菜步骤对应的示范视频。In some embodiments, the interactive cooking tutorial creation request includes demonstration videos of part of the cooking steps in the at least two cooking steps, and matching corresponding demonstration videos for each cooking step in the at least two cooking steps, including: For each cooking step in the at least two cooking steps, in response to finding the demonstration video corresponding to the cooking step in the cooking tutorial creation request, extract the demonstration corresponding to the cooking step from the cooking tutorial creation request or, in response to not finding the demonstration video corresponding to the cooking step in the cooking tutorial creation request, query the database for the demonstration video corresponding to the cooking step.
在一些实施例中,用于生成互动做菜教程的方法还包括:将互动做菜教程保存在教程库中。In some embodiments, the method for generating an interactive cooking tutorial further includes: saving the interactive cooking tutorial in a tutorial library.
在一些实施例中,用于生成互动做菜教程的方法还包括:接收第一终端设备发送的互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程;向第一终端设备发送互动做菜教程。In some embodiments, the method for generating an interactive cooking tutorial further includes: receiving an interactive cooking tutorial acquisition request sent by the first terminal device, where the interactive cooking tutorial acquisition request is used to request the interactive cooking tutorial; The device sends interactive cooking tutorials.
在一些实施例中,用于生成互动做菜教程的方法还包括:接收第一终端设备发送的菜品评分请求,菜品评分请求包括第一终端设备对应的用户基于互动做菜教程制作的菜品的展示信息;根据展示信息确定菜品的第一评分,以及将第一评分发送给第一终端设备;和/或,将展示信息发送给第二终端设备,接收第二终端设备发送的根据展示信息确定的第二评分,以及将第二评分发送给第一终端设备。In some embodiments, the method for generating an interactive cooking tutorial further includes: receiving a dish scoring request sent by a first terminal device, where the dish scoring request includes a display of dishes made by a user corresponding to the first terminal device based on the interactive cooking tutorial determine the first score of the dish according to the display information, and send the first score to the first terminal device; and/or, send the display information to the second terminal device, and receive the information determined according to the display information sent by the second terminal device. A second score, and sending the second score to the first terminal device.
第二方面,本申请实施例提供了一种用于展示互动做菜教程的方法,应用于第一终端设备,包括:向服务器发送互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程;接收服务器发送的互动做菜教程,互动做菜教程包括至少两个做菜步骤、至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长以及至少两个做菜步骤中的每个做菜步骤对应的示范视频;响应于检测到用户对互动做菜教程的触发操作,展示互动做菜教程,其中,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。In a second aspect, an embodiment of the present application provides a method for displaying an interactive cooking tutorial, which is applied to a first terminal device, and includes: sending an interactive cooking tutorial acquisition request to a server, and the interactive cooking tutorial acquisition request is used to request Interactive cooking tutorial; receive the interactive cooking tutorial sent by the server. The interactive cooking tutorial includes at least two cooking steps, the timing between any two adjacent cooking steps in the at least two cooking steps, and at least two cooking steps. Demonstration video corresponding to each cooking step in the cooking steps; in response to detecting the triggering operation of the interactive cooking tutorial by the user, the interactive cooking tutorial is displayed, wherein, for at least two cooking steps, except for the last cooking step For other cooking steps other than steps, the cooking step will count down according to the subsequent timing after the cooking step is finished.
在一些实施例中,响应于用户的触发操作,展示互动做菜教程,包括:响应于用户对互动做菜教程的触发操作,依次展示至少两个做菜步骤中的每个做菜步骤对应的示范视频。In some embodiments, displaying the interactive cooking tutorial in response to a user's triggering operation includes: in response to the user's triggering operation on the interactive cooking tutorial, sequentially displaying the corresponding cooking step of each of the at least two cooking steps. Demonstration video.
在一些实施例中,依次展示至少两个做菜步骤中的每个做菜步骤对应的示范视频,包括:对于至少两个做菜步骤中的每个做菜步骤,响应于检测到用户对该做菜步骤对应的示范视频的播放操作,或者,响应于检测到该做菜步骤与前一做菜步骤之间的计时时长倒计时完毕,播放该做菜步骤对应的示范视频。In some embodiments, displaying the demonstration video corresponding to each of the at least two cooking steps in sequence includes: for each of the at least two cooking steps, in response to detecting that the user has A playback operation of the demonstration video corresponding to the cooking step, or, in response to detecting that the countdown of the time duration between the cooking step and the previous cooking step is completed, the demonstration video corresponding to the cooking step is played.
在一些实施例中,依次展示至少两个做菜步骤中的每个做菜步骤对应的示范视频,包括:对于至少两个做菜步骤中的每个做菜步骤,响应于检测到用户对该做菜步骤的完成操作,或者,响应于检测到该做菜步骤对应的示范视频播放完毕,对该做菜步骤与后一做菜步骤之间的计时时长进行倒计时。In some embodiments, displaying the demonstration video corresponding to each of the at least two cooking steps in sequence includes: for each of the at least two cooking steps, in response to detecting that the user has The completion operation of the cooking step, or, in response to detecting that the demonstration video corresponding to the cooking step is played, counts down the timing between the cooking step and the next cooking step.
在一些实施例中,用于展示互动做菜教程的方法还包括:响应于检测到互动做菜教程执行完毕,显示菜品分享界面;响应于检测到用户在菜品分享界面上的菜品分享操作,获取用于基于互动做菜教程制作的菜品的展示信息,并向服务器发送菜品评分请求,菜品评分请求包括展示信息;接收服务器发送的关于菜品的评分。In some embodiments, the method for displaying the interactive cooking tutorial further includes: in response to detecting that the execution of the interactive cooking tutorial is completed, displaying a dish sharing interface; in response to detecting the user's dish sharing operation on the dish sharing interface, obtaining It is used to display information of dishes made based on the interactive cooking tutorial, and send a dish rating request to the server, where the dish rating request includes the display information; and receive the rating about the dish sent by the server.
在一些实施例中,用于展示互动做菜教程的方法还包括:基于展示信息显示关于菜品的评分。In some embodiments, the method for presenting an interactive cooking tutorial further includes: displaying ratings about the dishes based on the presentation information.
第三方面,本申请实施例提供了一种用于生成互动做菜教程的装置,设置于服务器,包括:创建请求接收单元,被配置为接收互动做菜教程创建请求,互动做菜教程创建请求包括文字菜谱;分析单元,被配置为对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长;匹配单元,被配置为为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频;生成单元,被配置为基于至少两个步骤中任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频,生成互动做菜教程,其中,当互动做菜教程被触发展示时,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。In a third aspect, an embodiment of the present application provides an apparatus for generating an interactive cooking tutorial, which is set on a server and includes: a creation request receiving unit configured to receive an interactive cooking tutorial creation request, and an interactive cooking tutorial creation request Including a text recipe; an analysis unit, configured to analyze the text recipe, to determine at least two cooking steps, and the timing duration between any two adjacent cooking steps in the at least two cooking steps; a matching unit, which is be configured to match a corresponding demonstration video for each of the at least two cooking steps; the generating unit is configured to be based on the timing duration between any two adjacent cooking steps in the at least two steps and each Demonstration videos corresponding to the cooking steps to generate an interactive cooking tutorial, wherein, when the interactive cooking tutorial is triggered and displayed, for the other cooking steps except the last cooking step in at least two cooking steps, what should be done? After the dish step is executed, the countdown will be performed according to the subsequent timing.
第四方面,本申请实施例提供了一种用于展示互动做菜教程的装置,设置于第一终端设备,包括:请求发送单元,被配置为向服务器发送互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程;教程接收单元,被配置为接收服务器发送的互动做菜教程,互动做菜教程包括至少两个做菜步骤、至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长以及至少两个做菜步骤中的每个做菜步骤对应的示范视频;展示单元,被配置为响应于检测到用户对互动做菜教程的触发操作,展示互动做菜教程,其中,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。In a fourth aspect, an embodiment of the present application provides an apparatus for displaying an interactive cooking tutorial, which is set on the first terminal device and includes: a request sending unit configured to send a request for obtaining an interactive cooking tutorial to a server, and the interactive cooking The cooking tutorial acquisition request is used to request an interactive cooking tutorial; the tutorial receiving unit is configured to receive the interactive cooking tutorial sent by the server. The interactive cooking tutorial includes at least two cooking steps, and any adjacent cooking steps in the at least two cooking steps. The timing duration between the two cooking steps and the demonstration video corresponding to each of the at least two cooking steps; the display unit is configured to, in response to detecting a triggering operation of the interactive cooking tutorial by the user, display Interactive cooking tutorial, wherein, for other cooking steps except the last cooking step in at least two cooking steps, the cooking step will count down according to the subsequent timing after the execution of the cooking step.
第五方面,本申请实施例提供了一种服务器,该服务器包括:一个或多个处理器;存储装置,其上存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一实现方式描述的方法。In a fifth aspect, an embodiment of the present application provides a server, the server includes: one or more processors; a storage device on which one or more programs are stored; when one or more programs are stored by one or more processors Execution causes one or more processors to implement a method as described in any implementation of the first aspect.
第六方面,本申请实施例提供了一种终端设备,该终端设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第二方面中任一实现方式描述的方法。In a sixth aspect, an embodiment of the present application provides a terminal device, the terminal device includes: one or more processors; a storage device for storing one or more programs; when one or more programs are stored by one or more The processor executes such that the one or more processors implement a method as described in any implementation of the second aspect.
第七方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法或实现如第二方面中任一实现方式描述的方法。In a seventh aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any implementation manner of the first aspect or implements the method described in the second aspect. A method as described by any implementation in an aspect.
本申请实施例提供的用于生成互动做菜教程的方法和设备,服务器接收互动做菜教程创建请求,互动做菜教程创建请求包括文字菜谱;对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长;为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频;基于至少两个步骤中任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频,生成互动做菜教程。使接收互动做菜教程的用户按照菜谱设定时间进行烹饪,可以降低菜谱的使用难度以及提高做菜的成功率。In the method and device for generating an interactive cooking tutorial provided by the embodiment of the present application, the server receives an interactive cooking tutorial creation request, and the interactive cooking tutorial creation request includes a text recipe; analyzes the text recipe, and determines at least two cooking steps , and the timing duration between any two adjacent cooking steps in the at least two cooking steps; match the corresponding demonstration video for each cooking step in the at least two cooking steps; The timing between two adjacent cooking steps and the demonstration video corresponding to each cooking step will generate an interactive cooking tutorial. The user who receives the interactive cooking tutorial can cook according to the time set by the recipe, which can reduce the difficulty of using the recipe and improve the success rate of cooking.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的用于生成互动做菜教程的方法的一个实施例的流程图;FIG. 2 is a flowchart of one embodiment of a method for generating an interactive cooking tutorial according to the present application;
图3是根据本申请的用于展示互动做菜教程的方法的一个实施例的流程图;FIG. 3 is a flowchart of an embodiment of a method for presenting an interactive cooking tutorial according to the present application;
图4是根据本申请的用于展示互动做菜教程的方法的另一个实施例的流程图;4 is a flowchart of another embodiment of a method for presenting an interactive cooking tutorial according to the present application;
图5是终端设备的显示装置显示的成品分享界面的示意图;5 is a schematic diagram of a finished product sharing interface displayed by a display device of a terminal device;
图6是终端设备的显示装置显示的成品评分界面的示意图;6 is a schematic diagram of a finished product scoring interface displayed by a display device of a terminal device;
图7是终端设备的显示装置显示的操作流程播放界面的示意图;7 is a schematic diagram of an operation flow playback interface displayed by a display device of a terminal device;
图8是根据本申请的一个具体的应用场景中终端设备的显示装置显示的菜品选择界面的示意图;8 is a schematic diagram of a menu selection interface displayed by a display device of a terminal device in a specific application scenario according to the present application;
图9是根据本申请的一个具体的应用场景中终端设备的显示装置显示的菜谱简介以及配料表显示界面的示意图;9 is a schematic diagram of a recipe introduction and an ingredient list display interface displayed by a display device of a terminal device in a specific application scenario of the present application;
图10是根据本申请的一个具体的应用场景中终端设备的显示装置显示的做菜方式选择界面的示意图;10 is a schematic diagram of a cooking mode selection interface displayed by a display device of a terminal device in a specific application scenario of the present application;
图11是根据本申请的一个具体的应用场景中终端设备的显示装置显示的预期半成品效果图显示界面的示意图;11 is a schematic diagram of an expected semi-finished product rendering display interface displayed by a display device of a terminal device in a specific application scenario of the present application;
图12是根据本申请的一个具体的应用场景中终端设备的显示装置显示的预期成品效果图显示界面的示意图;12 is a schematic diagram of an expected finished product rendering display interface displayed by a display device of a terminal device in a specific application scenario of the present application;
图13是适于用来实现本申请实施例的计算机设备的计算机系统的结构示意图。FIG. 13 is a schematic structural diagram of a computer system suitable for implementing the computer device of the embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1示出了可以应用本申请的用于生成互动做菜教程的方法或用于生成互动做菜教程的装置的实施例的示例性系统架构100。FIG. 1 shows an
如图1所示,系统架构100可以包括终端设备101,网络102和服务器103。网络102用以在终端设备101和服务器103之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the
用户可以使用终端设备101通过网络102与服务器103交互,以接收或发送消息等。终端设备101上可以安装有各种接收推送服务的客户端应用,例如教程类应用、菜谱类应用、视频类应用等。The user can use the
终端设备101可以是具有显示屏并且支持接收推送服务的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts GroupAudio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture ExpertsGroup Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。The
终端设备101可以是硬件,也可以是软件。当终端设备101为硬件时,可以是各种电子设备,当终端设备101为软件时,可以安装在上述电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The
服务器103可以是提供各种服务的服务器,例如可以是提供教程生成服务的服务器。提供教程生成服务的服务器可以接收终端设备101发送的做菜教程获取请求,并向终端设备101发送生成的做菜教程。又例如,服务器103可以是提供菜谱生成服务的服务器,提供菜谱生成服务的服务器可以根据终端设备101发送的文字菜谱,生成并向终端设备101发送做菜视频。The
需要说明的是,本公开的实施例所提供用于生成互动做菜教程的方法可以由服务器103或者终端设备101执行,相应地,用于生成互动做菜教程的装置可以设置于服务器103或者终端设备101中。It should be noted that the method for generating an interactive cooking tutorial provided by the embodiments of the present disclosure may be executed by the
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.
继续参考图2,其示出了根据本申请的用于生成互动做菜教程的方法的一个实施例的流程200。该用于生成互动做菜教程的方法应用于服务器,包括以下步骤:Continuing to refer to FIG. 2 , a
步骤201,接收互动做菜教程创建请求,互动做菜教程创建请求包括文字菜谱。
在本实施例中,用于生成互动做菜教程的方法的执行主体(例如图1所示的服务器)可以通过有线或者无线的方式接收互动做菜教程创建请求时,并可以通过发送互动做菜教程创建请求的终端设备、互联网或者本地存储的知识库获取文字菜谱,其中,互动做菜教程创建请求是指终端设备向服务器发送的创建互动做菜教程的指令或者消息。In this embodiment, the execution body of the method for generating an interactive cooking tutorial (for example, the server shown in FIG. 1 ) can receive the interactive cooking tutorial creation request through a wired or wireless manner, and can send an interactive cooking tutorial by sending an interactive cooking tutorial. The terminal device, the Internet, or the knowledge base stored locally for the tutorial creation request obtains the text recipe, wherein the interactive cooking tutorial creation request refers to the instruction or message sent by the terminal device to the server to create the interactive cooking tutorial.
步骤202,对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长。
在本实施例中,服务器可以根据该文字菜谱确定文字菜谱中的至少两个做菜步骤。其中,做菜步骤是指做菜流程中各个步骤的操作、动作或方法,例如,“将猪肉切丝备用”、“大火煮开至沸腾”等。具体的,服务器可以通过神经网络模型确定文字菜谱中的至少两个做菜步骤:服务器可以首先选择标准文字菜谱以及标准文字菜谱的各个做菜步骤作为训练数据,训练神经网络模型,使该神经网络模型实现对各种文字菜谱中做菜步骤的划分或确定;然后使用训练好的神经网络模型确定获取到的文字菜谱的各个做菜步骤。In this embodiment, the server may determine at least two cooking steps in the text recipe according to the text recipe. Among them, the cooking step refers to the operation, action or method of each step in the cooking process, for example, "cut pork shreds for use", "boil on high heat until it boils", etc. Specifically, the server can determine at least two cooking steps in the text recipe through the neural network model: the server can first select the standard text recipe and each cooking step of the standard text recipe as training data, and train the neural network model to make the neural network The model realizes the division or determination of cooking steps in various text recipes; and then uses the trained neural network model to determine each cooking step of the acquired text recipes.
在本实施例中,服务器可以基于神经网络模型或者关键字识别根据文字菜谱的做菜步骤,确定相邻的两个做菜步骤之间的计时时长,可以理解,相邻的两个做菜步骤之间的计时时长可以为前一步骤执行结束后、开始执行后一步骤之前所需要等待的时长,例如前一步骤为“调小火慢炖”,后一步骤为“大火收汁”,则两个做菜步骤之间的计时时长为调小火后,小火慢炖的时长;相邻的两个做菜步骤之间的计时时长也可以为执行前一步骤的持续时长,例如前一步骤为“翻炒”,后一步骤为“加入料酒”,则两个做菜步骤之间的计时时长为执行“翻炒”这个动作的时长。In this embodiment, the server may identify the cooking steps according to the text recipe based on the neural network model or the keyword, and determine the timing time between two adjacent cooking steps. It can be understood that two adjacent cooking steps The timing time between can be the waiting time after the execution of the previous step is completed and before the execution of the next step is started. The timing between two cooking steps is the duration of simmering at low heat after turning down the heat; the timing between two adjacent cooking steps can also be the duration of the previous step, such as the previous step. The step is "frying", and the next step is "adding cooking wine", then the timing between the two cooking steps is the time for performing the action of "frying".
在一些应用场景中,当互动做菜教程创建请求的发送终端与互动做菜教程的使用用户的终端一致时,服务器可以基于文字菜谱的做菜步骤,以及发送互动做菜教程创建请求的用户的饮食习惯或者健康状况,确定该做菜步骤与相邻的后一做菜步骤之间的计时时长。例如,服务器可以通过互动做菜教程创建请求中的设备标识或者发送互动做菜教程创建请求的小程序的用户标识信息获取用户的饮食习惯信息或者身体健康状况,延长或者缩短根据关键字识别所获得的做菜步骤的计时时长,例如,用户喜欢偏软的食物,或者用户为胃病患者,则在基于文字菜谱的做菜步骤获得该做菜步骤的计时时长后,适当延长诸如慢炖、煮、等做菜步骤的计时时长,并将延长后的计时时长作为该做菜步骤最终的与相邻的后一做菜步骤之间的计时时长。In some application scenarios, when the sending terminal of the interactive cooking tutorial creation request is the same as the terminal of the user who uses the interactive cooking tutorial, the server can prepare the cooking steps based on the text recipe and send the interactive cooking tutorial creation request to the user's terminal. Eating habits or health conditions, determine the timing time between this cooking step and the next next cooking step. For example, the server can obtain the user's eating habit information or physical health status through the device ID in the interactive cooking tutorial creation request or the user ID information of the applet that sends the interactive cooking tutorial creation request, and extend or shorten the information obtained by keyword identification. For example, if the user likes soft food, or the user suffers from stomach problems, after obtaining the time duration of the cooking step based on the cooking step of the text recipe, appropriately prolong the cooking step such as slow stewing, boiling, Wait for the timing duration of the cooking step, and use the extended timing duration as the timing duration between the final cooking step and the adjacent next cooking step.
步骤203,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频。
在本实施例中,服务器可以根据文字菜谱的做菜步骤,确定该做菜步骤对应的示范视频。其中,示范视频是指执行该做菜步骤的动画演示,示范视频可以是带有音频讲解,也可以是不包含音频讲解。该示范视频可以是服务器获取的由终端设备上传的示范视频,可以是服务器根据文字菜谱从互联网、云存储或者本机存储的知识库搜索到的示范视频。In this embodiment, the server may determine a demonstration video corresponding to the cooking step according to the cooking step of the text recipe. The demonstration video refers to an animation demonstration of performing the cooking step, and the demonstration video may or may not include audio explanations. The demonstration video may be a demonstration video obtained by the server and uploaded by the terminal device, or may be a demonstration video searched by the server from the Internet, cloud storage, or a knowledge base stored locally according to a text recipe.
步骤204,基于至少两个步骤中任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频,生成互动做菜教程,其中,当互动做菜教程被触发展示时,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。
在本实施例中,服务器将示范视频按照做菜步骤的顺序进行拼接,并且在拼接时,相邻两个做菜步骤之间预留出计时时长。可以理解,预留的计时时长是执行前一做菜步骤后、进行后一做菜步骤前的倒计时时长,当互动做菜教程被发送至用户终端并且由用户触发展示时,除最后一个做菜步骤外,预留时长播放完毕时即为倒计时结束,开始播放下一个做菜步骤对应的示范视频。预留计时时长的目的是为了在用户根据由示范视频以及预留的计时时长拼接成的做菜教程时,可以按照做菜教程以及做菜教程中对执行各个做菜步骤所要求的时间进行相应的操作,并且由于用户在做菜过程中双手不便于频繁点击终端设备,该做菜教程通过预留出执行各个做菜步骤所需的时长,避免用户频繁点击播放键以及暂停键,方便用户使用以及提升用户体验。In this embodiment, the server splices the demonstration videos in the order of the cooking steps, and when splicing, a timing period is reserved between two adjacent cooking steps. It can be understood that the reserved timing is the countdown time after the previous cooking step is performed and before the next cooking step is performed. When the interactive cooking tutorial is sent to the user terminal and triggered by the user to display, except for the last cooking step In addition to the steps, the countdown ends when the reserved time is played, and the demonstration video corresponding to the next cooking step starts to be played. The purpose of reserving the timing duration is that when the user is based on the cooking tutorial spliced by the demonstration video and the reserved timing duration, the user can follow the cooking tutorial and the cooking tutorial to perform the required time for each cooking step. operation, and because it is inconvenient for users to frequently click on the terminal device with both hands during the cooking process, this cooking tutorial reserves the time required to perform each cooking step, so as to avoid users frequently clicking the play button and pause button, which is convenient for users to use and improve user experience.
本实施例通过文字菜谱确定做菜步骤,并根据做菜步骤确定任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频,然后根据任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频生成互动做菜教程,可以帮助互动做菜教程使用用户掌握文字菜谱中做菜步骤的步骤细节以及操作时间,提高做菜的成功率。In this embodiment, the cooking steps are determined through the text recipe, and the timing between any two adjacent cooking steps and the demonstration video corresponding to each cooking step are determined according to the cooking steps, and then the cooking steps are determined according to any two adjacent cooking steps. The timing between steps and the demonstration video corresponding to each cooking step generate interactive cooking tutorials, which can help users to master the steps details and operation time of the cooking steps in the text recipes, and improve the success rate of cooking. .
可选地,文字菜谱包括整篇菜谱,对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长,包括:对整篇菜谱进行语义分析,确定整篇菜谱所包括的各个做菜步骤,以及各个做菜步骤中的任意相邻两个做菜步骤之间的计时时长。Optionally, the text recipe includes the entire recipe, and the text recipe is analyzed to determine at least two cooking steps and the timing duration between any two adjacent cooking steps in the at least two cooking steps, including: Semantic analysis of the entire recipe is performed to determine each cooking step included in the entire recipe, as well as the timing time between any two adjacent cooking steps in each cooking step.
在本实施例中,当文字菜谱为包括完成对应的菜品所需要的所有步骤的整篇菜谱时,服务器可以通过基于关键字的语义分析确定文字菜谱中的至少两个做菜步骤,以及任意相邻两个做菜步骤之间的计时时长。In this embodiment, when the text recipe is an entire recipe including all the steps required to complete the corresponding dish, the server may determine at least two cooking steps in the text recipe through keyword-based semantic analysis, and any related steps. Timing time between two cooking steps.
具体地,可以根据“切菜、焯水”等描述做菜的操作动作的词汇进行做菜步骤的识别。例如,文字菜谱中包含语句“首先,切菜,然后将切好的蔬菜进行焯水”,则可以根据“切菜”、“焯水”这两个描述做菜的操作动作的词汇确定该文字菜谱中“切菜”、“将切好的蔬菜进行焯水”这两个做菜步骤。服务器可以根据“首先、然后、第一步、第二步”等逻辑连接词进行做菜步骤的识别。例如,文字菜谱中包含语句“第一步、把土豆削皮切丝;第二步、用冷水冲洗,把淀粉冲掉后放置备用”,则可以根据“第一步、第二步”这两个逻辑连接词确定文字菜谱中“把土豆丝削皮切丝”、“用冷水冲洗,把淀粉冲掉后放置备用”这两个做菜步骤。Specifically, the steps of cooking can be identified according to words such as "cutting vegetables, blanching water" and other words that describe the operation actions of cooking. For example, if the text recipe contains the sentence "First, cut vegetables, and then blanch the cut vegetables", the word can be determined according to the words "cutting vegetables" and "blanching" which describe the operation of cooking. In the recipe, there are two cooking steps: "Cut vegetables" and "Boil the chopped vegetables". The server can identify the cooking steps according to logical connectives such as "first, then, first step, second step". For example, if the text recipe contains the sentence "The first step, peel and shred the potatoes; the second step, rinse with cold water, rinse off the starch and set aside for later use", then you can use the "first step, the second step" according to the two A logical conjunction determines the two cooking steps in the text recipe: "peel and shred the potato shreds" and "rinse with cold water, rinse off the starch and set aside for later use".
具体地,服务器可以根据文字菜谱中描述时间或时长的词汇对文字菜谱中的做菜步骤进行关键字识别,识别出完成该做菜步骤所需的时间。例如,文字菜谱的某个做菜步骤为“小火慢炖30分钟,然后加入葱花”,则可以确定“小火慢炖”与“加入葱花”这两个做菜步骤之间的计时时长为30分钟。Specifically, the server may perform keyword recognition on the cooking step in the text recipe according to the vocabulary describing the time or duration in the text recipe, and identify the time required to complete the cooking step. For example, if a certain cooking step of a text recipe is "simmer on low heat for 30 minutes, then add chopped green onion", it can be determined that the timing between the two cooking steps of "simmer on low heat" and "add chopped green onion" is 30 minutes.
可选地,文字菜谱包括多个分段菜谱以及任意相邻两个分段菜谱之间的计时时长信息,对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长,包括:根据多个分段菜谱,确定多个分段菜谱对应的至少两个做菜步骤,以及根据任意相邻两个分段菜谱之间的计时时长信息确定至少两个做菜步骤中的任意相邻两个做菜步骤之间的计时时长。Optionally, the text recipe includes a plurality of segmented recipes and timing information between any two adjacent segmented recipes, and the text recipe is analyzed to determine at least two cooking steps, and at least two cooking steps. The timing between any two adjacent cooking steps includes: determining at least two cooking steps corresponding to multiple segmented recipes according to multiple segmented recipes, and determining the duration between any two adjacent segmented recipes The timing duration information of determines the timing duration between any two adjacent cooking steps in the at least two cooking steps.
在本实施例中,文字菜谱包括完成该文字菜谱对应的菜品所需要的每个步骤对应的分段菜谱,以及每两个相邻步骤之间的计时时长信息时,服务器可以根据各个分段菜谱确定文字菜谱中的各个做菜步骤,以及根据计时时长信息确定相邻两个做菜步骤之间的计时时长。其中,分段菜谱可以是用户按照预设格式上传的对应于文字菜谱中每个做菜步骤的菜谱,计时时长信息可以是用户在上传分段菜谱时一同上传的执行该分段菜谱后需要等待的时长。In this embodiment, the text recipe includes a segmented recipe corresponding to each step required to complete the dish corresponding to the text recipe, and the timing information between each two adjacent steps, the server can Each cooking step in the text recipe is determined, and the timing duration between two adjacent cooking steps is determined according to the timing duration information. Wherein, the segmented recipe may be a recipe uploaded by the user according to a preset format and corresponding to each cooking step in the text recipe, and the timing information may be the time required to wait after executing the segmented recipe uploaded by the user when uploading the segmented recipe. length of time.
可选地,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:针对至少两个做菜步骤中的每个做菜步骤,在数据库中查找该做菜步骤对应的示范视频。Optionally, matching the corresponding demonstration video for each of the at least two cooking steps, including: for each cooking step in the at least two cooking steps, searching the database for the corresponding cooking step. demonstration video.
在本实施例中,服务器可以根据文字菜谱中的做菜步骤在互联网或者本地存储的数据库、知识库或教程库中通过关键字等方式查找该做菜步骤对应的示范视频。In this embodiment, the server may search for a demonstration video corresponding to the cooking step on the Internet or in a locally stored database, knowledge base or tutorial base according to the cooking step in the text recipe through keywords or other means.
可选地,互动做菜教程创建请求包括文字菜谱对应的完整的做菜视频,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:根据文字菜谱对完整的做菜视频进行切分,获得每个做菜步骤对应的示范视频。Optionally, the interactive cooking tutorial creation request includes a complete cooking video corresponding to the text recipe, and matches a corresponding demonstration video for each cooking step in the at least two cooking steps, including: a complete cooking video according to the text recipe. Divide the cooking video to get the demonstration video corresponding to each cooking step.
在本实施例中,完整的做菜视频是指包含文字菜谱中每个做菜步骤的示范视频的动画演示。当互动做菜教程创建请求中包含了文字菜谱对应的完整的做菜视频时,服务器可以根据文字菜谱中的做菜步骤将做菜视频进行切分,以获得对应于文字菜谱中的各个做菜步骤的各个示范视频。具体地,服务器可以识别做菜视频中每一帧的画面,根据标题页或者分隔页的画面确定做菜视频中的对应于做菜步骤的示范视频。例如,做菜视频中某一帧的画面的中间位置带有“第三步”的标题栏,则可以将这一帧画面作为分割第二步与第三步的分隔点;服务器可以识别做菜视频中每一帧的画面,根据连续的画面中环境因素的变化或者演示者动作的变化分割做菜视频,例如,做菜视频的第1帧至第100帧的画面均出现了使用菜板切菜的画面,第101帧到第200帧均为在灶台边煮菜的画面,则可以将做菜视频分割成第1帧到第100帧为切菜做菜步骤对应的示范视频,第101帧到第200帧为焯水做菜步骤对应的示范视频;还可以根据做菜视频中的音频数据进行关键字识别,确认与各个做菜步骤对应的时间点,并根据时间点对做菜视频进行分割,获取与各个做菜步骤对应的示范视频。In this embodiment, the complete cooking video refers to an animation presentation including a demonstration video of each cooking step in the text recipe. When the interactive cooking tutorial creation request contains the complete cooking video corresponding to the text recipe, the server can segment the cooking video according to the cooking steps in the text recipe, so as to obtain the corresponding cooking videos in the text recipe. Step-by-step demonstration videos. Specifically, the server may identify the picture of each frame in the cooking video, and determine the demonstration video corresponding to the cooking step in the cooking video according to the picture of the title page or the separation page. For example, if there is a title bar of "Step 3" in the middle of a certain frame in the cooking video, this frame can be used as the separation point for dividing the second and third steps; the server can identify the cooking For each frame of the video, the cooking video is divided according to the changes of environmental factors in the continuous pictures or the changes of the presenter's actions. The pictures of the dishes, the 101st to 200th frames are the pictures of cooking by the stove, then the cooking video can be divided into the first to 100th frames, which are the demonstration videos corresponding to the steps of cutting vegetables and cooking, and the 101st Frames to the 200th frame are the demonstration videos corresponding to the cooking steps; keyword identification can also be performed according to the audio data in the cooking videos to confirm the time points corresponding to each cooking step, and the cooking videos can be compared according to the time points. Perform segmentation to obtain demonstration videos corresponding to each cooking step.
可选地,互动做菜教程创建请求包括至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:从互动做菜教程创建请求中提取至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频。Optionally, the interactive cooking tutorial creation request includes a demonstration video that matches each cooking step in the at least two cooking steps, and matches a corresponding demonstration video for each cooking step in the at least two cooking steps, Including: extracting a demonstration video corresponding to each cooking step in at least two cooking steps from the interactive cooking tutorial creation request.
在本实施例中,当互动做菜教程创建请求中包含了文字菜谱中每个做菜步骤对应的示范视频时,服务器可以从互动做菜教程创建请求中获取每个做菜步骤对应的示范视频。互动做菜教程创建请求中的示范视频可以是发送互动做菜教程创建请求的用户在发送文字菜谱时,按照预设格式上传的该文字菜谱中的每个做菜步骤对应的示范视频。In this embodiment, when the interactive cooking tutorial creation request includes a demonstration video corresponding to each cooking step in the text recipe, the server may obtain the demonstration video corresponding to each cooking step from the interactive cooking tutorial creation request . The demonstration video in the interactive cooking tutorial creation request may be a demonstration video corresponding to each cooking step in the text recipe uploaded in a preset format when the user who sends the interactive cooking tutorial creation request sends the text recipe.
可选地,互动做菜教程创建请求包括至少两个做菜步骤中部分做菜步骤的示范视频,为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频,包括:对于至少两个做菜步骤中的每个做菜步骤,响应于在做菜教程创建请求中查找到该做菜步骤对应的示范视频,从做菜教程创建请求中提取该做菜步骤对应的示范视频;或者,响应于在做菜教程创建请求中未查找到该做菜步骤对应的示范视频,在数据库中查询该做菜步骤对应的示范视频。Optionally, the interactive cooking tutorial creation request includes demonstration videos of part of the cooking steps in the at least two cooking steps, and matching corresponding demonstration videos for each cooking step in the at least two cooking steps, including: for at least two cooking steps. For each cooking step in the two cooking steps, in response to finding the demonstration video corresponding to the cooking step in the cooking tutorial creation request, extract the demonstration video corresponding to the cooking step from the cooking tutorial creation request; Or, in response to not finding the demonstration video corresponding to the cooking step in the cooking tutorial creation request, query the database for the demonstration video corresponding to the cooking step.
在本实施例中,互动做菜教程创建请求中只包含文字菜谱中的部分做菜步骤的示范视频,则首先在互动做菜教程创建请求中查找每个做菜步骤对应的示范视频,如查找到相应的示范视频则将该示范视频作为该做菜步骤对应的示范视频,如未查找到相应的示范视频则在数据库中查找该做菜步骤对应的示范视频。In this embodiment, the interactive cooking tutorial creation request only includes demonstration videos of some cooking steps in the text recipe, then firstly, the interactive cooking tutorial creation request is to find the demonstration video corresponding to each cooking step, such as finding When the corresponding demonstration video is found, the demonstration video is regarded as the demonstration video corresponding to the cooking step. If the corresponding demonstration video is not found, the demonstration video corresponding to the cooking step is searched in the database.
在上述图2描述的实施例的一些可选的实现方式中,用于生成互动做菜教程的方法还包括:将互动做菜教程保存在教程库中。In some optional implementations of the embodiment described in FIG. 2 above, the method for generating an interactive cooking tutorial further includes: saving the interactive cooking tutorial in a tutorial library.
在本实施例中,可以将生成的互动做菜教程保存在教程库或者数据库中,该教程库或者数据库可以是服务器的本地存储空间也可以是云存储空间。将生成的互动做菜教程保存在教程库或者数据库中可以在用户请求同一互动做菜教程时直接从教程库或者数据库中调取相应的互动做菜教程,避免重复生成教程所造成的计算或存储等资源的浪费,并且生成的互动做菜教程可以作为示范视频的素材。In this embodiment, the generated interactive cooking tutorial may be stored in a tutorial library or database, and the tutorial library or database may be a local storage space of the server or a cloud storage space. Save the generated interactive cooking tutorials in the tutorial library or database. When the user requests the same interactive cooking tutorial, the corresponding interactive cooking tutorial can be directly retrieved from the tutorial library or database, avoiding the calculation or storage caused by the repeated generation of the tutorial. Waste of resources, and the generated interactive cooking tutorials can be used as material for demonstration videos.
在上述图2描述的实施例的一些可选的实现方式中,用于生成互动做菜教程的方法还包括:接收第一终端设备发送的互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程;向第一终端设备发送互动做菜教程。In some optional implementations of the embodiment described in FIG. 2, the method for generating an interactive cooking tutorial further includes: receiving a request for obtaining an interactive cooking tutorial sent by the first terminal device, and using To request interactive cooking tutorials; send interactive cooking tutorials to the first terminal device.
在本实施例中,服务器可以接收第一终端设备发送的互动做菜教程获取请求,然后将相应的互动做菜教程发送至该第一终端设备,其中,互动做菜教程获取请求是指终端设备向服务器发送的用于请求互动做菜教程的指令或者信息。In this embodiment, the server may receive an interactive cooking tutorial acquisition request sent by the first terminal device, and then send the corresponding interactive cooking tutorial to the first terminal device, where the interactive cooking tutorial acquisition request refers to the terminal device Instructions or information sent to the server to request interactive cooking tutorials.
可选地,用于生成互动做菜教程的方法还包括:接收第一终端设备发送的菜品评分请求,菜品评分请求包括第一终端设备对应的用户基于互动做菜教程制作的菜品的展示信息;根据展示信息确定菜品的第一评分,以及将第一评分发送给第一终端设备;和/或,将展示信息发送给第二终端设备,接收第二终端设备发送的根据展示信息确定的第二评分,以及将第二评分发送给第一终端设备。Optionally, the method for generating an interactive cooking tutorial further includes: receiving a dish rating request sent by the first terminal device, where the dish rating request includes display information of dishes made by a user corresponding to the first terminal device based on the interactive cooking tutorial; Determine the first score of the dish according to the display information, and send the first score to the first terminal device; and/or, send the display information to the second terminal device, and receive the second terminal device determined according to the display information sent by the second terminal device. score, and send the second score to the first terminal device.
在本实施例中,服务器可以接收用户通过第一终端设备发送的菜品评分请求,该菜品评分请求中包含第一终端设备对应的用户根据互动做菜教程所获得的菜品的展示信息,服务器根据该展示信息确定菜品的第一评分,并将该评分发送给第一终端设备;或者服务器将获得的展示信息发送至第二终端设备,并接收第二终端设备对应的用户发送的对菜品的第二评分,并将该第二评分发送至第一终端设备使第一终端设备对应的用户知晓自己的菜品的评分;或者服务器还可以将根据获得的展示信息确定第一评分,并将该展示信息发送至第二终端设备以获得第二评分,然后将两种评分做加权处理后发送至第一终端设备,使第一终端设备对应的用户知晓自己的菜品评分。其中,展示信息是指用户按照做菜教程操作后获得的菜品的图片、视频或者文字描述;第一终端设备对应的用户是指请求互动做菜教程并根据该互动做菜教程做菜,最终获得菜品的用户;第二终端设备对应的用户是指第一终端设备对应的用户指定的朋友圈、厨师、或者美食家等。In this embodiment, the server may receive a dish rating request sent by the user through the first terminal device, where the dish rating request includes the display information of the dish obtained by the user corresponding to the first terminal device according to the interactive cooking tutorial, and the server can receive the dish display information according to the interactive cooking tutorial. The display information determines the first score of the dish, and sends the score to the first terminal device; or the server sends the obtained display information to the second terminal device, and receives the second score of the dish sent by the user corresponding to the second terminal device. score, and send the second score to the first terminal device so that the user corresponding to the first terminal device knows the score of his dish; or the server can also determine the first score according to the obtained display information, and send the display information The second terminal device is sent to the second terminal device to obtain the second score, and then the two scores are weighted and sent to the first terminal device, so that the user corresponding to the first terminal device can know their own dish score. Among them, the displayed information refers to the pictures, videos or text descriptions of the dishes obtained by the user after operating the cooking tutorial; the user corresponding to the first terminal device refers to the user who requests the interactive cooking tutorial and cooks according to the interactive cooking tutorial, and finally obtains the The user of the dish; the user corresponding to the second terminal device refers to the circle of friends, chef, or gourmet, etc. designated by the user corresponding to the first terminal device.
在本实施例中,服务器可以将用户完成的菜品的图片与预期图片进行对比,获得二者之间的相似度,并根据该相似度确定用户完成的菜品的评分。服务器还可以通过第一终端设备采集对应的用户根据成品的色香味等属性回答的预设问题的文字描述,并根据该文字描述确定菜品的评分,此时,该评分更符合第一终端设备对应的用户对菜品的实际预期。In this embodiment, the server may compare the picture of the dish completed by the user with the expected picture, obtain the similarity between the two, and determine the score of the dish completed by the user according to the similarity. The server can also collect, through the first terminal device, the text description of the preset question answered by the corresponding user according to the color, fragrance and other attributes of the finished product, and determine the score of the dish according to the text description. In this case, the score is more in line with the corresponding first terminal device. of users' actual expectations for dishes.
在一些应用场景中,还可以根据用户使用做菜教程获得的菜品的评分对做菜教程进行更新或者替换。例如,针对同一个菜品,使用做菜教程A的90%的用户均获得了百分制下80分以上的菜品评分,而使用做菜教程B的80%的用户均获得了百分制下30分以下的菜品评分,则做菜教程B可能存在指导缺陷,可以在机器或者人工复检后被更新或者替换。In some application scenarios, the cooking tutorial may also be updated or replaced according to the rating of the dishes obtained by the user using the cooking tutorial. For example, for the same dish, 90% of the users who used cooking tutorial A scored a dish with a score of 80 or more on the 100-point scale, while 80% of users who used cooking tutorial B scored a dish below 30 on the 100-point scale. Score, then Cooking Tutorial B may have guidance defects, which can be updated or replaced after machine or manual re-inspection.
本实施例根据用户完成的菜品的展示信息确定成品的评分,可以帮助用户了解其做菜水平以及进步程度,提升用户的菜谱使用便捷度。In this embodiment, the score of the finished product is determined according to the display information of the dishes completed by the user, which can help the user to understand the cooking level and the progress of the user, and improve the convenience of the user's recipe use.
进一步参考图3,其示出了根据本申请的用于展示互动做菜教程的方法的一个实施例的流程300。该用于展示互动做菜教程的方法应用于第一终端设备,包括以下步骤:With further reference to FIG. 3, a
步骤301,向服务器发送互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程。
在本实施例中,用于生成互动做菜教程的方法的执行主体(例如图1所示的终端设备)可以通过有线或者无线的方式向服务器发送互动做菜教程获取请求,该互动做菜教程获取请求可以是一个菜品名称,例如鱼香肉丝,该做菜教程获取请求也可以是菜品的特点,例如杭州第一名菜。In this embodiment, the execution body of the method for generating an interactive cooking tutorial (for example, the terminal device shown in FIG. 1 ) can send an interactive cooking tutorial acquisition request to the server in a wired or wireless manner, and the interactive cooking tutorial The fetch request can be a dish name, such as Yuxiang Shredded Pork, and the fetch request can also be the characteristics of the dish, such as the No. 1 dish in Hangzhou.
步骤302,接收服务器发送的互动做菜教程,互动做菜教程包括至少两个做菜步骤、至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长以及至少两个做菜步骤中的每个做菜步骤对应的示范视频。Step 302: Receive an interactive cooking tutorial sent by the server. The interactive cooking tutorial includes at least two cooking steps, the timing between any two adjacent cooking steps in the at least two cooking steps, and the at least two cooking steps. Demonstration videos for each cooking step in the steps.
在本实施例中,第一终端设备可以接收服务器基于互动做菜教程获取请求返回的互动做菜教程,该互动做菜教程包括教程中每个做菜步骤对应的示范视频以及任意相邻的两个做菜步骤之间的计时时长。In this embodiment, the first terminal device may receive an interactive cooking tutorial returned by the server based on the interactive cooking tutorial acquisition request, where the interactive cooking tutorial includes a demonstration video corresponding to each cooking step in the tutorial and any adjacent two Timing time between cooking steps.
步骤303,响应于检测到用户对互动做菜教程的触发操作,展示互动做菜教程,其中,当互动做菜教程被触发展示时,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。
在本实施例中,当第一终端设备检测到用户对接收到的互动做菜教程的触发操作时,可以在第一终端设备上展示互动做菜教程,并且除最后一个做菜步骤外,前一个做菜步骤对应的示范视频播放结束后,根据其后的计时时长进行倒计时,并在倒计时结束后开始播放下一个做菜步骤对应的示范视频。其中,用户对互动做菜教程的触发操作可以是用户通过触摸显示屏、终端设备的播放控制键或语音控制系统触发的开始播放互动做菜教程的操作。In this embodiment, when the first terminal device detects the user's triggering operation on the received interactive cooking tutorial, the interactive cooking tutorial can be displayed on the first terminal device, and except for the last cooking step, the previous After the demonstration video corresponding to one cooking step finishes playing, the countdown is performed according to the subsequent timing time, and after the countdown ends, the demonstration video corresponding to the next cooking step starts to be played. The user's triggering operation for the interactive cooking tutorial may be an operation triggered by the user to start playing the interactive cooking tutorial by touching the display screen, the playback control key of the terminal device, or the voice control system.
本实施例通过向服务器发送互动做菜教程获取请求,并接收以及显示服务器基于互动做菜教程获取请求返回的做菜教程,可以帮助用户掌握文字菜谱中各个做菜步骤的步骤细节以及操作时间,提高做菜的成功率。In this embodiment, by sending an interactive cooking tutorial acquisition request to the server, and receiving and displaying the cooking tutorial returned by the server based on the interactive cooking tutorial acquisition request, it can help the user to grasp the step details and operation time of each cooking step in the text recipe. Improve the success rate of cooking.
可选地,响应于用户的触发操作,展示互动做菜教程,包括:响应于用户对互动做菜教程的触发操作,依次展示至少两个做菜步骤中的每个做菜步骤对应的示范视频。Optionally, displaying the interactive cooking tutorial in response to the user's triggering operation includes: in response to the user's triggering operation on the interactive cooking tutorial, sequentially displaying a demonstration video corresponding to each of the at least two cooking steps. .
在本实施例中,当第一终端设备接收到用户的触发操作时,在第一终端设备的显示装置上依照做菜步骤的操作顺序,依次展示每个做菜步骤对应的示范视频。In this embodiment, when the first terminal device receives a trigger operation from the user, the display device of the first terminal device sequentially displays the demonstration video corresponding to each cooking step according to the operation sequence of the cooking steps.
可选地,每个示范视频播放结束后,第一终端设备可以显示根据该示范视频执行相应的做菜步骤后应该得到的半成品的预期效果图。在示范视频播放结束后显示半成品的预期效果图可以使用户将自己做出的半成品与预期半成品进行比较,并了解二者之间的差距,可以使用户了解其在做菜过程中相对薄弱的环节,方便用户针对其薄弱环节进行注意以及练习,帮助用户提升做菜的成功率,并且进一步提升用户使用做菜教程的便捷感。Optionally, after each demonstration video is played, the first terminal device may display an expected rendering of the semi-finished product that should be obtained after performing the corresponding cooking step according to the demonstration video. Displaying the expected renderings of the semi-finished product after the demonstration video is finished can enable users to compare their own semi-finished products with the expected semi-finished products, and understand the gap between the two, so that users can understand their relatively weak links in the cooking process , which is convenient for users to pay attention to and practice their weak links, help users improve the success rate of cooking, and further enhance the convenience of users using cooking tutorials.
可选地,依次展示至少两个做菜步骤中的每个做菜步骤对应的示范视频,包括:对于至少两个做菜步骤中的每个做菜步骤,响应于检测到用户对该做菜步骤对应的示范视频的播放操作,或者,响应于检测到该做菜步骤与前一做菜步骤之间的计时时长倒计时完毕,播放该做菜步骤对应的示范视频。Optionally, show the demonstration video corresponding to each cooking step in the at least two cooking steps in turn, including: for each cooking step in the at least two cooking steps, in response to detecting that the user is responsible for the cooking step. The playback operation of the demonstration video corresponding to the step, or, in response to detecting that the countdown of the time duration between the cooking step and the previous cooking step is completed, the demonstration video corresponding to the cooking step is played.
在本实施例中,当检测到用户触发做菜步骤对应的示范视频的播放操作,播放该做菜步骤对应的示范视频;或者当检测到做菜步骤与前一做菜步骤之间的计时时长倒计时完毕,播放该做菜步骤对应的示范视频。In this embodiment, when it is detected that the user triggers the playback operation of the demonstration video corresponding to the cooking step, the demonstration video corresponding to the cooking step is played; or when the timing between the cooking step and the previous cooking step is detected When the countdown is over, play the demonstration video corresponding to the cooking step.
可选地,依次展示至少两个做菜步骤中的每个做菜步骤对应的示范视频,包括:对于至少两个做菜步骤中的每个做菜步骤,响应于检测到用户对该做菜步骤的完成操作,或者,响应于检测到该做菜步骤对应的示范视频播放完毕,对该做菜步骤与后一做菜步骤之间的计时时长进行倒计时。Optionally, show the demonstration video corresponding to each cooking step in the at least two cooking steps in turn, including: for each cooking step in the at least two cooking steps, in response to detecting that the user is responsible for the cooking step. The completion operation of the step, or, in response to detecting that the demonstration video corresponding to the cooking step is finished playing, count down the time duration between the cooking step and the next cooking step.
在本实施例中,当检测到用户对做菜步骤的完成操作,开始进行倒计时,倒计时的时长为该做菜步骤与后一做菜步骤之间的计时时长。或者,当检测到该做菜步骤对应的示范视频播放完毕,对该做菜步骤与后一做菜步骤之间的计时时长进行倒计时。In this embodiment, when it is detected that the user has completed the cooking step, a countdown is started, and the countdown duration is the timing between the cooking step and the next cooking step. Or, when it is detected that the demonstration video corresponding to the cooking step is finished playing, the time duration between the cooking step and the next cooking step is counted down.
可选地,当第一终端设备接收到用户触发的切换指令,则停止播放当前示范视频,根据切换指令播放相应的示范视频。其中,切换指令可以是播放下一条示范视频、播放上一条示范视频、播放指定的示范视频、暂停播放、结束放映等等。Optionally, when the first terminal device receives the switching instruction triggered by the user, it stops playing the current demonstration video, and plays the corresponding demonstration video according to the switching instruction. The switching instruction may be playing the next demonstration video, playing the previous demonstration video, playing the specified demonstration video, pausing the playing, ending the show, and so on.
可选地,当前示范视频播放结束后,若第一终端设备接收到用户触发的重复播放指令,则重复播放该当前示范视频。Optionally, after the playback of the current demonstration video ends, if the first terminal device receives a repeat playback instruction triggered by the user, the current demonstration video is repeatedly played.
可选地,当第一终端设备接收到用户触发的结束播放指令时,结束播放当前示范视频。Optionally, when the first terminal device receives the end playing instruction triggered by the user, it ends playing the current demonstration video.
可选地,当第一终端设备接收到用户触发的播放跳转指令时,可以在当前示范视频对应的做菜步骤后的计时时长倒计时结束后,播放当前示范视频的下一条示范视频,也可以根据直接跳转指令不等待该倒计时时长,直接播放当前示范视频的下一条示范视频。Optionally, when the first terminal device receives the play jump instruction triggered by the user, it can play the next demonstration video of the current demonstration video after the countdown of the time duration after the cooking step corresponding to the current demonstration video ends, or it can also play the following demonstration video. According to the direct jump instruction, the next demonstration video of the current demonstration video is directly played without waiting for the countdown time.
进一步参考图4,其示出了根据本申请的用于展示互动做菜教程的方法的另一个实施例的流程400。该用于展示互动做菜教程的方法应用于第一终端设备,包括以下步骤:With further reference to FIG. 4, a
步骤401,向服务器发送互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程。
步骤402,接收服务器发送的互动做菜教程,互动做菜教程包括至少两个做菜步骤、至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长以及至少两个做菜步骤中的每个做菜步骤对应的示范视频。Step 402: Receive an interactive cooking tutorial sent by the server. The interactive cooking tutorial includes at least two cooking steps, the timing between any two adjacent cooking steps in the at least two cooking steps, and at least two cooking steps. Demonstration videos for each cooking step in the steps.
步骤403,响应于检测到用户对互动做菜教程的触发操作,展示互动做菜教程,其中,当互动做菜教程被触发展示时,对于至少两个做菜步骤中除最后一个做菜步骤之外的其它做菜步骤,该做菜步骤在执行结束后将根据其后的计时时长进行倒计时。
本实施例的步骤401、步骤402、步骤403分别与前述实施例的步骤301、步骤302、步骤303一致,步骤401、步骤402、步骤403的具体实现方式可以参考前述实施例中对应步骤的描述,此处不再赘述。
步骤404,响应于检测到互动做菜教程执行完毕,显示菜品分享界面。
在本实施例中,如图5所示,当互动做菜教程播放结束后,第一终端设备的显示装置可以显示菜品分享界面。In this embodiment, as shown in FIG. 5 , after the interactive cooking tutorial is played, the display device of the first terminal device may display a dish sharing interface.
步骤405,响应于检测到用户在菜品分享界面上的菜品分享操作,获取用于基于互动做菜教程制作的菜品的展示信息,并向服务器发送菜品评分请求,菜品评分请求包括展示信息。
在本实施例中,当第一终端设备在菜品分享界面检测到用户根据菜品分享界面的指引触发的展示信息获取请求,则开启终端设备的摄像装置,通过摄像装置获取菜品图片或者菜品的视频信息等展示信息。In this embodiment, when the first terminal device detects a display information acquisition request triggered by the user according to the guidance of the dish sharing interface on the dish sharing interface, the camera device of the terminal device is turned on, and the dish picture or the video information of the dish is obtained through the camera device. etc. to display information.
步骤406,接收服务器发送的关于菜品的评分。Step 406: Receive the score about the dish sent by the server.
在本实施例中,第一终端设备可以接收服务器基于菜品的展示信息发送的菜品的评分。In this embodiment, the first terminal device may receive the score of the dish sent by the server based on the display information of the dish.
本实施例通过向服务器发送互动做菜教程获取请求,接收以及显示服务器基于互动做菜教程获取请求返回的互动做菜教程,并根据用户基于互动做菜教程进行操作获得的菜品的展示信息确定评分,可以帮助用户掌握做菜步骤的步骤细节以及操作时间,并且帮助用户了解其做菜水平以及学习进展,提高做菜的成功率以及用户使用做菜教程的便捷度。In this embodiment, by sending an interactive cooking tutorial acquisition request to the server, receiving and displaying the interactive cooking tutorial returned by the server based on the interactive cooking tutorial acquisition request, and determining the score according to the display information of the dishes obtained by the user's operation based on the interactive cooking tutorial , which can help users master the details of the cooking steps and operation time, and help users understand their cooking level and learning progress, improve the success rate of cooking and the convenience of users using cooking tutorials.
可选地,基于展示信息显示关于菜品的评分。Optionally, a rating about the dish is displayed based on the presentation information.
在本实施例中,第一终端设备可以显示基于展示信息确定的菜品的评分。该评分可以帮助用户了解其做菜水平并帮助用户了解学习进展或进步程度。In this embodiment, the first terminal device may display the rating of the dish determined based on the display information. The score can help users understand their cooking level and help users understand learning progress or progress.
在上述图4描述的实施例的一些可选的实现方式中,用于展示互动做菜教程的方法还包括:显示做菜教程的属性信息。In some optional implementations of the embodiment described in FIG. 4, the method for displaying an interactive cooking tutorial further includes: displaying attribute information of the cooking tutorial.
在本实施例中,做菜教程的属性信息可以是该做菜教程的评分、该做菜教程的难度等级、该做菜教程面向的群体、该做菜教程被学习的次数、该做菜教程的在看用户数、学习过该做菜教程的用户对该做菜教程中某个做菜步骤的评论或者改进建议等等。做菜教程的属性信息可以显示在做菜教程播放过程中或者播放结束的各个界面,如成品分享界面(如图5所示)、显示成品评分的界面(如图6所示)、示范视频播放界面(如图7所示)等。显示做菜教程的属性信息可以帮助用户了解当前使用的做菜教程的难度等属性信息,可以帮助用户判断当前使用的做菜教程是否适合自己,进而帮助用户选择适合自己的做菜教程,进一步提高用户做菜的成功率以及用户使用做菜教程便捷度。In this embodiment, the attribute information of the cooking tutorial may be the rating of the cooking tutorial, the difficulty level of the cooking tutorial, the group targeted by the cooking tutorial, the number of times the cooking tutorial has been learned, and the cooking tutorial The number of users who are looking at the cooking tutorial, the comments or improvement suggestions for a cooking step in the cooking tutorial from users who have studied the cooking tutorial, etc. The attribute information of the cooking tutorial can be displayed on various interfaces during or after the cooking tutorial is played, such as the finished product sharing interface (as shown in Figure 5), the interface for displaying the finished product rating (as shown in Figure 6), and demonstration video playback interface (as shown in Figure 7), etc. Displaying the attribute information of the cooking tutorial can help users understand the attribute information such as the difficulty of the currently used cooking tutorial, and can help the user to judge whether the currently used cooking tutorial is suitable for them, and then help the user to choose the cooking tutorial suitable for them, and further improve the The success rate of users in cooking and the convenience of users using cooking tutorials.
在一个具体的应用场景中,用户可以打开终端设备的做菜软件,终端设备显示菜品选择界面(如图8所示),当用户点击菜品选择界面的排骨焖饭或者说出排骨焖饭的这个名称时,终端设备可以显示排骨焖饭菜谱的简介或配料表(如图9所示)。当用户在菜谱的简介或配料表显示界面点击开始互动教程选项时,即触发了终端设备生成做菜教程获取请求,终端设备将该做菜教程获取请求发送至服务器;或者,在终端设备显示菜谱的简介或者配料表之后显示做菜方式选择界面(如图10所示),当用户在做菜方式选择界面点击做菜方式选项时,即触发了终端设备生成做菜教程获取请求,终端设备将该做菜教程获取请求发送至服务器。之后,终端设备接收服务器基于该做菜教程获取请求返回的做菜教程,并依次显示做菜教程中的各条示范视频(如图7所示);在示范视频播放完成后,可以显示依照该示范视频执行对应的做菜步骤获得的预期的半成品的效果图显示界面(如图11所示)。在做菜教程播放结束后,终端设备可以显示根据该做菜教程操作后获得的成品的预期效果图显示界面(如图12所示),并且用户可以在该界面选择是否分享用户获得的成品的成品信息。当用户触发了分享成品的成品信息时,终端设备可以显示成品分享界面(如图5所示)。最后,终端设备可以显示基于用户获得的成品的成品信息确定的评分的评分界面(如图6所示)。In a specific application scenario, the user can open the cooking software of the terminal device, and the terminal device displays the menu selection interface (as shown in Figure 8). When the name is selected, the terminal device can display the introduction or ingredient list of the recipe for the braised pork ribs (as shown in FIG. 9 ). When the user clicks the start interactive tutorial option on the recipe introduction or ingredient list display interface, the terminal device is triggered to generate a cooking tutorial acquisition request, and the terminal device sends the cooking tutorial acquisition request to the server; or, the terminal device displays the recipe After the introduction or ingredient list, the cooking method selection interface is displayed (as shown in Figure 10). When the user clicks the cooking method option on the cooking method selection interface, the terminal device is triggered to generate a cooking tutorial acquisition request, and the terminal device will The cooking tutorial get request is sent to the server. After that, the terminal device receives the cooking tutorial returned by the server's acquisition request based on the cooking tutorial, and sequentially displays each demonstration video in the cooking tutorial (as shown in Figure 7); The demonstration video shows the rendering interface of the expected semi-finished product obtained by executing the corresponding cooking step (as shown in FIG. 11 ). After the cooking tutorial is played, the terminal device can display the expected rendering interface of the finished product obtained after the operation according to the cooking tutorial (as shown in Figure 12), and the user can choose whether to share the finished product obtained by the user on this interface. Finished product information. When the user triggers to share the finished product information of the finished product, the terminal device can display the finished product sharing interface (as shown in FIG. 5 ). Finally, the terminal device may display a scoring interface (as shown in FIG. 6 ) of the scoring determined based on the finished product information of the finished product obtained by the user.
下面参考图13,其示出了适于用来实现本申请实施例的计算机设备(例如图1所示的终端设备101或服务器103)的计算机系统1300的结构示意图。图13示出的网络设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 13 below, it shows a schematic structural diagram of a
如图13所示,计算机系统1300包括中央处理单元(CPU)1301,其可以根据存储在只读存储器(ROM)1302中的程序或者从存储部分1308加载到随机访问存储器(RAM)1303中的程序而执行各种适当的动作和处理。在RAM 1303中,还存储有系统1300操作所需的各种程序和数据。CPU 1301、ROM 1302以及RAM 1303通过总线1304彼此相连。输入/输出(I/O)接口1305也连接至总线1304。As shown in FIG. 13, a
以下部件连接至I/O接口1305:包括键盘、鼠标等的输入部分1306;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1307;包括硬盘等的存储部分1308;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1309。通信部分1309经由诸如因特网的网络执行通信处理。驱动器1310也根据需要连接至I/O接口1305。可拆卸介质1311,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1310上,以便于从其上读出的计算机程序根据需要被安装入存储部分1308。The following components are connected to the I/O interface 1305: an
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分1309从网络上被下载和安装,和/或从可拆卸介质1311被安装。在该计算机程序被中央处理单元(CPU)1301执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读介质或者是上述两者的任意组合。计算机可读介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向目标的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括接收单元、获取单元和处理单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,接收单元还可以被描述为“接收服务器发送的互动做菜教程的单元”。又例如,还可以描述为:一种处理器包括接收单元和获取及显示单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,接收单元还可以被描述为“接收终端设备发送的做菜教程创建请求的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit can also be provided in the processor, for example, it can be described as: a processor includes a receiving unit, an acquiring unit and a processing unit. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances. For example, the receiving unit may also be described as "a unit for receiving an interactive cooking tutorial sent by the server". For another example, it can also be described as: a processor includes a receiving unit and an acquiring and displaying unit. Wherein, the names of these units do not constitute a limitation of the unit itself in some cases, for example, the receiving unit may also be described as "a unit that receives a request for creating a cooking tutorial sent by a terminal device".
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的服务器或者终端设备中所包含的;也可以是单独存在,而未装配入该服务器或者终端设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被服务器执行时,使得该服务器:接收互动做菜教程创建请求,互动做菜教程创建请求包括文字菜谱;对文字菜谱进行分析,确定至少两个做菜步骤,以及至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长;为至少两个做菜步骤中的每个做菜步骤匹配对应的示范视频;基于至少两个步骤中任意相邻两个做菜步骤之间的计时时长以及每个做菜步骤对应的示范视频,生成互动做菜教程。或者当上述一个或者多个程序被终端设备执行时,使得该终端设备:向服务器发送互动做菜教程获取请求,互动做菜教程获取请求用于请求互动做菜教程;接收服务器发送的互动做菜教程,互动做菜教程包括至少两个做菜步骤、至少两个做菜步骤中任意相邻两个做菜步骤之间的计时时长以及至少两个做菜步骤中的每个做菜步骤对应的示范视频;响应于检测到用户对互动做菜教程的触发操作,展示互动做菜教程。As another aspect, the present application also provides a computer-readable medium, and the computer-readable medium may be included in the server or terminal device described in the foregoing embodiments; it may also exist independently without being assembled into the computer-readable medium. server or terminal device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the server, the server: receives an interactive cooking tutorial creation request, and the interactive cooking tutorial creation request includes a text recipe; Perform analysis to determine at least two cooking steps and the timing between any two adjacent cooking steps in the at least two cooking steps; match the corresponding cooking step for each cooking step in the at least two cooking steps. Demonstration video; based on the timing between any two adjacent cooking steps in at least two steps and the demonstration video corresponding to each cooking step, generate an interactive cooking tutorial. Or when one or more of the above programs are executed by the terminal device, the terminal device: sends an interactive cooking tutorial acquisition request to the server, and the interactive cooking tutorial acquisition request is used to request the interactive cooking tutorial; receives the interactive cooking tutorial sent by the server. Tutorial, the interactive cooking tutorial includes at least two cooking steps, the timing between any two adjacent cooking steps in the at least two cooking steps, and the corresponding time period for each cooking step in the at least two cooking steps. Demonstration video; show the interactive cooking tutorial in response to detecting the user's triggering operation on the interactive cooking tutorial.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010723251.8ACN111861405B (en) | 2020-07-24 | 2020-07-24 | Method and device for generating interactive cooking tutorials |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010723251.8ACN111861405B (en) | 2020-07-24 | 2020-07-24 | Method and device for generating interactive cooking tutorials |
| Publication Number | Publication Date |
|---|---|
| CN111861405Atrue CN111861405A (en) | 2020-10-30 |
| CN111861405B CN111861405B (en) | 2025-03-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010723251.8AActiveCN111861405B (en) | 2020-07-24 | 2020-07-24 | Method and device for generating interactive cooking tutorials |
| Country | Link |
|---|---|
| CN (1) | CN111861405B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113488140A (en)* | 2021-06-24 | 2021-10-08 | 深圳市晨北科技有限公司 | Electronic menu processing method and terminal, electronic equipment and storage medium |
| CN113784171A (en)* | 2021-01-18 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Video data processing method, device, computer system and readable storage medium |
| CN117319745A (en)* | 2023-09-28 | 2023-12-29 | 火星人厨具股份有限公司 | Interaction method, device, equipment and storage medium based on menu |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005341182A (en)* | 2004-05-26 | 2005-12-08 | Matsushita Electric Works Ltd | Cooking recipe editing and presentating system |
| KR20120029027A (en)* | 2010-09-15 | 2012-03-26 | 이준범 | Service method and apparatus for providing diet menu |
| CN103454929A (en)* | 2012-05-30 | 2013-12-18 | 丁瑞彭 | Menu including intelligent information, intelligent cooking aid application and cooking equipment |
| CN104166930A (en)* | 2014-08-06 | 2014-11-26 | 筷子兄弟科技有限公司 | Intelligent cooking scoring system and method |
| CN104780388A (en)* | 2015-03-31 | 2015-07-15 | 北京奇艺世纪科技有限公司 | Video data partitioning method and device |
| JP2016103042A (en)* | 2013-06-12 | 2016-06-02 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America | Cooking skill evaluation method, cooking skill evaluation system, and control program for controlling cooking skill evaluation system |
| CN106444538A (en)* | 2016-11-22 | 2017-02-22 | 广东亚润文化传播有限公司 | Intelligent kitchen system and working method thereof |
| CN107577722A (en)* | 2017-08-18 | 2018-01-12 | 北京金山安全软件有限公司 | Menu display method and device, electronic equipment and storage medium |
| US20180286277A1 (en)* | 2017-03-28 | 2018-10-04 | Insy Shah | System and methodology for regulating instructional multimedia applications |
| CN109344696A (en)* | 2018-08-14 | 2019-02-15 | 上海常仁信息科技有限公司 | A kind of points-scoring system and method based on vegetable identification |
| CN109584990A (en)* | 2018-11-21 | 2019-04-05 | 邓建洪 | A kind of healthy diet system |
| CN109918522A (en)* | 2019-01-25 | 2019-06-21 | 广州富港万嘉智能科技有限公司 | A kind of vegetable cooking learning method and device based on cooking platform |
| CN110348760A (en)* | 2019-07-18 | 2019-10-18 | 秒针信息技术有限公司 | Catering manufacture evaluation method and device |
| CN111104194A (en)* | 2019-11-29 | 2020-05-05 | 珠海优特智厨科技有限公司 | Menu file display method and device, storage medium and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005341182A (en)* | 2004-05-26 | 2005-12-08 | Matsushita Electric Works Ltd | Cooking recipe editing and presentating system |
| KR20120029027A (en)* | 2010-09-15 | 2012-03-26 | 이준범 | Service method and apparatus for providing diet menu |
| CN103454929A (en)* | 2012-05-30 | 2013-12-18 | 丁瑞彭 | Menu including intelligent information, intelligent cooking aid application and cooking equipment |
| JP2016103042A (en)* | 2013-06-12 | 2016-06-02 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America | Cooking skill evaluation method, cooking skill evaluation system, and control program for controlling cooking skill evaluation system |
| CN104166930A (en)* | 2014-08-06 | 2014-11-26 | 筷子兄弟科技有限公司 | Intelligent cooking scoring system and method |
| CN104780388A (en)* | 2015-03-31 | 2015-07-15 | 北京奇艺世纪科技有限公司 | Video data partitioning method and device |
| CN106444538A (en)* | 2016-11-22 | 2017-02-22 | 广东亚润文化传播有限公司 | Intelligent kitchen system and working method thereof |
| US20180286277A1 (en)* | 2017-03-28 | 2018-10-04 | Insy Shah | System and methodology for regulating instructional multimedia applications |
| CN107577722A (en)* | 2017-08-18 | 2018-01-12 | 北京金山安全软件有限公司 | Menu display method and device, electronic equipment and storage medium |
| CN109344696A (en)* | 2018-08-14 | 2019-02-15 | 上海常仁信息科技有限公司 | A kind of points-scoring system and method based on vegetable identification |
| CN109584990A (en)* | 2018-11-21 | 2019-04-05 | 邓建洪 | A kind of healthy diet system |
| CN109918522A (en)* | 2019-01-25 | 2019-06-21 | 广州富港万嘉智能科技有限公司 | A kind of vegetable cooking learning method and device based on cooking platform |
| CN110348760A (en)* | 2019-07-18 | 2019-10-18 | 秒针信息技术有限公司 | Catering manufacture evaluation method and device |
| CN111104194A (en)* | 2019-11-29 | 2020-05-05 | 珠海优特智厨科技有限公司 | Menu file display method and device, storage medium and electronic device |
| Title |
|---|
| 《生活妙招3000例》编委会: "生活妙招3000例", 31 January 2010, 湖南科学技术出版社, pages: 250* |
| 仇杏梅;: "烹饪专业教学说课探讨", 中等职业教育, no. 02, 20 January 2011 (2011-01-20), pages 13 - 14* |
| 李振华;楼向雄;: "基于内隐记忆的菜谱类APP交互设计", 包装工程, no. 02, 20 January 2018 (2018-01-20), pages 149 - 152* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113784171A (en)* | 2021-01-18 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Video data processing method, device, computer system and readable storage medium |
| CN113784171B (en)* | 2021-01-18 | 2024-05-17 | 北京沃东天骏信息技术有限公司 | Video data processing method, device, computer system and readable storage medium |
| CN113488140A (en)* | 2021-06-24 | 2021-10-08 | 深圳市晨北科技有限公司 | Electronic menu processing method and terminal, electronic equipment and storage medium |
| CN117319745A (en)* | 2023-09-28 | 2023-12-29 | 火星人厨具股份有限公司 | Interaction method, device, equipment and storage medium based on menu |
| CN117319745B (en)* | 2023-09-28 | 2024-05-24 | 火星人厨具股份有限公司 | Menu generation method, device, equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN111861405B (en) | 2025-03-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108022586B (en) | Method and apparatus for controlling pages | |
| US8909653B1 (en) | Apparatus, systems and methods for interactive dissemination of knowledge | |
| US10313403B2 (en) | Systems and methods for virtual interaction | |
| CN116501960B (en) | Content retrieval method, device, equipment and medium | |
| US10552885B2 (en) | Systems and methods for acquiring structured inputs in customer interactions | |
| WO2018149115A1 (en) | Method and apparatus for providing search results | |
| US20140067367A1 (en) | Method and system for reading fluency training | |
| CN114254158A (en) | Video generation method and device, neural network training method and device | |
| US20200409998A1 (en) | Method and device for outputting information | |
| US10129573B1 (en) | Identifying relevance of a video | |
| CN111861405A (en) | Method and apparatus for generating interactive cooking tutorials | |
| KR102786461B1 (en) | Video timed anchors | |
| US11777787B2 (en) | Video-based maintenance method, maintenance terminal, server, system and storage medium | |
| US20240292052A1 (en) | Page display method and apparatus, electronic device and storage medium | |
| WO2020042376A1 (en) | Method and apparatus for outputting information | |
| CN115905490B (en) | Man-machine interaction dialogue method, device and equipment | |
| WO2020052061A1 (en) | Method and device for processing information | |
| CN114449327B (en) | Video clip sharing method and device, electronic equipment and readable storage medium | |
| CN117707370A (en) | Page interaction method, device, equipment and storage medium | |
| CN115167733A (en) | Method and device for displaying live broadcast resources, electronic equipment and storage medium | |
| KR102640679B1 (en) | Consulting information processing method and device | |
| CN106886594A (en) | For the method and apparatus of exhibition information | |
| CN112541493A (en) | Topic explaining method and device and electronic equipment | |
| CN114461749A (en) | Data processing method, device, electronic device and medium for dialogue content | |
| CN113127683A (en) | Content recommendation method and device, electronic equipment and medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information | Country or region after:China Address after:201306 N2025 room 24, 2 New Town Road, mud town, Pudong New Area, Shanghai Applicant after:Shanghai Lianshang Network Technology Group Co.,Ltd. Address before:201306 N2025 room 24, 2 New Town Road, mud town, Pudong New Area, Shanghai Applicant before:SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd. Country or region before:China | |
| GR01 | Patent grant | ||
| GR01 | Patent grant |