CN114092179A - Food object search method, publishing method, device, equipment and medium - Google Patents

Food object search method, publishing method, device, equipment and medium Download PDF

Info

Publication number
CN114092179A
CN114092179A CN202111300003.3A CN202111300003A CN114092179A CN 114092179 A CN114092179 A CN 114092179A CN 202111300003 A CN202111300003 A CN 202111300003A CN 114092179 A CN114092179 A CN 114092179A
Authority
CN
China
Prior art keywords
food
feature
taste
smell
search
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
CN202111300003.3A
Other languages
Chinese (zh)
Inventor
王沛焮
王彦平
闫旭
李冬坡
董贺超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202111300003.3A priority Critical patent/CN114092179A/en
Publication of CN114092179A publication Critical patent/CN114092179A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a food object searching method, a food object publishing device, food object searching equipment and a food object publishing medium, and belongs to the technical field of internet. The method comprises the following steps: acquiring a first currently input food characteristic, and sending a food search request to a server, wherein the food search request carries the first food characteristic; the food object sent by the server is received, the food object is a food object corresponding to the second food characteristic matched with the first food characteristic, the smell and the taste which are difficult to accurately describe by characters are represented by the food characteristics, the expression mode of the food is expanded, the smell and the taste of the food can be accurately expressed by the food characteristics, and the accuracy of food searching is improved under the condition that the accuracy of describing the smell and the taste of the food is improved.

Description

食品对象搜索方法、发布方法、装置、设备及介质Food object search method, publishing method, device, equipment and medium

技术领域technical field

本申请涉及互联网技术领域,特别涉及一种食品对象搜索方法、发布方法、装置、设备及介质。The present application relates to the field of Internet technologies, and in particular, to a food object search method, publishing method, apparatus, device and medium.

背景技术Background technique

近年来,随着移动网络和智能终端的快速发展,在外卖、生鲜配送等多种领域中,食品搜索的功能得到了广泛的应用。通常在搜索食品时,只能由用户输入食品名称,从而基于该食品名称搜索与之对应的食品。但是,如果用户输入的食品名称不准确,就会导致搜索到的食品不准确。因此这种搜索方式的准确性较差。In recent years, with the rapid development of mobile networks and smart terminals, the function of food search has been widely used in various fields such as takeaway and fresh food distribution. Usually, when searching for food, only the name of the food can be input by the user, so as to search for the corresponding food based on the name of the food. However, if the user enters an inaccurate food name, it will result in an inaccurate search. Therefore, the accuracy of this search method is poor.

发明内容SUMMARY OF THE INVENTION

本申请实例提供了一种食品对象搜索方法、发布方法、装置、设备及介质,通过食品特征来表示无法用文字描述的食品的气味和滋味,不仅扩展了食品的表达方式,而且在提高了描述食品的气味和滋味的情况下,提高了搜索食品的准确性。所述技术方案如下:The examples of the present application provide a method for searching food objects, a method for publishing, a device, a device and a medium, which can represent the smell and taste of food that cannot be described in words through food features, which not only expands the expression of food, but also improves the description of food. Improves the accuracy of searching for food without the smell and taste of food. The technical solution is as follows:

一方面,提供了一种食品对象搜索方法,所述方法包括:In one aspect, a method for searching for a food object is provided, the method comprising:

获取当前输入的第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;Obtain the first food feature of the current input, the first food feature includes at least one of a first smell feature or a first taste feature, the first smell feature includes a food feature on at least one smell dimension, the first smell feature a taste feature includes food features in at least one taste dimension;

向服务器发送食品搜索请求,所述食品搜索请求携带所述第一食品特征;sending a food search request to the server, the food search request carrying the first food feature;

接收所述服务器发送的食品对象,所述食品对象为与所述第一食品特征匹配的第二食品特征对应的食品对象。A food object sent by the server is received, where the food object is a food object corresponding to a second food feature matching the first food feature.

在一些实施例中,所述获取当前输入的第一食品特征,包括:In some embodiments, the obtaining the first food feature of the current input includes:

显示搜索界面,所述搜索界面包括每个食品维度上的多种食品特征;Displaying a search interface, the search interface includes multiple food features on each food dimension;

将所述搜索界面中被选中的食品特征进行组合,得到所述第一食品特征。Combining the selected food features in the search interface to obtain the first food feature.

在一些实施例中,所述第一食品特征包括所述第一气味特征,所述获取当前输入的第一食品特征,包括:In some embodiments, the first food feature includes the first smell feature, and the obtaining the currently input first food feature includes:

通过气味传感器对待搜索食品进行检测,得到所述第一气味特征。The food to be searched is detected by an odor sensor to obtain the first odor feature.

在一些实施例中,所述第一食品特征包括所述第一滋味特征,所述获取当前输入的第一食品特征,包括:In some embodiments, the first food feature includes the first taste feature, and the obtaining the currently input first food feature includes:

通过滋味传感器对待搜索食品进行检测,得到所述第一滋味特征。The food to be searched is detected by the taste sensor to obtain the first taste feature.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

显示所述食品对象;displaying the food object;

响应于对所述食品对象的选取操作,将所述食品对象添加至目标列表中;或者,adding the food object to a target list in response to a selection operation on the food object; or,

响应于对所述食品对象的确认操作,生成食品配送订单,所述食品配送订单包含所述食品对象,所述食品配送订单用于指示配送所述食品对象指代的食品。In response to the confirmation operation on the food object, a food delivery order is generated, the food delivery order including the food object, the food delivery order indicating delivery of the food item to which the food object refers.

一方面,提供了一种食品对象搜索方法,所述方法包括:In one aspect, a method for searching for a food object is provided, the method comprising:

接收终端发送的食品搜索请求,所述食品搜索请求携带第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;Receive a food search request sent by the terminal, the food search request carries a first food feature, the first food feature includes at least one of a first smell feature or a first taste feature, and the first smell feature includes at least one food features in the smell dimension, the first taste features include food features in at least one taste dimension;

响应于所述食品搜索请求,从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征;in response to the food search request, searching the food characteristic database for a second food characteristic that matches the first food characteristic;

向所述终端发送所述第二食品特征对应的食品对象。Send the food object corresponding to the second food feature to the terminal.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

接收第二终端发送的食品发布请求,所述食品发布请求携带所述食品对象和所述食品对象对应的第二食品特征;receiving a food release request sent by a second terminal, where the food release request carries the food object and the second food feature corresponding to the food object;

将所述食品对象和所述食品对象对应的第二食品特征存储于所述食品特征数据库中。The food object and the second food feature corresponding to the food object are stored in the food feature database.

在一些实施例中,所述食品搜索请求包括所述第一气味特征,所述第一气味特征由第一终端通过气味传感器对待搜索食品进行检测得到;所述响应于所述食品搜索请求,从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征,包括:In some embodiments, the food search request includes the first odor feature, and the first odor feature is obtained by detecting the food to be searched by the first terminal through an odor sensor; the response to the food search request, from In the food feature database, search for a second food feature matching the first food feature, including:

响应于所述食品搜索请求,基于特征转换模型,对所述第一气味特征进行转换,得到第三气味特征,所述第一气味特征属于第一格式,所述第三气味特征属于第二格式;In response to the food search request, based on the feature conversion model, the first odor feature is converted to obtain a third odor feature, the first odor feature belongs to the first format, and the third odor feature belongs to the second format ;

从所述食品特征数据库中,搜索与所述第三气味特征匹配的所述第二气味特征。From the database of food characteristics, a search is made for the second odor characteristic that matches the third odor characteristic.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

获取样本食品的第一样本气味特征和第二样本气味特征,所述第一样本气味特征属于所述第一格式,所述第二样本气味特征属于所述第二格式;acquiring a first sample odor feature and a second sample odor feature of the sample food, the first sample odor feature belongs to the first format, and the second sample odor feature belongs to the second format;

基于所述第一样本气味特征和第二样本气味特征,对所述特征转换模型进行训练,得到训练后的特征转换模型。Based on the first sample odor feature and the second sample odor feature, the feature conversion model is trained to obtain a trained feature conversion model.

在一些实施例中,所述食品搜索请求包括所述第一滋味特征,所述第一滋味特征由第一终端通过滋味传感器对待搜索食品进行检测得到;所述响应于所述食品搜索请求,从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征,包括:In some embodiments, the food search request includes the first taste feature, and the first taste feature is obtained by detecting the food to be searched by the first terminal through a taste sensor; the response to the food search request, from In the food feature database, search for a second food feature matching the first food feature, including:

响应于所述食品搜索请求,基于特征转换模型,对所述第一滋味特征进行转换,得到第四格式的第三滋味特征,所述第一滋味特征属于第三格式,所述第三滋味特征属于第四格式;In response to the food search request, based on the feature conversion model, the first flavor feature is converted to obtain a third flavor feature in a fourth format, the first flavor feature belongs to a third format, and the third flavor feature belongs to the fourth format;

从所述食品特征数据库中,搜索与所述第三滋味特征匹配的所述第二滋味特征。From the food feature database, search for the second flavor feature that matches the third flavor feature.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

获取样本食品的第一样本滋味特征和第二样本滋味特征,所述第一样本滋味特征的格式属于第三格式,所述第二样本滋味特征属于所述第四格式;Obtaining the first sample taste feature and the second sample taste feature of the sample food, the format of the first sample taste feature belongs to the third format, and the second sample taste feature belongs to the fourth format;

基于所述第一样本滋味特征和第二样本滋味特征,对所述特征转换模型进行训练,得到训练后的特征转换模型。Based on the taste feature of the first sample and the taste feature of the second sample, the feature conversion model is trained to obtain a trained feature conversion model.

在一些实施例中,所述从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征,包括:In some embodiments, the searching for a second food feature matching the first food feature from the food feature database includes:

获取所述第一食品特征与所述第二食品特征之间的匹配度;obtaining the matching degree between the first food feature and the second food feature;

从所述食品特征数据库中,选取所述匹配度最大的至少一个所述第二食品特征。From the food feature database, at least one of the second food features with the highest matching degree is selected.

在一些实施例中,所述第一食品特征包括所述第一气味特征,所述第二食品特征包括第二气味特征;所述获取所述第一食品特征与所述第二食品特征之间的匹配度,包括:In some embodiments, the first food characteristic includes the first smell characteristic, the second food characteristic includes a second smell characteristic; the obtaining between the first food characteristic and the second food characteristic match, including:

获取所述第一气味特征与所述第二气味特征之间的距离;obtaining the distance between the first odor feature and the second odor feature;

将所述距离与参考距离之间的比例,确定为所述第一气味特征与所述第二气味特征之间的匹配度。The ratio between the distance and the reference distance is determined as the matching degree between the first smell feature and the second smell feature.

在一些实施例中,所述第一食品特征包括所述第一滋味特征,所述第二食品特征包括第二滋味特征;所述获取所述第一食品特征与所述第二食品特征之间的匹配度,包括:In some embodiments, the first food characteristic includes the first taste characteristic, and the second food characteristic includes a second taste characteristic; and the obtaining between the first food characteristic and the second food characteristic match, including:

确定所述第一滋味特征在味觉雷达图中所占的第一区域;determining the first area occupied by the first taste feature in the taste radar map;

确定所述第二滋味特征在所述味觉雷达图中所占的第二区域;determining a second area occupied by the second taste feature in the taste radar map;

获取所述第一区域与所述第二区域的重合区域的面积;obtaining the area of the overlapping area of the first area and the second area;

将所述面积与所述第二区域的面积之间的比例确定为所述第一滋味特征与所述第二滋味特征之间的匹配度。The ratio between the area and the area of the second region is determined as the matching degree between the first taste feature and the second taste feature.

在一些实施例中,所述第一食品特征包括所述第一气味特征和所述第一滋味特征,所述第二食品特征包括第二气味特征和第二滋味特征;所述获取所述第一食品特征与所述第二食品特征之间的匹配度,包括:In some embodiments, the first food characteristic includes the first smell characteristic and the first taste characteristic, the second food characteristic includes a second smell characteristic and a second taste characteristic; the obtaining the first taste characteristic The matching degree between a food feature and the second food feature, including:

确定所述第一气味特征与所述第二气味特征之间的第一匹配度;determining a first degree of match between the first odor feature and the second odor feature;

确定所述第一滋味特征与所述第二滋味特征之间的第二匹配度;determining a second degree of matching between the first taste feature and the second taste feature;

对所述第一匹配度和所述第二匹配度进行加权处理,得到所述第一食品特征与所述第二食品特征之间的匹配度。The first matching degree and the second matching degree are weighted to obtain the matching degree between the first food feature and the second food feature.

一方面,提供了一种食品对象发布方法,所述方法包括:In one aspect, a method for releasing a food object is provided, the method comprising:

获取当前输入的食品特征,所述食品特征包括当前食品的气味特征或滋味特征中的至少一种,所述气味特征包括至少一个气味维度上的食品特征,所述滋味特征包括至少一个滋味维度上的食品特征;Obtain the food feature of the current input, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes at least one taste dimension. food characteristics;

向服务器发送食品发布请求,所述食品发布请求携带所述食品对应的食品对象和所述食品对象对应的食品特征。A food release request is sent to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object.

在一些实施例中,所述获取当前输入的第二食品特征,包括:In some embodiments, the obtaining the second food characteristic of the current input includes:

显示发布界面,所述发布界面包括每个食品维度上的多种食品特征;displaying a publishing interface, the publishing interface includes multiple food features on each food dimension;

将所述发布界面中被选中的食品特征进行组合,得到所述食品特征。The selected food features in the publishing interface are combined to obtain the food features.

在一些实施例中,所述食品特征包括所述气味特征,所述获取当前输入的食品特征,包括:In some embodiments, the food feature includes the smell feature, and the obtaining the current input food feature includes:

通过气味传感器对待发布食品进行检测,得到所述气味特征。The food to be released is detected by an odor sensor to obtain the odor characteristics.

在一些实施例中,所述食品特征包括所述滋味特征,所述获取当前输入的食品特征,包括:In some embodiments, the food feature includes the taste feature, and the obtaining the current input food feature includes:

通过滋味传感器对待发布食品进行检测,得到所述滋味特征。The taste feature is obtained by detecting the food to be released by the taste sensor.

另一方面,提供了一种食品对象搜索装置,所述装置包括:In another aspect, a food object search device is provided, the device comprising:

获取模块,用于获取当前输入的第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;The acquisition module is used to acquire the first food feature of the current input, the first food feature includes at least one of the first smell feature or the first taste feature, and the first smell feature includes the food on at least one smell dimension features, the first taste features include food features on at least one taste dimension;

发送模块,用于向服务器发送食品搜索请求,所述食品搜索请求携带所述第一食品特征;a sending module, configured to send a food search request to a server, where the food search request carries the first food feature;

接收模块,用于接收所述服务器发送的食品对象,所述食品对象为与所述第一食品特征匹配的第二食品特征对应的食品对象。A receiving module, configured to receive a food object sent by the server, where the food object is a food object corresponding to a second food feature matching the first food feature.

在一些实施例中,所述获取模块,包括:In some embodiments, the obtaining module includes:

显示单元,用于显示搜索界面,所述搜索界面包括每个食品维度上的多种食品特征;a display unit for displaying a search interface, the search interface includes a variety of food features on each food dimension;

组合单元,用于将所述搜索界面中被选中的食品特征进行组合,得到所述第一食品特征。The combining unit is configured to combine the selected food features in the search interface to obtain the first food feature.

在一些实施例中,所述第一食品特征包括所述第一气味特征,所述获取模块,用于通过气味传感器对待搜索食品进行检测,得到所述第一气味特征。In some embodiments, the first food feature includes the first odor feature, and the acquisition module is configured to detect the food to be searched through an odor sensor to obtain the first odor feature.

在一些实施例中,所述第一食品特征包括所述第一滋味特征,所述获取模块,用于通过滋味传感器对待搜索食品进行检测,得到所述第一滋味特征。In some embodiments, the first food feature includes the first taste feature, and the acquisition module is configured to detect the food to be searched through a taste sensor to obtain the first taste feature.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

显示模块,用于显示所述食品对象;a display module for displaying the food object;

添加模块,用于响应于对所述食品对象的选取操作,将所述食品对象添加至目标列表中;或者,The adding module is configured to add the food object to the target list in response to the selection operation on the food object; or,

生成模块,用于响应于对所述食品对象的确认操作,生成食品配送订单,所述食品配送订单包含所述食品对象,所述食品配送订单用于指示配送所述食品对象指代的食品。The generating module is configured to generate a food delivery order in response to the confirmation operation on the food object, the food delivery order includes the food object, and the food delivery order is used for instructing delivery of the food indicated by the food object.

另一方面,提供了一种食品对象搜索装置,所述装置包括:In another aspect, a food object search device is provided, the device comprising:

接收模块,用于接收终端发送的食品搜索请求,所述食品搜索请求携带第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;The receiving module is configured to receive a food search request sent by the terminal, where the food search request carries a first food feature, and the first food feature includes at least one of a first smell feature or a first taste feature, and the first food feature includes at least one of a first smell feature or a first taste feature. The smell characteristics include food characteristics in at least one smell dimension, and the first taste characteristics include food characteristics in at least one taste dimension;

搜索模块,用于响应于所述食品搜索请求,从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征;a search module, used to search for a second food feature matching the first food feature from the food feature database in response to the food search request;

发送模块,用于向所述终端发送所述第二食品特征对应的食品对象。A sending module, configured to send the food object corresponding to the second food feature to the terminal.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

所述接收模块,还用于接收第二终端发送的食品发布请求,所述食品发布请求携带所述食品对象和所述食品对象对应的第二食品特征;The receiving module is further configured to receive a food release request sent by a second terminal, where the food release request carries the food object and the second food feature corresponding to the food object;

存储模块,用于将所述食品对象和所述食品对象对应的第二食品特征存储于所述食品特征数据库中。The storage module is configured to store the food object and the second food feature corresponding to the food object in the food feature database.

在一些实施例中,所述食品搜索请求包括所述第一气味特征,所述第一气味特征由第一终端通过气味传感器对待搜索食品进行检测得到;所述搜索模块,包括:In some embodiments, the food search request includes the first smell feature, and the first smell feature is detected by the first terminal through the smell sensor of the food to be searched; the search module includes:

转换单元,用于响应于所述食品搜索请求,基于特征转换模型,对所述第一气味特征进行转换,得到第二格式的第三气味特征,所述第一气味特征属于第一格式,所述第三气味特征属于第二格式;The conversion unit is configured to, in response to the food search request, convert the first odor feature based on a feature conversion model to obtain a third odor feature in a second format, where the first odor feature belongs to the first format, so said third odor characteristic belongs to the second format;

搜索单元,用于从所述食品特征数据库中,搜索与所述第三气味特征匹配的所述第二气味特征。A search unit, configured to search for the second smell feature matching the third smell feature from the food feature database.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

获取模块,用于获取样本食品的第一样本气味特征和第二样本气味特征,所述第一样本气味特征属于所述第一格式,所述第二样本气味特征属于所述第二格式;an acquisition module for acquiring a first sample odor feature and a second sample odor feature of the sample food, the first sample odor feature belonging to the first format, and the second sample odor feature belonging to the second format ;

训练模块,用于基于所述第一样本气味特征和第二样本气味特征,对所述特征转换模型进行训练,得到训练后的特征转换模型。A training module, configured to train the feature conversion model based on the first sample odor feature and the second sample odor feature to obtain a trained feature conversion model.

在一些实施例中,所述食品搜索请求包括所述第一滋味特征,所述第一滋味特征由第一终端通过滋味传感器对待搜索食品进行检测得到;所述搜索模块,包括:In some embodiments, the food search request includes the first taste feature, and the first taste feature is obtained by detecting the food to be searched by the first terminal through a taste sensor; the search module includes:

转换单元,用于响应于所述食品搜索请求,基于特征转换模型,对所述第一滋味特征进行转换,得到第三滋味特征,所述第一滋味特征属于第三格式,所述第三滋味特征属于第四格式;A conversion unit, configured to convert the first taste feature based on a feature conversion model in response to the food search request to obtain a third taste feature, the first taste feature belongs to a third format, and the third taste feature Features belong to the fourth format;

搜索单元,用于从所述食品特征数据库中,搜索与所述第三滋味特征匹配的所述第二滋味特征。A search unit, configured to search for the second flavor feature matching the third flavor feature from the food feature database.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

获取模块,用于获取样本食品的第一样本滋味特征和第二样本滋味特征,所述第一样本滋味特征属于所述第三格式,所述第二样本滋味特征属于所述第四格式;an acquisition module for acquiring a first sample flavor feature and a second sample flavor feature of the sample food, the first sample flavor feature belongs to the third format, and the second sample flavor feature belongs to the fourth format ;

训练模块,用于基于所述第一样本滋味特征和第二样本滋味特征,对所述特征转换模型进行训练,得到训练后的特征转换模型。A training module, configured to train the feature conversion model based on the taste feature of the first sample and the taste feature of the second sample to obtain a trained feature conversion model.

在一些实施例中,所述搜索模块,包括:In some embodiments, the search module includes:

获取单元,用于获取所述第一食品特征与所述第二食品特征之间的匹配度;an obtaining unit for obtaining the matching degree between the first food feature and the second food feature;

选取单元,用于从所述食品特征数据库中,选取所述匹配度最大的至少一个所述第二食品特征。The selecting unit is configured to select at least one of the second food features with the highest matching degree from the food feature database.

在一些实施例中,所述第一食品特征包括所述第一气味特征,所述第二食品特征包括第二气味特征;所述获取单元,用于:In some embodiments, the first food feature includes the first smell feature, and the second food feature includes a second smell feature; the acquiring unit is configured to:

获取所述第一气味特征与所述第二气味特征之间的距离;obtaining the distance between the first odor feature and the second odor feature;

将所述距离与参考距离之间的比例,确定为所述第一气味特征与所述第二气味特征之间的匹配度。The ratio between the distance and the reference distance is determined as the matching degree between the first smell feature and the second smell feature.

在一些实施例中,所述第一食品特征包括所述第一滋味特征,所述第二食品特征包括第二滋味特征;所述获取单元,用于:In some embodiments, the first food feature includes the first taste feature, and the second food feature includes a second taste feature; the acquiring unit is configured to:

确定所述第一滋味特征在味觉雷达图中所占的第一区域;determining the first area occupied by the first taste feature in the taste radar map;

确定所述第二滋味特征在所述味觉雷达图中所占的第二区域;determining a second area occupied by the second taste feature in the taste radar map;

获取所述第一区域与所述第二区域的重合区域的面积;obtaining the area of the overlapping area of the first area and the second area;

将所述面积与所述第二区域的面积之间的比例确定为所述第一滋味特征与所述第二滋味特征之间的匹配度。The ratio between the area and the area of the second region is determined as the matching degree between the first taste feature and the second taste feature.

在一些实施例中,所述第一食品特征包括所述第一气味特征和所述第一滋味特征,所述第二食品特征包括第二气味特征和第二滋味特征;所述获取单元,用于:In some embodiments, the first food feature includes the first smell feature and the first taste feature, and the second food feature includes a second smell feature and a second taste feature; the acquiring unit, using At:

确定所述第一气味特征与所述第二气味特征之间的第一匹配度;determining a first degree of match between the first odor feature and the second odor feature;

确定所述第一滋味特征与所述第二滋味特征之间的第二匹配度;determining a second degree of matching between the first taste feature and the second taste feature;

对所述第一匹配度和所述第二匹配度进行加权处理,得到所述第一食品特征与所述第二食品特征之间的匹配度。The first matching degree and the second matching degree are weighted to obtain the matching degree between the first food feature and the second food feature.

另一方面,提供了一种食品对象发布装置,所述装置包括:In another aspect, a food object release device is provided, the device comprising:

获取模块,用于获取当前输入的食品特征,所述食品特征包括当前食品的气味特征或滋味特征中的至少一种,所述气味特征包括至少一个气味维度上的食品特征,所述滋味特征包括至少一个滋味维度上的食品特征;The acquisition module is used to acquire the current input food feature, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes Food characteristics in at least one flavor dimension;

发送模块,用于向服务器发送食品发布请求,所述食品发布请求携带所述食品对应的食品对象和所述食品对象对应的食品特征。The sending module is configured to send a food release request to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object.

在一些实施例中,所述获取模块,包括:In some embodiments, the obtaining module includes:

显示单元,用于显示发布界面,所述发布界面包括每个食品维度上的多种食品特征;a display unit, used for displaying a publishing interface, the publishing interface includes a variety of food features on each food dimension;

组合单元,用于将所述发布界面中被选中的食品特征进行组合,得到所述食品特征。The combining unit is configured to combine the selected food features in the publishing interface to obtain the food features.

在一些实施例中,所述食品特征包括所述气味特征,所述获取模块,用于通过气味传感器对待发布食品进行检测,得到所述气味特征。In some embodiments, the food feature includes the smell feature, and the acquiring module is configured to detect the food to be released through an smell sensor to obtain the smell feature.

在一些实施例中,所述食品特征包括所述滋味特征,所述获取模块,用于通过滋味传感器对待发布食品进行检测,得到所述滋味特征。In some embodiments, the food feature includes the taste feature, and the acquisition module is configured to detect the food to be released by using a taste sensor to obtain the taste feature.

另一方面,提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以实现如上述方面所述的食品对象搜索方法或食品对象发布方法中所执行的操作。In another aspect, a terminal is provided, the terminal includes a processor and a memory, and at least one piece of program code is stored in the memory, and the at least one piece of program code is loaded and executed by the processor, so as to realize the above aspect The operations performed in the food object search method or the food object release method.

另一方面,提供了一种服务器,所述服务器包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以实现如上述方面所述的食品对象搜索方法中所执行的操作。In another aspect, a server is provided, the server includes a processor and a memory, the memory stores at least one piece of program code, the at least one piece of program code is loaded and executed by the processor, so as to realize the above aspects The operations performed in the described food object search method.

另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以实现如上述方面所述的食品对象搜索方法或食品对象发布方法中所执行的操作。In another aspect, a computer-readable storage medium is provided, and at least one piece of program code is stored in the computer-readable storage medium, and the at least one piece of program code is loaded and executed by a processor, so as to realize the above-mentioned aspects Actions performed in a food object search method or a food object publish method.

另一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述方面所述的食品对象搜索方法中所执行的操作,或者以实现如上述方面所述的食品对象发布方法中所执行的操作。In another aspect, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the operations performed in the method for searching for food objects as described in the above aspects, or to implement the above aspects The action performed in the release method of the food object.

本申请实施例提供方案中,食品特征包括气味特征和滋味特征中的至少一种,气味特征指示食品的气味,而滋味特征指示食品的滋味,通过食品特征来表示难以用文字准确描述的气味和滋味,不仅扩展了食品的表达方式,而且通过食品特征可以准确表达出食品的气味和滋味,在提高了描述食品的气味和滋味的准确性的情况下,提高了搜索食品的准确性。In the solution provided in the embodiment of the present application, the food feature includes at least one of an odor feature and a taste feature, the odor feature indicates the smell of the food, and the taste feature indicates the taste of the food, and the food feature is used to represent the smell and Taste not only expands the expression of food, but also can accurately express the smell and taste of food through food features, which improves the accuracy of searching for food while improving the accuracy of describing the smell and taste of food.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供的一种实施环境的结构示意图;1 is a schematic structural diagram of an implementation environment provided by an embodiment of the present application;

图2是本申请实施例提供的一种食品对象搜索方法的流程图;2 is a flowchart of a method for searching for food objects provided by an embodiment of the present application;

图3是本申请实施例提供的一种食品对象搜索方法的流程图;3 is a flowchart of a method for searching food objects provided by an embodiment of the present application;

图4是本申请实施例提供的一种食品发布方法的流程图;4 is a flowchart of a food release method provided by an embodiment of the present application;

图5是本申请实施例提供的一种食品对象搜索方法的流程图;5 is a flowchart of a method for searching food objects provided by an embodiment of the present application;

图6是本申请实施例提供的一种食品对象搜索方法的流程图;6 is a flowchart of a food object search method provided by an embodiment of the present application;

图7是本申请实施例提供的一种食品发布方法的流程图;Fig. 7 is a flow chart of a food release method provided by an embodiment of the present application;

图8是本申请实施例提供的一种食品对象搜索方法的示意图;8 is a schematic diagram of a food object search method provided by an embodiment of the present application;

图9是本申请实施例提供的一种食品对象搜索装置的结构示意图;9 is a schematic structural diagram of a food object search device provided by an embodiment of the present application;

图10是本申请实施例提供的另一种食品对象搜索装置的结构示意图;10 is a schematic structural diagram of another food object search device provided by an embodiment of the present application;

图11是本申请实施例提供的一种食品对象搜索装置的结构示意图;11 is a schematic structural diagram of a food object search device provided by an embodiment of the present application;

图12是本申请实施例提供的另一种食品对象搜索装置的结构示意图;12 is a schematic structural diagram of another food object search device provided by an embodiment of the present application;

图13是本申请实施例提供的一种食品对象发布装置的结构示意图;13 is a schematic structural diagram of a food object issuing device provided by an embodiment of the present application;

图14是本申请实施例提供的另一种食品对象发布装置的结构示意图;14 is a schematic structural diagram of another food object issuing device provided by an embodiment of the present application;

图15是本申请实施例提供的一种终端的结构示意图;FIG. 15 is a schematic structural diagram of a terminal provided by an embodiment of the present application;

图16是本申请实施例提供的一种服务器的结构示意图。FIG. 16 is a schematic structural diagram of a server provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。本申请术语“至少一个”是指一个或多个,“多个”的含义是指两个或两个以上。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. The term "at least one" in this application refers to one or more, and the meaning of "plurality" refers to two or more.

本申请实施例的实施环境如图1所示,参见图1,该实施环境包括第一终端101、第二终端102和服务器103。其中,第一终端101和第二终端102分别与服务器103之间通过通信网络连接。An implementation environment of the embodiment of the present application is shown in FIG. 1 . Referring to FIG. 1 , the implementation environment includes a first terminal 101 , a second terminal 102 , and a server 103 . The first terminal 101 and the second terminal 102 are respectively connected with the server 103 through a communication network.

第二终端102获取当前食品的食品特征,并将当前的食品对应的食品对象以及该食品对象对应的食品特征发送给服务器103,由服务器103存储食品对象以及该食品对象对应的食品特征。若第一终端101的用户需要搜索食品,在第一终端101输入第一食品特征,第一终端101获取到当前输入的第一食品特征后,向服务器103发送携带第一食品特征的食品搜索请求,服务器103根据接收的食品搜索请求,确定与第一食品特征匹配的食品对象,服务器103向第一终端101返回食品对象,以供第一终端101的用户选择。The second terminal 102 acquires the food feature of the current food, and sends the food object corresponding to the current food and the food feature corresponding to the food object to the server 103, and the server 103 stores the food object and the food feature corresponding to the food object. If the user of the first terminal 101 needs to search for food, the first terminal 101 inputs the first food feature, and after obtaining the currently inputted first food feature, the first terminal 101 sends a food search request carrying the first food feature to the server 103 , the server 103 determines the food object matching the first food feature according to the received food search request, and the server 103 returns the food object to the first terminal 101 for the user of the first terminal 101 to select.

其中,第一终端101、第二终端102可以为手机、平板电脑、计算机等多种类型的终端,服务器103可以为一台服务器、或者由若干服务器组成的服务器集群,或者是一个云计算服务中心。The first terminal 101 and the second terminal 102 may be various types of terminals such as mobile phones, tablet computers, computers, etc., and the server 103 may be a server, a server cluster composed of several servers, or a cloud computing service center .

图2是本申请实施例提供的一种食品对象搜索方法的流程图,参见图2,该方法包括:FIG. 2 is a flowchart of a method for searching food objects provided by an embodiment of the present application. Referring to FIG. 2 , the method includes:

201、第一终端获取当前输入的第一食品特征,第一食品特征包括第一气味特征或第一滋味特征中的至少一种,第一气味特征包括至少一个气味维度上的食品特征,第一滋味特征包括至少一个滋味维度上的食品特征。201, the first terminal obtains the first food feature of the current input, the first food feature includes at least one of the first smell feature or the first taste feature, the first smell feature includes the food feature on at least one smell dimension, the first Taste characteristics include food characteristics in at least one taste dimension.

其中,该第一气味特征表示待搜索食品的气味。该第一气味特征包括至少一种气味维度,每种气味维度指示一种类型的气味,每种气味维度上的特征指示待搜索的食品是否具有此种类型的气味,或者指示该食品具有的此种类型的气味的浓度。例如,采用0指示该食品不具有此种类型的气味,采用1指示该食品具有此种类型的气味。又例如,采用20%指示该食品具有的此种类型的气味的浓度为20%,采用30%指示该食品具有的此种类型的气味的浓度为30%。例如,该气味维度包括香料气、花香气、焦臭气、腐烂气、树脂气、水果气等维度。Wherein, the first smell feature represents the smell of the food to be searched. The first odor feature includes at least one odor dimension, each odor dimension indicating a type of odor, the features on each odor dimension indicating whether the food product to be searched has this type of odor, or whether the food has this type of odor concentration of each type of odor. For example, use 0 to indicate that the food product does not have this type of odor, and use 1 to indicate that the food product has this type of odor. For another example, 20% is used to indicate that the food has a concentration of 20% of this type of odor, and 30% is used to indicate that the food has a concentration of this type of odor of 30%. For example, the smell dimension includes spice smell, flower smell, burnt smell, putrid smell, resin smell, fruit smell and so on.

第一滋味特征表示待搜索食品的滋味。该第一滋味特征包括至少一种滋味维度,每种滋味维度指示一种类型的滋味,每种滋味维度上的特征指示待搜索的食品是否具有此种类型的滋味,或者指示该食品具有的此种类型的滋味的浓度。例如,采用0指示该食品不具有此种类型的滋味,采用1指示该食品具有此种类型的滋味。又例如,采用20%指示该食品具有的此种类型的滋味的浓度为20%,采用30%指示该食品具有的此种类型的滋味的浓度为30%。例如,滋味维度包括酸、甜、苦、咸、鲜等维度。The first taste feature represents the taste of the food to be searched. The first taste feature includes at least one taste dimension, each taste dimension indicates a type of taste, and the feature on each taste dimension indicates whether the food to be searched has this type of taste, or indicates whether the food has this type of taste The concentration of each type of flavor. For example, use 0 to indicate that the food product does not have this type of taste, and use 1 to indicate that the food product has this type of taste. As another example, 20% is used to indicate that the food has a concentration of 20% of this type of taste, and 30% is used to indicate that the food has a concentration of 30% of this type of taste. For example, the taste dimension includes dimensions such as sour, sweet, bitter, salty, and umami.

202、第一终端向服务器发送食品搜索请求,食品搜索请求携带第一食品特征。202. The first terminal sends a food search request to the server, where the food search request carries the first food feature.

其中,该食品搜索请求指示服务器根据该食品搜索请求进行搜索,得到与该食品搜索请求中携带的第一食品特征匹配的食品对象。Wherein, the food search request instructs the server to search according to the food search request to obtain a food object matching the first food feature carried in the food search request.

203、第一终端接收服务器发送的食品对象,食品对象为与第一食品特征匹配的第二食品特征对应的食品对象。203. The first terminal receives a food object sent by the server, where the food object is a food object corresponding to a second food feature matching the first food feature.

其中,食品对象是指为食品创建的虚拟对象,用来指代真实存在的食品。例如,该食品对象包括食品的名称、食品的图片、食品的简介或者其他内容,本申请实施例不作限定。Among them, the food object refers to a virtual object created for the food, which is used to refer to the real food. For example, the food object includes the name of the food, the picture of the food, the introduction of the food, or other contents, which are not limited in the embodiments of the present application.

在本申请实施例中,服务器会根据接收到的食品搜索请求进行搜索,得到与第一食品特征匹配的食品对象,向终端发送与第一食品特征匹配的食品对象,则终端可以接收服务器发送的食品对象。In the embodiment of the present application, the server will search according to the received food search request, obtain the food object matching the first food feature, and send the food object matching the first food feature to the terminal, then the terminal can receive the food object sent by the server. food object.

本申请实施例提供的方法中,食品特征包括气味特征和滋味特征中的至少一种,气味特征指示食品的气味,而滋味特征指示食品的滋味,通过食品特征来表示难以用文字准确描述的气味和滋味,不仅扩展了食品的表达方式,而且通过食品特征可以准确表达出食品的气味和滋味,在提高了描述食品的气味和滋味的准确性的情况下,提高了搜索食品的准确性。In the method provided by the embodiment of the present application, the food feature includes at least one of an odor feature and a taste feature, the odor feature indicates the smell of the food, and the taste feature indicates the taste of the food, and the food feature is used to represent the smell that is difficult to accurately describe in words It not only expands the expression of food, but also accurately expresses the smell and taste of food through food features, which improves the accuracy of searching for food while improving the accuracy of describing the smell and taste of food.

图3是本申请实施例提供的一种食品对象搜索方法的流程图,参见图3,该方法包括:FIG. 3 is a flowchart of a method for searching food objects provided by an embodiment of the present application. Referring to FIG. 3 , the method includes:

301、服务器接收终端发送的食品搜索请求,食品搜索请求携带第一食品特征,第一食品特征包括第一气味特征或第一滋味特征中的至少一种,第一气味特征包括至少一个气味维度上的食品特征,第一滋味特征包括至少一个滋味维度上的食品特征。301. The server receives a food search request sent by a terminal, the food search request carries a first food feature, the first food feature includes at least one of a first smell feature or a first taste feature, and the first smell feature includes at least one smell dimension. The food features, the first taste features include food features on at least one taste dimension.

其中,该第一气味特征表示待搜索食品的气味。该第一气味特征包括至少一种气味维度,每种气味维度指示一种类型的气味,每种气味维度上的特征指示待搜索的食品是否具有此种类型的气味,或者指示该食品具有的此种类型的气味的浓度。例如,该气味维度包括香料气、花香气、焦臭气、腐烂气、树脂气、水果气等维度。第一滋味特征表示待搜索食品的滋味。该第一滋味特征包括至少一种滋味维度,每种滋味维度指示一种类型的滋味,每种滋味维度上的特征指示待搜索的食品是否具有此种类型的滋味,或者指示该食品具有的此种类型的滋味的浓度。例如,滋味维度包括酸、甜、苦、咸、鲜等维度。Wherein, the first smell feature represents the smell of the food to be searched. The first odor feature includes at least one odor dimension, each odor dimension indicating a type of odor, the features on each odor dimension indicating whether the food product to be searched has this type of odor, or whether the food has this type of odor concentration of each type of odor. For example, the smell dimension includes spice smell, flower smell, burnt smell, putrid smell, resin smell, fruit smell and so on. The first taste feature represents the taste of the food to be searched. The first taste feature includes at least one taste dimension, each taste dimension indicates a type of taste, and the feature on each taste dimension indicates whether the food to be searched has this type of taste, or indicates whether the food has this type of taste The concentration of each type of flavor. For example, the taste dimension includes dimensions such as sour, sweet, bitter, salty, and umami.

302、服务器响应于食品搜索请求,从食品特征数据库中,搜索与第一食品特征匹配的第二食品特征。302. In response to the food search request, the server searches the food feature database for a second food feature matching the first food feature.

在本申请实施例中,服务器设置有食品特征数据库。该食品特征数据库存储有终端上报的食品对象和食品对象对应的食品特征。In this embodiment of the present application, the server is provided with a food feature database. The food feature database stores the food objects reported by the terminal and the food features corresponding to the food objects.

在本申请实施例中,服务器响应于该食品搜索请求,在食品特征数据库中进行搜索,得到与第一食品特征匹配的第二食品特征,且该第二食品特征对应的食品对象即为与第一食品特征匹配的食品对象。In the embodiment of the present application, the server searches in the food feature database in response to the food search request to obtain a second food feature matching the first food feature, and the food object corresponding to the second food feature is the same as the first food feature. A food object whose food features are matched.

例如,若第一食品特征中包括第一气味特征,则可以根据该第一气味特征搜索与食品的气味匹配的食品对象。若第一食品特征包括第一滋味特征,则可以根据该第一滋味特征搜索与食品的滋味匹配的食品对象。若第一食品特征包括第一气味特征和第一滋味特征,则可以根据第一气味特征搜索与食品的气味和滋味匹配的食品对象。For example, if the first food feature includes a first smell feature, a food object matching the smell of the food may be searched for according to the first smell feature. If the first food feature includes the first taste feature, a food object matching the taste of the food may be searched for according to the first taste feature. If the first food feature includes the first smell feature and the first taste feature, a food object matching the smell and taste of the food can be searched according to the first smell feature.

303、服务器向终端发送第二食品特征对应的食品对象。303. The server sends the food object corresponding to the second food feature to the terminal.

本申请实施例提供的方法中,食品特征包括气味特征和滋味特征中的至少一种,气味特征指示食品的气味,而滋味特征指示食品的滋味,通过食品特征来表示难以用文字准确描述的气味和滋味,不仅扩展了食品的表达方式,而且通过食品特征可以准确表达出食品的气味和滋味,在提高了描述食品的气味和滋味的准确性的情况下,提高了搜索食品的准确性。In the method provided by the embodiment of the present application, the food feature includes at least one of an odor feature and a taste feature, the odor feature indicates the smell of the food, and the taste feature indicates the taste of the food, and the food feature is used to represent the smell that is difficult to accurately describe in words It not only expands the expression of food, but also accurately expresses the smell and taste of food through food features, which improves the accuracy of searching for food while improving the accuracy of describing the smell and taste of food.

图4是本申请实施例提供的一种食品对象搜索方法的流程图,参见图4,该方法包括:FIG. 4 is a flowchart of a method for searching food objects provided by an embodiment of the present application. Referring to FIG. 4 , the method includes:

401、第一终端获取当前输入的第一食品特征,第一食品特征包括第一气味特征或第一滋味特征中的至少一种,第一气味特征包括至少一个气味维度上的食品特征,第一滋味特征包括至少一个滋味维度上的食品特征。401, the first terminal obtains the first food feature of the current input, the first food feature includes at least one of the first smell feature or the first taste feature, the first smell feature includes the food feature on at least one smell dimension, the first Taste characteristics include food characteristics in at least one taste dimension.

其中,该第一气味特征表示待搜索食品的气味。该第一气味特征包括至少一种气味维度,每种气味维度指示一种类型的气味,每种气味维度上的特征指示待搜索的食品是否具有此种类型的气味,或者指示该食品具有的此种类型的气味的浓度。例如,该气味维度包括香料气、花香气、焦臭气、腐烂气、树脂气、水果气等维度。第一滋味特征表示待搜索食品的滋味。该第一滋味特征包括至少一种滋味维度,每种滋味维度指示一种类型的滋味,每种滋味维度上的特征指示待搜索的食品是否具有此种类型的滋味,或者指示该食品具有的此种类型的滋味的浓度。例如,滋味维度包括酸、甜、苦、咸、鲜等维度。Wherein, the first smell feature represents the smell of the food to be searched. The first odor feature includes at least one odor dimension, each odor dimension indicating a type of odor, the features on each odor dimension indicating whether the food product to be searched has this type of odor, or whether the food has this type of odor concentration of each type of odor. For example, the smell dimension includes spice smell, flower smell, burnt smell, putrid smell, resin smell, fruit smell and so on. The first taste feature represents the taste of the food to be searched. The first taste feature includes at least one taste dimension, each taste dimension indicates a type of taste, and the feature on each taste dimension indicates whether the food to be searched has this type of taste, or indicates whether the food has this type of taste The concentration of each type of flavor. For example, the taste dimension includes dimensions such as sour, sweet, bitter, salty, and umami.

在本申请实施例中,第一终端获取当前输入的第一食品特征后,根据该第一食品特征中包括的第一气味特征或第一滋味特征中的至少一种,即可确定用户搜索的食品的气味和滋味。In the embodiment of the present application, after the first terminal acquires the currently inputted first food feature, it can determine whether the user searches for the first food feature according to at least one of the first smell feature or the first taste feature included in the first food feature. The smell and taste of food.

在一些实施例中,第一终端安装有食品推荐应用,用户基于用户标识登录该食品推荐应用,第一终端显示该食品推荐应用的应用界面,并且用户根据第一终端显示的应用界面搜索食品。In some embodiments, a food recommendation application is installed on the first terminal, the user logs in to the food recommendation application based on the user ID, the first terminal displays an application interface of the food recommendation application, and the user searches for food according to the application interface displayed on the first terminal.

其中,用户标识为用户名称、用户手机号或者其他标识,本申请实施例不作限定。The user identifier is a user name, a user mobile phone number, or other identifiers, which are not limited in this embodiment of the present application.

需要说明的是,本申请实施例中的第一终端可以采用多种方式获取第一食品特征,下面对第一终端获取第一食品特征的方式进行说明:It should be noted that the first terminal in the embodiment of the present application may acquire the first food feature in a variety of ways. The following describes the manner in which the first terminal acquires the first food feature:

第一种:第一终端显示搜索界面,将搜索界面中被选中的食品特征进行组合,得到第一食品特征。The first type: the first terminal displays a search interface, and combines the food features selected in the search interface to obtain the first food feature.

其中,搜索界面包括每个食品维度上的多种食品特征。第一终端显示该搜索界面后,用户即可查看该搜索界面中每个食品维度上的多种食品特征,用户基于每个食品维度输入食品特征,第一终端将检测到的用户输入的食品特征进行组合,得到第一食品特征。Among them, the search interface includes a variety of food features on each food dimension. After the first terminal displays the search interface, the user can view a variety of food features on each food dimension in the search interface, the user inputs food features based on each food dimension, and the first terminal detects the detected food features input by the user. Combining to obtain the first food feature.

例如,如图5所示,该搜索界面中包括两种形状的图形,第一种形状是包括香料气、花香气、焦臭气、腐烂气、树脂气和水果气等食品维度的气味柱,第二种形状是包括酸、甜、苦、咸和鲜等食品维度的雷达图,每种食品维度对应的线条上包括一个用于调整该食品维度的点,用户根据该气味柱和雷达图,对每种食品维度对应的线条上的点进行拖动,以对每种气味或滋味的浓度进行调整,第一终端根据在搜索界面检测到的操作得到第一食品特征。For example, as shown in Figure 5, the search interface includes two shapes of graphs. The first shape is an odor column that includes food dimensions such as spice, flower, burnt, rot, resin, and fruit. The second shape is a radar chart including food dimensions such as sour, sweet, bitter, salty, and fresh, and the line corresponding to each food dimension includes a point for adjusting the food dimension. Drag the point on the line corresponding to each food dimension to adjust the concentration of each odor or taste, and the first terminal obtains the first food feature according to the operation detected on the search interface.

第二种:第一终端通过传感器获取第一食品特征。The second type: the first terminal acquires the first food feature through the sensor.

在本申请实施例中,第一终端包括传感器,若用户需要检测待搜索食品的第一食品特征,则将该第一终端接近待搜索食品,进而第一终端通过所设置的传感器对待搜索食品进行检测,以得到待搜索食品的第一食品特征。In the embodiment of the present application, the first terminal includes a sensor. If the user needs to detect the first food feature of the food to be searched, the first terminal is approached to the food to be searched, and then the first terminal uses the set sensor to perform the search on the food to be searched. detection to obtain the first food feature of the food to be searched.

在一些实施例中,该传感器包括气味传感器或滋味传感器中的至少一种。该气味传感器用于检测食品的气味。滋味传感器用于检测食品的滋味。In some embodiments, the sensor includes at least one of an odor sensor or a taste sensor. The smell sensor is used to detect the smell of food. The taste sensor is used to detect the taste of food.

可选地,若传感器包括气味传感器,则第一终端通过该气味传感器对待搜索食品进行检测,得到第一气味特征,也即是第一食品特征中包括第一气味特征。Optionally, if the sensor includes an odor sensor, the first terminal detects the food to be searched through the odor sensor to obtain the first odor feature, that is, the first food feature includes the first odor feature.

可选地,若传感器包括滋味传感器,则第一终端通过该滋味传感器对待搜索食品进行检测,得到第一滋味特征,也即是第一食品特征中包括第一滋味特征。Optionally, if the sensor includes a taste sensor, the first terminal detects the food to be searched through the taste sensor to obtain the first taste feature, that is, the first food feature includes the first taste feature.

402、第一终端向服务器发送食品搜索请求,食品搜索请求携带第一食品特征。402. The first terminal sends a food search request to the server, where the food search request carries the first food feature.

403、服务器接收第一终端发送的食品搜索请求。403. The server receives the food search request sent by the first terminal.

404、服务器响应于食品搜索请求,从食品特征数据库中,搜索与第一食品特征匹配的第二食品特征。404. In response to the food search request, the server searches the food feature database for a second food feature matching the first food feature.

在本申请实施例中,第一终端获取到待搜索食品的第一食品特征,向服务器发送携带第一食品特征的食品搜索请求,服务器接收食品搜索请求,响应于该食品搜索请求,在食品特征数据库中进行搜索,以搜索得到与第一食品特征匹配的食品。并且由于搜索到的第二食品特征与第一食品特征匹配,并且第二食品特征对应有食品对象,因此第二食品特征对应的食品对象为与第一食品特征匹配的食品对象。In the embodiment of the present application, the first terminal acquires the first food feature of the food to be searched, sends a food search request carrying the first food feature to the server, the server receives the food search request, and responds to the food search request, in the food feature A search is performed in the database to search for a food product that matches the characteristic of the first food product. And since the searched second food feature matches the first food feature, and the second food feature corresponds to a food object, the food object corresponding to the second food feature is a food object that matches the first food feature.

其中,该食品特征数据库包括食品对象和该食品对象对应的食品特征。食品对象和该食品对象对应的食品特征由其他终端上报,并由服务器存储至该食品特征数据库中。Wherein, the food feature database includes food objects and food features corresponding to the food objects. The food object and the food feature corresponding to the food object are reported by other terminals, and stored in the food feature database by the server.

在一些实施例中,食品搜索请求中包括第一气味特征或第一滋味特征中的至少一项,下面对食品搜索请求中包括的第一气味特征或第一滋味特征的情况进行说明。In some embodiments, the food search request includes at least one of the first smell feature or the first taste feature. The following describes the case of the first smell feature or the first taste feature included in the food search request.

第一种:食品搜索请求包括第一气味特征,第一气味特征由第一终端通过气味传感器对待搜索食品进行检测得到。服务器响应于食品搜索请求,基于特征转换模型,对第一气味特征进行转换,得到第三气味特征,从食品特征数据库中,搜索与第三气味特征匹配的第二气味特征。The first type: the food search request includes a first smell feature, and the first smell feature is obtained by detecting the food to be searched by the first terminal through the smell sensor. In response to the food search request, the server converts the first odor feature based on the feature conversion model to obtain a third odor feature, and searches the food feature database for a second odor feature matching the third odor feature.

其中,第一气味特征属于第一格式,第三气味特征属于第二格式。若第一终端发送的第一气味特征由第一终端通过气味传感器检测得到,则服务器接收到第一终端发送的食品搜索请求后,基于特征转换模型,对第一格式的第一气味特征进行转换,得到第二格式的第三气味特征,该第二格式的第三气味特征符合服务器搜索第二气味特征的要求,因此服务器响应于该食品搜索请求,根据第三气味特征从食品特征数据库中搜索,以得到与第三气味特征匹配的第二气味特征。The first smell feature belongs to the first format, and the third smell feature belongs to the second format. If the first odor feature sent by the first terminal is detected by the first terminal through the odor sensor, after receiving the food search request sent by the first terminal, the server converts the first odor feature in the first format based on the feature conversion model , obtain the third smell feature in the second format, the third smell feature in the second format meets the requirements of the server to search for the second smell feature, so the server responds to the food search request and searches the food feature database according to the third smell feature , to obtain a second odor feature that matches the third odor feature.

在一些实施例中,若服务器需要使用特征转换模型对第一气味特征进行转换,需要先对特征转换模型进行训练,训练特征转换模型的过程包括:获取样本食品的第一样本气味特征和第二样本气味特征,第一样本气味特征属于第一格式,第二样本气味特征属于第二格式。服务器基于第一样本气味特征和第二样本气味特征,对特征转换模型进行训练,得到训练后的特征转换模型。In some embodiments, if the server needs to use the feature conversion model to convert the first odor feature, the feature conversion model needs to be trained first. The process of training the feature conversion model includes: acquiring the first sample odor feature and the first sample odor feature of the sample food. Two sample odor features, the first sample odor feature belongs to the first format, and the second sample odor feature belongs to the second format. The server trains the feature conversion model based on the first sample odor feature and the second sample odor feature, and obtains a trained feature conversion model.

其中,服务器在基于特征转换模型对气味特征进行转换前,需要先对特征转换模型进行训练,以使训练后的特征转换模型可以将气味特征的第一格式转换为第二格式。服务器先获取属于第一格式的第一样本气味特征和属于第二格式的第二样本气味特征,将第一样本气味特征输入至特征转换模型中,得到训练气味特征,该训练气味特征属于第二格式,再根据训练气味特征与第二样本气味特征之间的差异,对特征转换模型的参数进行调整,得到调整后的特征转换模型。Wherein, before the server converts the odor feature based on the feature conversion model, the feature conversion model needs to be trained first, so that the trained feature conversion model can convert the first format of the odor feature into the second format. The server first obtains the first sample odor feature belonging to the first format and the second sample odor feature belonging to the second format, inputs the first sample odor feature into the feature conversion model, and obtains the training odor feature, the training odor feature belongs to In the second format, the parameters of the feature conversion model are adjusted according to the difference between the training odor feature and the second sample odor feature to obtain an adjusted feature conversion model.

可选地,样本物品的第二样本气味特征由评审人员根据食品的气味进行评判,以得到属于第二格式的第二样本气味特征。Optionally, the second sample smell characteristic of the sample item is judged by the reviewer according to the smell of the food, so as to obtain the second sample smell characteristic belonging to the second format.

本申请实施例中,通过气味传感器对食物进行检测以得到气味特征,将难以通过文字准确描述的气味数字化,不仅扩展了气味的表达方式,而且提高了对气味的描述的准确性,进而提高根据气味搜索食品的准确性。In the embodiment of the present application, the odor sensor is used to detect the food to obtain the odor characteristics, and the odor that is difficult to be accurately described by text is digitized, which not only expands the way of expressing the odor, but also improves the accuracy of the description of the odor, thereby improving the Accuracy of scent search for food.

第二种:食品搜索请求包括第一滋味特征,第一滋味特征由第一终端通过滋味传感器对待搜索食品进行检测得到。服务器响应于食品搜索请求,基于特征转换模型,对第一滋味特征进行转换,得到第三滋味特征,从食品特征数据库中,搜索与第三滋味特征匹配的第二滋味特征。The second type: the food search request includes the first taste feature, and the first taste feature is obtained by detecting the food to be searched by the first terminal through the taste sensor. In response to the food search request, the server converts the first flavor feature based on the feature conversion model to obtain a third flavor feature, and searches the food feature database for a second flavor feature matching the third flavor feature.

其中,第一滋味特征属于第三格式,第三滋味特征属于第四格式。若第一终端发送的第一滋味特征由第一终端通过滋味传感器检测得到,则服务器接收到第一终端发送的食品搜索请求后,基于特征转换模型,对第三格式的第一滋味特征进行转换,得到第四格式的第三滋味特征,该第四格式的第三滋味特征符合服务器搜索第二滋味特征的要求,因此服务器响应于该食品搜索请求,根据第三滋味特征从食品特征数据库中搜索,以得到与第三滋味特征匹配的第二滋味特征。The first taste feature belongs to the third format, and the third taste feature belongs to the fourth format. If the first taste feature sent by the first terminal is detected by the first terminal through the taste sensor, after receiving the food search request sent by the first terminal, the server converts the first taste feature in the third format based on the feature conversion model , obtain the third taste feature of the fourth format, the third taste feature of the fourth format meets the requirements of the server to search for the second taste feature, so the server responds to the food search request and searches from the food feature database according to the third taste feature , to obtain the second taste feature that matches the third taste feature.

在一些实施例中,若服务器需要使用特征转换模型对第一滋味特征进行转换,需要先对特征转换模型进行训练,训练特征转换模型的过程包括:获取样本食品的第一样本滋味特征和第二样本滋味特征,第一样本滋味特征属于第三格式,第二样本滋味特征属于第四格式。服务器基于第一样本滋味特征和第二样本滋味特征,对特征转换模型进行训练,得到训练后的特征转换模型。In some embodiments, if the server needs to use the feature conversion model to convert the first taste feature, the feature conversion model needs to be trained first. The process of training the feature conversion model includes: acquiring the first sample taste feature and the first sample taste feature of the sample food. Two samples of taste characteristics, the first sample taste characteristics belong to the third format, and the second sample taste characteristics belong to the fourth format. The server trains the feature conversion model based on the taste feature of the first sample and the taste feature of the second sample, and obtains the trained feature conversion model.

其中,服务器在基于特征转换模型对滋味特征进行转换前,需要先对特征转换模型进行训练,以使训练后的特征转换模型可以将滋味特征的第三格式转换为第四格式。服务器先获取属于第三格式的第一样本滋味特征和属于第四格式的第二样本滋味特征,将该第三格式的第一滋味气味特征输入至特征转换模型中,得到训练滋味特征,该训练滋味特征属于第四格式再根据第四格式的训练滋味特征与第二样本滋味特征之间的差异,对特征转换模型的参数进行调整,得到调整后的特征转换模型。The server needs to train the feature conversion model before converting the taste feature based on the feature conversion model, so that the trained feature conversion model can convert the third format of the taste feature into the fourth format. The server first obtains the taste feature of the first sample belonging to the third format and the taste feature of the second sample belonging to the fourth format, and inputs the first taste and smell feature of the third format into the feature conversion model to obtain the training taste feature. The training taste feature belongs to the fourth format, and then according to the difference between the training taste feature in the fourth format and the second sample taste feature, the parameters of the feature conversion model are adjusted to obtain an adjusted feature conversion model.

可选地,样本物品的第二格式的第二样本滋味特征由评审人员根据食品的滋味进行评判,以得到属于第二格式的第二样本滋味特征。Optionally, the second sample taste characteristic of the second format of the sample item is judged by the reviewer according to the taste of the food, so as to obtain the second sample taste characteristic belonging to the second format.

本申请实施例中,通过滋味传感器对食物进行检测以得到滋味特征,将难以通过文字准确描述的滋味数字化,不仅扩展了滋味的表达方式,而且提高了对滋味的描述的准确性,进而提高根据滋味搜索食品的准确性。In the embodiment of the present application, the taste sensor is used to detect the food to obtain the taste characteristics, and the taste that is difficult to be accurately described by text is digitized, which not only expands the way of expressing the taste, but also improves the accuracy of the description of the taste. Taste the accuracy of searching for food.

下面,对如何确定与第一食品特征匹配的第二食品特征进行说明。Next, how to determine the second food feature matching the first food feature will be described.

在一些实施例中,获取第一食品特征与第二食品特征之间的匹配度,从食品特征数据库中,选取匹配度最大的至少一个第二食品特征。In some embodiments, the matching degree between the first food feature and the second food feature is obtained, and from the food feature database, at least one second food feature with the highest matching degree is selected.

在本申请实施例中,服务器获取第一食品特征和第二食品特征之间的匹配度,采用该匹配度表示第一食品特征与第二食品特征之间的匹配程度,再根据获取的第一食品特征与第二食品特征之间的匹配度,选取匹配度最大的至少一个第二食品特征。In the embodiment of the present application, the server obtains the matching degree between the first food feature and the second food feature, uses the matching degree to represent the matching degree between the first food feature and the second food feature, and then uses the matching degree to represent the matching degree between the first food feature and the second food feature. For the matching degree between the food feature and the second food feature, at least one second food feature with the largest matching degree is selected.

其中,第一食品特征与第二食品特征之间的匹配度越大,说明第一食品特征与第二食品特征之间的匹配程度越大,因此选择匹配度大的食品特征作为与第一食品特征匹配的第二食品特征。Among them, the greater the matching degree between the first food feature and the second food feature, the greater the matching degree between the first food feature and the second food feature, so the food feature with a large matching degree is selected as the first food feature. The feature matches the second food feature.

例如,按照匹配度由大到小的顺序,对第二食品特征进行排序,再按照排列顺序选取位于前面的预设数量的第二食品特征,确定为与第一食品特征匹配的第二食品特征。For example, sort the second food features in descending order of matching degree, and then select a preset number of second food features in the front according to the sorting order, and determine as the second food features matching the first food feature .

其中,该预设数量由服务器设置,或者,该预设数量由操作人员设置,或者采用其他方式设置。Wherein, the preset number is set by the server, or the preset number is set by the operator, or is set by other methods.

又例如,获取匹配度大于预设匹配度的第二食品特征,确定为与第一食品特征匹配的第二食品特征。For another example, a second food feature with a matching degree greater than a preset matching degree is acquired, and determined as the second food feature matching the first food feature.

其中,该预设匹配度由服务器设置,或者,该预设匹配度由操作人员设置,或者采用其他方式设置。Wherein, the preset matching degree is set by the server, or the preset matching degree is set by the operator, or is set in other ways.

例如,该预设匹配度为0.6,若服务器获取的第二匹配度大于0.6,则将该第二匹配度确定为与第一食品特征匹配的第二匹配度。For example, the preset matching degree is 0.6, and if the second matching degree obtained by the server is greater than 0.6, the second matching degree is determined as the second matching degree matching the first food feature.

在本申请实施例中,服务器获取第一食品特征与第二食品特征之间的匹配度时,需要分别根据第一气味特征和第一滋味特征来确定第一食品特征与第二食品特征之间的匹配度。In this embodiment of the present application, when the server obtains the matching degree between the first food feature and the second food feature, it needs to determine the relationship between the first food feature and the second food feature according to the first smell feature and the first taste feature respectively. match.

在本申请实施例中,第一食品特征包括第一气味特征或第一滋味特征中的至少一项,第一食品特征包括的第一气味特征或第一滋味特征的情况不同时,确定与第一食品特征与第二食品特征之间的匹配度的方式也不同,下面,采用三种情况进行说明:In the embodiment of the present application, the first food feature includes at least one of the first smell feature or the first taste feature, and when the first food feature includes the first smell feature or the first taste feature, it is determined that the first food feature is different from the first taste feature. The matching degree between the first food feature and the second food feature is also different. Below, three cases are used for description:

第一种情况:第一食品特征包括第一气味特征,第二食品特征包括第二气味特征。获取第一气味特征与第二气味特征之间的距离,将距离与参考距离之间的比例,确定为第一气味特征与第二气味特征之间的匹配度。Case 1: The first food feature includes a first odor feature, and the second food feature includes a second odor feature. The distance between the first odor feature and the second odor feature is acquired, and the ratio between the distance and the reference distance is determined as the matching degree between the first odor feature and the second odor feature.

在本申请实施例中,第一气味特征和第二气味特征以向量形式表示,因此获取第一气味特征与第二气味特征之间的距离,再获取该距离与参考距离之间的比例,获取的比例即为第一气味特征与第二气味特征之间的匹配度。In this embodiment of the present application, the first odor feature and the second odor feature are represented in the form of vectors. Therefore, the distance between the first odor feature and the second odor feature is obtained, and then the ratio between the distance and the reference distance is obtained. The ratio of is the matching degree between the first odor feature and the second odor feature.

例如,参考图5,第一气味特征和第二气味特征均可以由图5中的气味柱表示,根据该气味柱确定第一气味特征和第二气味特征之间的距离,再将确定的距离与参考距离之间的比例确定为第一气味特征和第二气味特征之间的匹配度。For example, referring to FIG. 5, both the first odor feature and the second odor feature can be represented by the odor column in FIG. 5, and the distance between the first odor feature and the second odor feature is determined according to the odor column, and then the determined distance The ratio to the reference distance is determined as the match between the first odor feature and the second odor feature.

第二种情况:第一食品特征包括第一滋味特征,第二食品特征包括第二滋味特征。服务器确定第一滋味特征在味觉雷达图中所占的第一区域,确定第二滋味特征在味觉雷达图中所占的第二区域,获取第一区域与第二区域的重合区域的面积,将面积与第二区域的面积之间的比例确定为第一滋味特征与第二滋味特征之间的匹配度。The second case: the first food feature includes the first taste feature, and the second food feature includes the second taste feature. The server determines the first area occupied by the first taste feature in the taste radar map, determines the second area occupied by the second taste feature in the taste radar map, obtains the area of the overlapping area of the first area and the second area, and sets the The ratio between the area and the area of the second region is determined as the match between the first taste feature and the second taste feature.

在本申请实施例中,第一滋味特征和第二滋味特征均由味觉雷达图表示,因此可以确定第一滋味特征在该味觉雷达图中所占的第一区域的面积,而且也可以确定第二滋味特征在该味觉雷达图所占的第二区域的面积,第一区域与第二区域的重合区域的面积表示第一滋味特征和第二滋味特征的相似程度,因此将面积与第二区域的面积之间的比例确定为第一滋味特征与第二滋味特征之间的匹配度。In this embodiment of the present application, both the first taste feature and the second taste feature are represented by a taste radar map, so the area of the first region occupied by the first taste feature in the taste radar map can be determined, and the first taste feature can also be determined. The area of the second area occupied by the two taste features in the taste radar map, the area of the overlapping area of the first area and the second area indicates the similarity of the first taste feature and the second taste feature, so the area and the second area The ratio between the areas of , is determined as the matching degree between the first taste feature and the second taste feature.

第三种情况:服务器确定第一气味特征与第二气味特征之间的第一匹配度,确定第一滋味特征与第二滋味特征之间的第二匹配度,对第一匹配度和第二匹配度进行加权处理,得到第一食品特征与第二食品特征之间的匹配度。The third case: the server determines the first matching degree between the first smell feature and the second smell feature, determines the second matching degree between the first taste feature and the second taste feature, and compares the first matching degree and the second matching degree between the first matching degree and the second matching degree. The matching degree is weighted to obtain the matching degree between the first food feature and the second food feature.

在本申请实施例中,第一食品特征包括第一气味特征和第一滋味特征,第二食品特征包括第二气味特征和第二滋味特征,则服务器在确定第一食品特征与第二食品特征之间的匹配度时,需要先根据第一气味特征与第二气味特征确定第一匹配度,再根据第一滋味特征与第二滋味特征确定第二匹配度,再对第一匹配度和第二匹配度进行加权处理得到第一食品特征与第二食品特征之间的匹配度。In this embodiment of the present application, the first food feature includes a first smell feature and a first taste feature, and the second food feature includes a second smell feature and a second taste feature, then the server is determining the first food feature and the second food feature. When the matching degree is between, it is necessary to first determine the first matching degree according to the first smell feature and the second smell feature, then determine the second matching degree according to the first taste feature and the second taste feature, and then compare the first matching degree with the second matching degree. The second matching degree is weighted to obtain the matching degree between the first food feature and the second food feature.

可选地,对第一匹配度和第二匹配度进行加权处理包括:获取第一匹配度与第一比例的第一乘积,再获取第二匹配度与第二比例的第二乘积,将第一乘积与第二乘积的和确定为第一食品特征与第二食品特征之间的匹配度。Optionally, performing weighting processing on the first matching degree and the second matching degree includes: obtaining the first product of the first matching degree and the first ratio, then obtaining the second product of the second matching degree and the second ratio, The sum of the first product and the second product is determined as the matching degree between the first food feature and the second food feature.

其中,第一比例和第二比例的和为1。Wherein, the sum of the first ratio and the second ratio is 1.

405、服务器向第一终端发送第二食品特征对应的食品对象。405. The server sends the food object corresponding to the second food feature to the first terminal.

406、第一终端接收服务器发送的食品对象。406. The first terminal receives the food object sent by the server.

服务器根据第一食品特征与第二食品特征之间的匹配度,确定与第一食品特征匹配的第二食品特征,也说明第二食品特征对应的食品对象是与第一食品特征匹配的食品对象,向第一终端发送第二食品特征对应的食品对象,第一终端接收服务器发送的食品对象。According to the matching degree between the first food feature and the second food feature, the server determines the second food feature matching the first food feature, which also indicates that the food object corresponding to the second food feature is the food object matching the first food feature , sending the food object corresponding to the second food feature to the first terminal, and the first terminal receives the food object sent by the server.

407、第一终端显示食品对象。407. The first terminal displays the food object.

第一终端接收到服务器发送的食品对象后,即可显示该食品对象,以供用户通过第一终端选择食品对象。After receiving the food object sent by the server, the first terminal can display the food object for the user to select the food object through the first terminal.

408、第一终端响应于对食品对象的选取操作,将食品对象添加至目标列表中。408. The first terminal adds the food object to the target list in response to the selection operation on the food object.

其中,目标列表包括当前已选取的食品对象。用户可以通过查看该目标列表以确认当前已选取的食品对象,并且还可以继续在该目标列表中添加其他食品对象,或者也还可以将该目标列表中的部分食品对象删除。Wherein, the target list includes the currently selected food objects. The user can confirm the currently selected food object by viewing the target list, and can also continue to add other food objects in the target list, or can also delete some food objects in the target list.

在本申请实施例中,第一终端显示有食品对象,用户可以查看每个食品对象,若用户触发对任一食品对象的选取操作,则第一终端响应于对食品对象的选取操作,将食品对象添加至目标列表中。In the embodiment of the present application, the first terminal displays food objects, and the user can view each food object. If the user triggers a selection operation for any food object, the first terminal responds to the selection operation for the food object and selects the food object. The object is added to the target list.

需要说明的第一点是,本申请实施例仅是以将食品对象添加至目标列表中为例进行说明。在另一实施例中,第一终端响应于对食品对象的确认操作,生成食品配送订单。The first point that needs to be explained is that the embodiments of the present application only take adding food objects to the target list as an example for description. In another embodiment, the first terminal generates a food delivery order in response to a confirmation operation on the food object.

其中,食品配送订单包含食品对象,食品配送订单用于指示配送食品对象指代的食品。用户选取食品对象后,若已确定选取的食品对象无误,则触发确认操作,第一终端响应于对食品对象的确认操作,生成包括已选取的食品对象的食品配送订单,后续商家即可根据该食品配送订单配送食品。The food delivery order includes food objects, and the food delivery order is used to indicate the food that the delivery food object refers to. After the user selects the food object, if it is determined that the selected food object is correct, a confirmation operation is triggered, and the first terminal responds to the confirmation operation on the food object, and generates a food delivery order including the selected food object. Food delivery orders deliver food.

需要说明的第二点是,本申请实施例中的步骤407-408为可选步骤,在另一实施例中还可以不执行步骤407-408。The second point that needs to be explained is that steps 407-408 in this embodiment of the present application are optional steps, and steps 407-408 may not be executed in another embodiment.

本申请实施例提供的方法,食品特征包括气味特征和滋味特征中的至少一种,气味特征指示食品的气味,而滋味特征指示食品的滋味,通过食品特征来表示难以用文字准确描述的气味和滋味,不仅扩展了食品的表达方式,而且通过食品特征可以准确表达出食品的气味和滋味,在提高了描述食品的气味和滋味的准确性的情况下,提高了搜索食品的准确性。In the method provided by the embodiments of the present application, the food feature includes at least one of an odor feature and a taste feature, the odor feature indicates the smell of the food, and the taste feature indicates the taste of the food, and the food feature is used to represent the smell and Taste not only expands the expression of food, but also can accurately express the smell and taste of food through food features, which improves the accuracy of searching for food while improving the accuracy of describing the smell and taste of food.

上述图3实施例和图4实施例所涉及的食品特征数据库中的食品对象和食品对象对应的食品特征由其他终端上报,并由服务器存储在该食品特征数据库中。下面,采用图6和图7所示实施例对其他终端上报食品对象的过程进行说明。图6是本申请实施例提供的一种食品对象发布方法的流程图,参见图6,该方法包括:The food objects and food features corresponding to the food objects in the food feature databases involved in the embodiments of FIG. 3 and FIG. 4 are reported by other terminals and stored in the food feature database by the server. Next, the process of reporting food objects by other terminals will be described using the embodiments shown in FIG. 6 and FIG. 7 . FIG. 6 is a flowchart of a method for releasing a food object provided by an embodiment of the present application. Referring to FIG. 6 , the method includes:

601、第二终端获取当前输入的食品特征,食品特征包括当前食品的气味特征或滋味特征中的至少一种,气味特征包括至少一个气味维度上的食品特征,滋味特征包括至少一个滋味维度上的食品特征。601, the second terminal obtains the food feature of the current input, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes at least one taste dimension. food characteristics.

该气味特征表示待发布食品的气味。滋味特征表示待发布食品的滋味。该第一气味特征包括至少一种气味维度,每种气味维度指示一种类型的气味,每种气味维度上的特征指示待搜索的食品是否具有此种类型的气味,或者指示该食品具有的此种类型的气味的浓度。例如,该气味维度包括香料气、花香气、焦臭气、腐烂气、树脂气、水果气等维度。第一滋味特征表示待搜索食品的滋味。该第一滋味特征包括至少一种滋味维度,每种滋味维度指示一种类型的滋味,每种滋味维度上的特征指示待搜索的食品是否具有此种类型的滋味,或者指示该食品具有的此种类型的滋味的浓度。例如,滋味维度包括酸、甜、苦、咸、鲜等维度。The odor signature represents the odor of the food product to be released. The taste profile represents the taste of the food product to be published. The first odor feature includes at least one odor dimension, each odor dimension indicating a type of odor, the features on each odor dimension indicating whether the food product to be searched has this type of odor, or whether the food has this type of odor concentration of each type of odor. For example, the smell dimension includes spice smell, flower smell, burnt smell, putrid smell, resin smell, fruit smell and so on. The first taste feature represents the taste of the food to be searched. The first taste feature includes at least one taste dimension, each taste dimension indicates a type of taste, and the feature on each taste dimension indicates whether the food to be searched has this type of taste, or indicates whether the food has this type of taste The concentration of each type of flavor. For example, the taste dimension includes dimensions such as sour, sweet, bitter, salty, and umami.

602、第二终端向服务器发送食品发布请求,食品发布请求携带食品对应的食品对象和食品对象对应的食品特征。602. The second terminal sends a food release request to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object.

在本申请实施例中,第二终端获取到当前食品的食品特征后,将食品对应的食品对象和食品对象对应的食品特征携带在食品发布请求中,向服务器发送该食品发布请求,后续服务器接收到该食品发布请求后,即可将食品对象和食品对象对应的食品特征存储在食品特征数据库中。In the embodiment of the present application, after acquiring the food characteristics of the current food, the second terminal carries the food object corresponding to the food and the food characteristics corresponding to the food object in the food release request, and sends the food release request to the server, and the server subsequently receives the food release request. After the food release request, the food object and the food feature corresponding to the food object can be stored in the food feature database.

本申请实施例提供的方法中,食品特征包括气味特征和滋味特征中的至少一种,气味特征指示食品的气味,而滋味特征指示食品的滋味,通过食品特征来表示难以用文字准确描述的气味和滋味,扩展了食品的表达方式,而且通过食品特征可以准确表达出食品的气味和滋味,因此将食品对应的食品对象和该食品对象对应的食品特征发布在服务器中,可以提高用户搜索食品的准确性。In the method provided by the embodiment of the present application, the food feature includes at least one of an odor feature and a taste feature, the odor feature indicates the smell of the food, and the taste feature indicates the taste of the food, and the food feature is used to represent the smell that is difficult to accurately describe in words and taste, which expands the expression of food, and can accurately express the smell and taste of food through food features. Therefore, publishing the food object corresponding to the food and the food features corresponding to the food object in the server can improve the user’s ability to search for food. accuracy.

图7是本申请实施例提供的一种食品对象发布方法的流程图,参见图7,该方法包括:FIG. 7 is a flowchart of a method for releasing a food object provided by an embodiment of the present application. Referring to FIG. 7 , the method includes:

701、第二终端获取当前输入的食品特征,食品特征包括当前食品的气味特征或滋味特征中的至少一种,气味特征包括至少一个气味维度上的食品特征,滋味特征包括至少一个滋味维度上的食品特征。701, the second terminal obtains the food feature of the current input, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes at least one taste dimension. food characteristics.

本申请实施例中的食品特征与上述实施例中步骤601的第一食品特征类似,在此不再赘述。The features of the food in this embodiment of the present application are similar to the features of the first food in step 601 in the foregoing embodiment, and details are not described herein again.

需要说明的是,本申请实施例中的第二终端可以采用多种方式获取食品特征,下面对第二终端获取食品特征的方式进行说明:It should be noted that the second terminal in the embodiment of the present application may acquire food features in a variety of ways. The following describes the manner in which the second terminal acquires food features:

第一种:第二终端显示发布界面,发布界面包括每个食品维度上的多种食品特征。将发布界面中被选中的食品特征进行组合,得到食品特征。The first type: the second terminal displays a publishing interface, and the publishing interface includes a variety of food features on each food dimension. Combine the selected food features in the publishing interface to obtain food features.

其中,该发布界面包括每个食品维度上的多种食品特征。第二终端显示该发布界面后,用户即可查看该发布界面中每个食品维度上的多种食品特征,用户基于每个食品维度上输入食品特征,第二终端将检测到的用户输入的食品特征进行组合,得到食品特征。Wherein, the publishing interface includes multiple food features on each food dimension. After the second terminal displays the publishing interface, the user can view a variety of food features on each food dimension in the publishing interface. The user inputs the food features based on each food dimension, and the second terminal detects the food input by the user. The features are combined to obtain food features.

第二种:第二终端通过传感器获取食品特征。The second type: the second terminal acquires the characteristics of the food through the sensor.

在本申请实施例中,第二终端包括传感器,若用户需要检测待发布食品的食品特征,则将该第二终端接近待发布食品,进而第二终端通过包括的传感器对待发布食品进行检测,以得到待发布食品的食品特征。In the embodiment of the present application, the second terminal includes a sensor. If the user needs to detect the food characteristics of the food to be released, the second terminal is approached to the food to be released, and then the second terminal detects the food to be released through the included sensor to detect the food to be released. Get the food characteristics of the food to be released.

在一些实施例中,该传感器包括气味传感器或滋味传感器中的至少一种。该气味传感器用于检测食品的气味。滋味传感器用于检测食品的滋味。In some embodiments, the sensor includes at least one of an odor sensor or a taste sensor. The smell sensor is used to detect the smell of food. The taste sensor is used to detect the taste of food.

可选地,若传感器包括气味传感器,则第二终端通过该气味传感器对待发布食品进行检测,得到气味特征,也即是食品特征中包括气味特征。Optionally, if the sensor includes an odor sensor, the second terminal detects the food to be released through the odor sensor to obtain the odor feature, that is, the food feature includes the odor feature.

可选地,若传感器包括滋味传感器,则第二终端通过该滋味传感器对待发布食品进行检测,得到滋味特征,也即是食品特征中包括滋味特征。Optionally, if the sensor includes a taste sensor, the second terminal detects the food to be released through the taste sensor to obtain the taste feature, that is, the food feature includes the taste feature.

702、第二终端向服务器发送食品发布请求,食品发布请求携带食品对应的食品对象和食品对象对应的食品特征。702. The second terminal sends a food release request to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object.

703、服务器接收第二终端发送的食品发布请求。703. The server receives the food release request sent by the second terminal.

704、服务器将食品对象和食品对象对应的食品特征存储于食品特征数据库中。704. The server stores the food object and the food feature corresponding to the food object in the food feature database.

在本申请实施例中,服务器接收第二终端发送的食品发布请求,确定第二终端需要发布该食品发布请求中包括的食品对象,因此服务器将食品对象和该食品对象对应的食品特征存储于食品特征数据库中。In the embodiment of the present application, the server receives the food release request sent by the second terminal, and determines that the second terminal needs to release the food object included in the food release request, so the server stores the food object and the food feature corresponding to the food object in the food feature database.

需要说明的是,本申请实施例仅是以第二终端通过气味传感器和滋味传感器获取食品的气味特征和滋味特征为例进行说明。在另一实施例中,第二终端将采用传感器检测到的食品特征发送给服务器后,服务器还会基于特征转换模型将接收的食品特征的格式进行转换,得到转换后的食品特征,存储食品对象和该食品对象对应的转换后的食品特征。并且本申请实施例的转换方式与上述图5实施例中步骤504类似,在此不再赘述。It should be noted that, the embodiment of the present application is only described by taking the second terminal acquiring the smell feature and the taste feature of the food through the smell sensor and the taste sensor as an example. In another embodiment, after the second terminal sends the food features detected by the sensor to the server, the server also converts the format of the received food features based on the feature conversion model, obtains the converted food features, and stores the food objects. The transformed food feature corresponding to this food object. Moreover, the conversion method in this embodiment of the present application is similar to step 504 in the above-mentioned embodiment of FIG. 5 , and details are not described herein again.

本申请实施例提供的方法,食品特征包括气味特征和滋味特征中的至少一种,气味特征指示食品的气味,而滋味特征指示食品的滋味,通过食品特征来表示难以用文字准确描述的气味和滋味,不仅扩展了食品的表达方式,而且通过食品特征可以准确表达出食品的气味和滋味,因此第二终端将食品对象和该食品对象对应的食品特征存储于服务器后,可以供用户根据食品特征搜索匹配的食品,在提高了描述食品的气味和滋味的情况下,提高了搜索食品的准确性。In the method provided by the embodiments of the present application, the food feature includes at least one of an odor feature and a taste feature, the odor feature indicates the smell of the food, and the taste feature indicates the taste of the food, and the food feature is used to represent the smell and Taste, not only expands the expression of food, but also accurately expresses the smell and taste of food through food features. Therefore, after the second terminal stores the food object and the food features corresponding to the food object in the server, it can be used by users according to the food features. Searching for matching foods improves the accuracy of searching for foods with improved descriptions of the smell and taste of the foods.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, which will not be repeated here.

综合上述图4实施例和图5实施例,以使第一终端、第二终端和服务器之间可以采用如图8所示的方法搜索食品。先对不同口味的食品进行气味和滋味采集,获取第一气味特征和第一滋味特征,再输入到特征转换模型中,得到数字化的气味特征和滋味特征,另外还会通过人工对食品进行评审,得到样本气味特征和样本滋味特征,进而基于得到的数字化的气味特征和滋味特征、样本气味特征和样本滋味特征对特征转换模型进行训练,得到训练后的特征转换模型。第二终端通过传感器采集待发布食品的第二食品特征,或者通过发布界面输入待发布食品的第二食品特征,将待发布食品的第二食品特征发送给服务器,由服务器将食品对象和食品对象对应的食品特征存储。第一终端通过传感器采集待搜索食品的第一食品特征,或者通过搜索界面输入待搜索食品的第一食品特征,将第一食品特征发送给服务器,由服务器根据第一食品特征进行搜索,得到与第一食品匹配的食品对象,再将食品对象发送给第一终端。Combining the above embodiment in FIG. 4 and the embodiment in FIG. 5 , the method shown in FIG. 8 can be used to search for food among the first terminal, the second terminal and the server. First, the smell and taste of food with different tastes are collected to obtain the first smell feature and first taste feature, and then input into the feature conversion model to obtain the digital smell feature and taste feature. In addition, the food will be reviewed manually. The sample smell feature and the sample taste feature are obtained, and then the feature transformation model is trained based on the obtained digital smell feature and taste feature, the sample smell feature and the sample taste feature, and the trained feature transformation model is obtained. The second terminal collects the second food characteristic of the food to be released through the sensor, or inputs the second food characteristic of the food to be released through the release interface, and sends the second food characteristic of the food to be released to the server, and the server sends the food object and the food object to the server. The corresponding food features are stored. The first terminal collects the first food feature of the food to be searched through the sensor, or inputs the first food feature of the food to be searched through the search interface, sends the first food feature to the server, and the server searches according to the first food feature, and obtains the same value as the first food feature. The food object matched with the first food is sent to the first terminal.

本申请提供的方法应用于外卖配送场景中,若用户需要寻找满足自己要求的气味和滋味的食品,则采用本申请实施例提供的方法,获取食品特征,根据该食品特征进行搜索,以得到与该食品特征匹配的食品对象,再根据得到的食品对象生成食品配送订单。The method provided by the present application is applied in the takeaway delivery scenario. If the user needs to find food with a smell and taste that meets his/her own requirements, the method provided in the embodiment of the present application is used to obtain the food features, and a search is performed according to the food features to obtain the same The food object matched with the food feature generates a food delivery order according to the obtained food object.

图9是本申请实施例提供的一种食品对象搜索装置的结构示意图。参见图9,该装置包括:FIG. 9 is a schematic structural diagram of a food object search device provided by an embodiment of the present application. Referring to Figure 9, the device includes:

获取模块901,用于获取当前输入的第一食品特征,第一食品特征包括第一气味特征或第一滋味特征中的至少一种,第一气味特征包括至少一个气味维度上的食品特征,第一滋味特征包括至少一个滋味维度上的食品特征;The acquisition module 901 is used to acquire the first food feature of the current input, the first food feature includes at least one of the first smell feature or the first taste feature, the first smell feature includes the food feature on at least one smell dimension, the first a taste feature includes food features in at least one taste dimension;

发送模块902,用于向服务器发送食品搜索请求,食品搜索请求携带第一食品特征;A sending module 902, configured to send a food search request to the server, where the food search request carries the first food feature;

接收模块903,用于接收服务器发送的食品对象,食品对象为与第一食品特征匹配的第二食品特征对应的食品对象。The receiving module 903 is configured to receive the food object sent by the server, where the food object is a food object corresponding to the second food feature matching the first food feature.

在一些实施例中,参见图10,获取模块901,包括:In some embodiments, referring to FIG. 10 , the acquisition module 901 includes:

显示单元9011,用于显示搜索界面,搜索界面包括每个食品维度上的多种食品特征;The display unit 9011 is used to display a search interface, and the search interface includes a variety of food features on each food dimension;

组合单元9012,用于将搜索界面中被选中的食品特征进行组合,得到第一食品特征。The combining unit 9012 is configured to combine the selected food features in the search interface to obtain a first food feature.

在一些实施例中,第一食品特征包括第一气味特征,获取模块901,用于通过气味传感器对待搜索食品进行检测,得到第一气味特征。In some embodiments, the first food feature includes a first odor feature, and the acquiring module 901 is configured to detect the food to be searched by an odor sensor to obtain the first odor feature.

在一些实施例中,第一食品特征包括第一滋味特征,获取模块901,用于通过滋味传感器对待搜索食品进行检测,得到第一滋味特征。In some embodiments, the first food feature includes a first taste feature, and the acquiring module 901 is configured to detect the food to be searched by a taste sensor to obtain the first taste feature.

在一些实施例中,参见图10,装置还包括:In some embodiments, referring to FIG. 10, the apparatus further includes:

显示模块904,用于显示食品对象;a display module 904 for displaying food objects;

添加模块905,用于响应于对食品对象的选取操作,将食品对象添加至目标列表中;或者,The adding module 905 is configured to add the food object to the target list in response to the selection operation on the food object; or,

生成模块906,用于响应于对食品对象的确认操作,生成食品配送订单,食品配送订单包含食品对象,食品配送订单用于指示配送食品对象指代的食品。The generating module 906 is configured to generate a food delivery order in response to the confirmation operation on the food object, where the food delivery order includes the food object, and the food delivery order is used to indicate the food to which the delivered food object refers.

需要说明的是:上述实施例提供的食品对象搜索装置在进行食品搜索时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的食品对象搜索装置的实施例与食品对象搜索方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the food object search device provided by the above embodiment performs food search, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules as required. , that is, dividing the internal structure of the computer device into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the food object search device provided by the above embodiments and the food object search method embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

图11是本申请实施例提供的一种食品对象搜索装置的结构示意图。参见图11,该装置包括:FIG. 11 is a schematic structural diagram of a food object search device provided by an embodiment of the present application. Referring to Figure 11, the device includes:

接收模块1101,用于接收终端发送的食品搜索请求,食品搜索请求携带第一食品特征,第一食品特征包括第一气味特征或第一滋味特征中的至少一种,第一气味特征包括至少一个气味维度上的食品特征,第一滋味特征包括至少一个滋味维度上的食品特征;The receiving module 1101 is configured to receive a food search request sent by a terminal, where the food search request carries a first food feature, the first food feature includes at least one of a first smell feature or a first taste feature, and the first smell feature includes at least one food features on the smell dimension, the first taste feature includes food features on at least one taste dimension;

搜索模块1102,用于响应于食品搜索请求,从食品特征数据库中,搜索与第一食品特征匹配的第二食品特征;a search module 1102, configured to search for a second food feature matching the first food feature from the food feature database in response to the food search request;

发送模块1103,用于向终端发送第二食品特征对应的食品对象。The sending module 1103 is configured to send the food object corresponding to the second food feature to the terminal.

在一些实施例中,参见图12,装置还包括:In some embodiments, referring to FIG. 12 , the apparatus further includes:

接收模块1101,还用于接收第二终端发送的食品发布请求,食品发布请求携带食品对象和食品对象对应的第二食品特征;The receiving module 1101 is further configured to receive a food release request sent by the second terminal, where the food release request carries the food object and the second food feature corresponding to the food object;

存储模块1104,用于将食品对象和食品对象对应的第二食品特征存储于食品特征数据库中。The storage module 1104 is configured to store the food object and the second food feature corresponding to the food object in the food feature database.

在一些实施例中,食品搜索请求包括第一气味特征,第一气味特征由第一终端通过气味传感器对待搜索食品进行检测得到;参见图12,搜索模块1102,包括:In some embodiments, the food search request includes a first smell feature, and the first smell feature is obtained by detecting the food to be searched by the first terminal through the smell sensor; referring to FIG. 12 , the search module 1102 includes:

转换单元11021,用于响应于食品搜索请求,基于特征转换模型,对第一气味特征进行转换,得到第三气味特征,第一气味特征属于第一格式,第三气味特征属于第二格式;The conversion unit 11021 is configured to convert the first odor feature based on the feature conversion model in response to the food search request to obtain a third odor feature, where the first odor feature belongs to the first format, and the third odor feature belongs to the second format;

搜索单元11022,用于从食品特征数据库中,搜索与第三气味特征匹配的第二气味特征。The searching unit 11022 is configured to search for the second odor feature matching the third odor feature from the food feature database.

在一些实施例中,参见图12,装置还包括:In some embodiments, referring to FIG. 12 , the apparatus further includes:

获取模块1105,用于获取样本食品的第一样本气味特征和第二样本气味特征,第一样本气味特征属于第一格式,第二样本气味特征属于第二格式;The acquiring module 1105 is used for acquiring the first sample odor feature and the second sample odor feature of the sample food, the first sample odor feature belongs to the first format, and the second sample odor feature belongs to the second format;

训练模块1106,用于基于第一样本气味特征和第二样本气味特征,对特征转换模型进行训练,得到训练后的特征转换模型。The training module 1106 is configured to train the feature conversion model based on the first sample odor feature and the second sample odor feature to obtain a trained feature conversion model.

在一些实施例中,食品搜索请求包括第一滋味特征,第一滋味特征由第一终端通过滋味传感器对待搜索食品进行检测得到;参见图12,搜索模块1102,包括:In some embodiments, the food search request includes a first taste feature, and the first taste feature is obtained by detecting the food to be searched by the first terminal through the taste sensor; referring to FIG. 12 , the search module 1102 includes:

转换单元11021,用于响应于食品搜索请求,基于特征转换模型,对第一滋味特征进行转换,得到第三滋味特征,第一滋味特征属于第三格式,第三滋味特征属于第四格式;The conversion unit 11021 is used to convert the first taste feature based on the feature conversion model in response to the food search request to obtain a third taste feature, the first taste feature belongs to the third format, and the third taste feature belongs to the fourth format;

搜索单元11022,用于从食品特征数据库中,搜索与第三滋味特征匹配的第二滋味特征。The searching unit 11022 is configured to search for the second flavor feature matching the third flavor feature from the food feature database.

在一些实施例中,参见图12,装置还包括:In some embodiments, referring to FIG. 12 , the apparatus further includes:

获取模块1105,用于获取样本食品的第一样本滋味特征和第二样本滋味特征,第一样本滋味特征属于第三格式,第二样本滋味特征属于第四格式;The acquisition module 1105 is used to acquire the first sample taste feature and the second sample taste feature of the sample food, the first sample taste feature belongs to the third format, and the second sample taste feature belongs to the fourth format;

训练模块1106,用于基于第一样本滋味特征和第二样本滋味特征,对特征转换模型进行训练,得到训练后的特征转换模型。The training module 1106 is configured to train the feature conversion model based on the taste feature of the first sample and the taste feature of the second sample to obtain a trained feature conversion model.

在一些实施例中,参见图12,搜索模块1102,包括:In some embodiments, referring to Figure 12, a search module 1102 includes:

获取单元11023,用于获取第一食品特征与第二食品特征之间的匹配度;Obtaining unit 11023, for obtaining the matching degree between the first food feature and the second food feature;

选取单元11024,用于从食品特征数据库中,选取匹配度最大的至少一个第二食品特征。The selecting unit 11024 is configured to select at least one second food feature with the highest matching degree from the food feature database.

在一些实施例中,第一食品特征包括第一气味特征,第二食品特征包括第二气味特征;获取单元11023,用于:In some embodiments, the first food feature includes a first smell feature, and the second food feature includes a second smell feature; the acquiring unit 11023 is configured to:

获取第一气味特征与第二气味特征之间的距离;obtaining the distance between the first odor feature and the second odor feature;

将距离与参考距离之间的比例,确定为第一气味特征与第二气味特征之间的匹配度。The ratio between the distance and the reference distance is determined as the matching degree between the first odor feature and the second odor feature.

在一些实施例中,第一食品特征包括第一滋味特征,第二食品特征包括第二滋味特征;获取单元11023,用于:In some embodiments, the first food feature includes a first taste feature, and the second food feature includes a second taste feature; the acquiring unit 11023 is configured to:

确定第一滋味特征在味觉雷达图中所占的第一区域;determining the first area occupied by the first taste feature in the taste radar map;

确定第二滋味特征在味觉雷达图中所占的第二区域;determining the second area occupied by the second taste feature in the taste radar map;

获取第一区域与第二区域的重合区域的面积;Obtain the area of the overlapping area of the first area and the second area;

将面积与第二区域的面积之间的比例确定为第一滋味特征与第二滋味特征之间的匹配度。The ratio between the area and the area of the second region is determined as the match between the first taste feature and the second taste feature.

在一些实施例中,第一食品特征包括第一气味特征和第一滋味特征,第二食品特征包括第二气味特征和第二滋味特征;获取单元11023,用于:In some embodiments, the first food feature includes a first smell feature and a first taste feature, and the second food feature includes a second smell feature and a second taste feature; the obtaining unit 11023 is used for:

确定第一气味特征与第二气味特征之间的第一匹配度;determining a first degree of match between the first odor characteristic and the second odor characteristic;

确定第一滋味特征与第二滋味特征之间的第二匹配度;determining a second degree of matching between the first taste feature and the second taste feature;

对第一匹配度和第二匹配度进行加权处理,得到第一食品特征与第二食品特征之间的匹配度。The first matching degree and the second matching degree are weighted to obtain the matching degree between the first food feature and the second food feature.

需要说明的是:上述实施例提供的食品对象搜索装置在进行食品搜索时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的食品对象搜索装置的实施例与食品对象搜索方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the food object search device provided by the above embodiment performs food search, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules as required. , that is, dividing the internal structure of the computer device into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the food object search device provided by the above embodiments and the food object search method embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

图13是本申请实施例提供的一种食品对象发布装置的结构示意图。参见图13,该装置包括:FIG. 13 is a schematic structural diagram of an apparatus for releasing food objects according to an embodiment of the present application. Referring to Figure 13, the device includes:

获取模块1301,用于获取当前输入的食品特征,食品特征包括当前食品的气味特征或滋味特征中的至少一种,气味特征包括至少一个气味维度上的食品特征,滋味特征包括至少一个滋味维度上的食品特征;The acquisition module 1301 is used to acquire the current input food feature, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes at least one taste dimension. food characteristics;

发送模块1302,用于向服务器发送食品发布请求,食品发布请求携带食品对应的食品对象和食品对象对应的食品特征。The sending module 1302 is configured to send a food release request to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object.

在一些实施例中,参见图14,获取模块1301,包括:In some embodiments, referring to FIG. 14 , the acquisition module 1301 includes:

显示单元13011,用于显示发布界面,发布界面包括每个食品维度上的多种食品特征;The display unit 13011 is used to display a publishing interface, and the publishing interface includes a variety of food features on each food dimension;

组合单元13012,用于将发布界面中被选中的食品特征进行组合,得到食品特征。The combining unit 13012 is configured to combine the selected food features in the publishing interface to obtain the food features.

在一些实施例中,食品特征包括气味特征,获取模块1301,用于通过气味传感器对待发布食品进行检测,得到气味特征。In some embodiments, the food feature includes an odor feature, and the acquiring module 1301 is configured to detect the food to be released through an odor sensor to obtain the odor feature.

在一些实施例中,食品特征包括滋味特征,获取模块1301,用于通过滋味传感器对待发布食品进行检测,得到滋味特征。In some embodiments, the food feature includes a taste feature, and the acquiring module 1301 is configured to detect the food to be released through the taste sensor to obtain the taste feature.

需要说明的是:上述实施例提供的食品对象发布装置在发布食品对象时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的食品对象发布装置的实施例与食品对象发布方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the food object release apparatus provided in the above embodiments releases food objects, only the division of the above functional modules is used as an example for illustration. In practical applications, the above function distribution can be completed by different functional modules as required. , that is, dividing the internal structure of the computer device into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the apparatus for releasing food objects provided in the above embodiments and the embodiments of the method for releasing food objects belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

图15是本申请实施例提供的一种终端的结构示意图。该终端1500可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group AudioLayer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts GroupAudio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑、台式电脑、头戴式设备,或其他任意智能终端。终端1500还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 15 is a schematic structural diagram of a terminal provided by an embodiment of the present application. The terminal 1500 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group AudioLayer III, Moving Picture Experts Group AudioLayer III), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer IV) Compression standard audio layer 4) Player, notebook computer, desktop computer, head-mounted device, or any other intelligent terminal. Terminal 1500 may also be called user equipment, portable terminal, laptop terminal, desktop terminal, and the like by other names.

终端1500包括有:处理器1501和存储器1502。The terminal 1500 includes: a processor 1501 and a memory 1502 .

处理器1501可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1501可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1501也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1501可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1501还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1501 may use at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish. The processor 1501 may also include a main processor and a co-processor. The main processor is a processor used to process data in the wake-up state, also called a CPU (Central Processing Unit, central processing unit); A low-power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 1501 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.

存储器1502可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1502还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1502中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1501所具有以实现本申请中方法实施例提供的食品对象搜索方法或食品对象发布方法。Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, a non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction for being possessed by the processor 1501 to implement the food object provided by the method embodiments of the present application Search method or food object release method.

在一些实施例中,终端1500还可选包括有:外围设备接口1503和至少一个外围设备。处理器1501、存储器1502和外围设备接口1503之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1503相连。具体地,外围设备包括:射频电路1504、显示屏1505、摄像头1506、音频电路1507、定位组件1508和电源1509中的至少一种。In some embodiments, the terminal 1500 may optionally further include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1503 through a bus, a signal line or a circuit board. Specifically, the peripheral devices include: at least one of a radio frequency circuit 1504 , a display screen 1505 , a camera 1506 , an audio circuit 1507 , a positioning component 1508 and a power supply 1509 .

外围设备接口1503可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1501和存储器1502。在一些实施例中,处理器1501、存储器1502和外围设备接口1503被集成在同一芯片或电路板上;在一些其他实施例中,处理器1501、存储器1502和外围设备接口1503中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 1503 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1501 and the memory 1502 . In some embodiments, processor 1501, memory 1502, and peripherals interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 1501, memory 1502, and peripherals interface 1503 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.

射频电路1504用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1504通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1504将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1504包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1504可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及8G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1504还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 1504 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. The radio frequency circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, radio frequency circuitry 1504 includes an antenna system, an RF transceiver, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and the like. The radio frequency circuit 1504 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to, metropolitan area networks, mobile communication networks of various generations (2G, 3G, 4G and 8G), wireless local area networks and/or WiFi (Wireless Fidelity, wireless fidelity) networks. In some embodiments, the radio frequency circuit 1504 may further include a circuit related to NFC (Near Field Communication, near field communication), which is not limited in this application.

显示屏1505用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、食品及其它们的任意组合。当显示屏1505是触摸显示屏时,显示屏1505还具有采集在显示屏1505的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1501进行处理。此时,显示屏1505还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1505可以为一个,设置终端1500的前面板;在另一些实施例中,显示屏1505可以为至少两个,分别设置在终端1500的不同表面或呈折叠设计;在再一些实施例中,显示屏1505可以是柔性显示屏,设置在终端1500的弯曲表面上或折叠面上。甚至,显示屏1505还可以设置成非矩形的不规则图形,也即异形屏。显示屏1505可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 1505 is used for displaying UI (User Interface, user interface). The UI can include graphics, text, icons, food items, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to acquire touch signals on or above the surface of the display screen 1505 . The touch signal can be input to the processor 1501 as a control signal for processing. At this time, the display screen 1505 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 1505, which is provided on the front panel of the terminal 1500; in other embodiments, there may be at least two display screens 1505, which are respectively arranged on different surfaces of the terminal 1500 or in a folded design; In still other embodiments, the display screen 1505 may be a flexible display screen disposed on a curved surface or a folding surface of the terminal 1500 . Even, the display screen 1505 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode).

摄像头组件1506用于采集图像或食品。可选地,摄像头组件1506包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件1506还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 1506 is used to capture images or food. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, the main camera It is integrated with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.

音频电路1507可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1501进行处理,或者输入至射频电路1504以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端1500的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1501或射频电路1504的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1507还可以包括耳机插孔。Audio circuitry 1507 may include a microphone and speakers. The microphone is used to collect the sound waves of the user and the environment, convert the sound waves into electrical signals, and input them to the processor 1501 for processing, or to the radio frequency circuit 1504 to realize voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively disposed in different parts of the terminal 1500 . The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1501 or the radio frequency circuit 1504 into sound waves. The loudspeaker can be a traditional thin-film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for distance measurement and other purposes. In some embodiments, the audio circuit 1507 may also include a headphone jack.

定位组件1508用于定位终端1500的当前地理位置,以实现导航或LBS(LocationBased Service,基于位置的服务)。定位组件1508可以是基于美国的GPS(GlobalPositioning System,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯定位系统或欧盟的伽利略定位系统的定位组件。The positioning component 1508 is used to locate the current geographic location of the terminal 1500 to implement navigation or LBS (Location Based Service, location-based service). The positioning component 1508 may be a positioning component based on the GPS (Global Positioning System, global positioning system) of the United States, the Beidou system of China, the Grenas positioning system of Russia, or the Galileo positioning system of the European Union.

电源1509用于为终端1500中的各个组件进行供电。电源1509可以是交流电、直流电、一次性电池或可充电电池。当电源1509包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。The power supply 1509 is used to power various components in the terminal 1500 . The power source 1509 may be alternating current, direct current, primary batteries, or rechargeable batteries. When the power source 1509 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

在一些实施例中,终端1500还包括有一个或多个传感器1510。该一个或多个传感器1510包括但不限于:加速度传感器1511、陀螺仪传感器1512、压力传感器1513、指纹传感器1514、光学传感器1515以及接近传感器1516。In some embodiments, the terminal 1500 also includes one or more sensors 1510 . The one or more sensors 1510 include, but are not limited to, an acceleration sensor 1511 , a gyro sensor 1512 , a pressure sensor 1513 , a fingerprint sensor 1514 , an optical sensor 1515 , and a proximity sensor 1516 .

加速度传感器1511可以检测以终端1500建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1511可以用于检测重力加速度在三个坐标轴上的分量。处理器1501可以根据加速度传感器1511采集的重力加速度信号,控制触摸显示屏1505以横向视图或纵向视图进行用户界面的显示。加速度传感器1511还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 1511 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1500 . For example, the acceleration sensor 1511 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1501 can control the touch display screen 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1511 . The acceleration sensor 1511 can also be used for game or user movement data collection.

陀螺仪传感器1512可以检测终端1500的机体方向及转动角度,陀螺仪传感器1512可以与加速度传感器1511协同采集用户对终端1500的3D动作。处理器1501根据陀螺仪传感器1512采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 1512 can detect the body direction and rotation angle of the terminal 1500 , and the gyroscope sensor 1512 can cooperate with the acceleration sensor 1511 to collect 3D actions of the user on the terminal 1500 . The processor 1501 can implement the following functions according to the data collected by the gyro sensor 1512 : motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

压力传感器1513可以设置在终端1500的侧边框和/或显示屏1505的下层。当压力传感器1513设置在终端1500的侧边框时,可以检测用户对终端1500的握持信号,由处理器1501根据压力传感器1513采集的握持信号进行左右手识别或快捷操作。当压力传感器1513设置在显示屏1505的下层时,由处理器1501根据用户对显示屏1505的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 1513 may be disposed on the side frame of the terminal 1500 and/or the lower layer of the display screen 1505 . When the pressure sensor 1513 is disposed on the side frame of the terminal 1500, the user's holding signal of the terminal 1500 can be detected, and the processor 1501 performs left and right hand identification or shortcut operations according to the holding signal collected by the pressure sensor 1513. When the pressure sensor 1513 is disposed on the lower layer of the display screen 1505, the processor 1501 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1505. The operability controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

指纹传感器1514用于采集用户的指纹,由处理器1501根据指纹传感器1514采集到的指纹识别用户的身份,或者,由指纹传感器1514根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器1501授权该用户具有相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1514可以被设置终端1500的正面、背面或侧面。当终端1500上设置有物理按键或厂商Logo时,指纹传感器1514可以与物理按键或厂商标志集成在一起。The fingerprint sensor 1514 is used to collect the user's fingerprint, and the processor 1501 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 1514, or the fingerprint sensor 1514 identifies the user's identity according to the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1514 may be provided on the front, back or side of the terminal 1500 . When the terminal 1500 is provided with physical buttons or a manufacturer's logo, the fingerprint sensor 1514 may be integrated with the physical buttons or the manufacturer's logo.

光学传感器1515用于采集环境光强度。在一个实施例中,处理器1501可以根据光学传感器1515采集的环境光强度,控制显示屏1505的显示亮度。具体地,当环境光强度较高时,调高显示屏1505的显示亮度;当环境光强度较低时,调低显示屏1505的显示亮度。在另一个实施例中,处理器1501还可以根据光学传感器1515采集的环境光强度,动态调整摄像头组件1506的拍摄参数。Optical sensor 1515 is used to collect ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the display screen 1505 according to the ambient light intensity collected by the optical sensor 1515 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the display screen 1505 is decreased. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameters of the camera assembly 1506 according to the ambient light intensity collected by the optical sensor 1515 .

接近传感器1516,也称距离传感器,通常设置在终端1500的前面板。接近传感器1516用于采集用户与终端1500的正面之间的距离。在一个实施例中,当接近传感器1516检测到用户与终端1500的正面之间的距离逐渐变小时,由处理器1501控制显示屏1505从亮屏状态切换为息屏状态;当接近传感器1516检测到用户与终端1500的正面之间的距离逐渐变大时,由处理器1501控制显示屏1505从息屏状态切换为亮屏状态。A proximity sensor 1516, also called a distance sensor, is usually provided on the front panel of the terminal 1500. The proximity sensor 1516 is used to collect the distance between the user and the front of the terminal 1500 . In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front of the terminal 1500 gradually decreases, the processor 1501 controls the display screen 1505 to switch from the bright screen state to the off screen state; when the proximity sensor 1516 detects When the distance between the user and the front of the terminal 1500 gradually increases, the processor 1501 controls the display screen 1505 to switch from the screen-off state to the screen-on state.

本领域技术人员可以理解,图15中示出的结构并不构成对终端1500的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 15 does not constitute a limitation on the terminal 1500, and may include more or less components than the one shown, or combine some components, or adopt different component arrangements.

图16是本申请实施例提供的一种服务器的结构示意图,该服务器1600可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(Central ProcessingUnits,CPU)1601和一个或一个以上的存储器1602,其中,所述存储器1602中存储有至少一条程序代码,所述至少一条程序代码由所述处理器1601加载并执行以实现上述各个方法实施例提供的方法。当然,该服务器还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器还可以包括其他用于实现设备功能的部件,在此不做赘述。16 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 1600 may vary greatly due to different configurations or performance, and may include one or more processors (Central Processing Units, CPU) 1601 and one or more More than one memory 1602, wherein the memory 1602 stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor 1601 to implement the methods provided by the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the server may also include other components for implementing device functions, which will not be described here.

服务器1600可以用于执行上述食品对象搜索方法或食品对象发布方法中服务器所执行的步骤。The server 1600 may be used to execute the steps performed by the server in the above-mentioned food object search method or food object release method.

本申请实施例还提供了一种终端,终端包括处理器和存储器,存储器中存储有至少一条程序代码,至少一条程序代码由处理器加载并执行,以实现如食品对象搜索方法中所执行的操作,或者以实现如食品对象发布方法中所执行的操作。An embodiment of the present application further provides a terminal, the terminal includes a processor and a memory, the memory stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor to implement operations such as those performed in the food object search method , or to implement an operation as performed in the release method of the food object.

本申请实施例还提供了一种服务器,服务器包括处理器和存储器,存储器中存储有至少一条程序代码,至少一条程序代码由处理器加载并执行,以实现如食品对象搜索方法中所执行的操作。An embodiment of the present application further provides a server, the server includes a processor and a memory, the memory stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor, so as to implement operations such as those performed in the food object search method .

本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有至少一条程序代码,至少一条程序代码由处理器加载并执行,以实现如食品对象搜索方法中所执行的操作,或者以实现如食品对象发布方法中所执行的操作。Embodiments of the present application further provide a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and at least one piece of program code is loaded and executed by a processor, so as to implement the method as executed in the food object search method operation, or to implement an operation as performed in the release method of the food object.

本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序程序,该计算机程序被处理器执行时实现如食品对象搜索方法中所执行的操作,或者以实现如食品对象发布方法中所执行的操作。The embodiments of the present application also provide a computer program product, the computer program product includes a computer program program, and when the computer program is executed by a processor, realizes operations such as those performed in the method for searching for food objects, or for example, a method for releasing food objects. operations performed in .

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (15)

1.一种食品对象搜索方法,其特征在于,所述方法包括:1. a food object search method, is characterized in that, described method comprises: 获取当前输入的第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;Obtain the first food feature of the current input, the first food feature includes at least one of a first smell feature or a first taste feature, the first smell feature includes a food feature on at least one smell dimension, the first smell feature a taste feature includes food features in at least one taste dimension; 向服务器发送食品搜索请求,所述食品搜索请求携带所述第一食品特征;sending a food search request to the server, the food search request carrying the first food feature; 接收所述服务器发送的食品对象,所述食品对象为与所述第一食品特征匹配的第二食品特征对应的食品对象。A food object sent by the server is received, where the food object is a food object corresponding to a second food feature matching the first food feature. 2.根据权利要求1所述的方法,其特征在于,所述获取当前输入的第一食品特征,包括:2. The method according to claim 1, wherein the obtaining the first food feature of the current input comprises: 显示搜索界面,所述搜索界面包括每个食品维度上的多种食品特征;Displaying a search interface, the search interface includes multiple food features on each food dimension; 将所述搜索界面中被选中的食品特征进行组合,得到所述第一食品特征。Combining the selected food features in the search interface to obtain the first food feature. 3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, wherein the method further comprises: 显示所述食品对象;displaying the food object; 响应于对所述食品对象的选取操作,将所述食品对象添加至目标列表中;或者,adding the food object to a target list in response to a selection operation on the food object; or, 响应于对所述食品对象的确认操作,生成食品配送订单,所述食品配送订单包含所述食品对象,所述食品配送订单用于指示配送所述食品对象指代的食品。In response to the confirmation operation on the food object, a food delivery order is generated, the food delivery order including the food object, the food delivery order indicating delivery of the food item to which the food object refers. 4.一种食品对象搜索方法,其特征在于,所述方法包括:4. A food object search method, characterized in that the method comprises: 接收终端发送的食品搜索请求,所述食品搜索请求携带第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;Receive a food search request sent by the terminal, the food search request carries a first food feature, the first food feature includes at least one of a first smell feature or a first taste feature, and the first smell feature includes at least one food features in the smell dimension, the first taste features include food features in at least one taste dimension; 响应于所述食品搜索请求,从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征;in response to the food search request, searching the food characteristic database for a second food characteristic that matches the first food characteristic; 向所述终端发送所述第二食品特征对应的食品对象。Send the food object corresponding to the second food feature to the terminal. 5.根据权利要求4所述的方法,其特征在于,所述从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征,包括:5. The method according to claim 4, wherein the searching for the second food feature matching the first food feature from the food feature database comprises: 获取所述第一食品特征与所述第二食品特征之间的匹配度;obtaining the matching degree between the first food feature and the second food feature; 从所述食品特征数据库中,选取所述匹配度最大的至少一个所述第二食品特征。From the food feature database, at least one of the second food features with the highest matching degree is selected. 6.根据权利要求5所述的方法,其特征在于,所述第一食品特征包括所述第一气味特征,所述第二食品特征包括第二气味特征;所述获取所述第一食品特征与所述第二食品特征之间的匹配度,包括:6. The method according to claim 5, wherein the first food characteristic comprises the first smell characteristic, the second food characteristic comprises a second smell characteristic; the obtaining the first food characteristic The degree of matching with the second food feature, including: 获取所述第一气味特征与所述第二气味特征之间的距离;obtaining the distance between the first odor feature and the second odor feature; 将所述距离与参考距离之间的比例,确定为所述第一气味特征与所述第二气味特征之间的匹配度。The ratio between the distance and the reference distance is determined as the matching degree between the first smell feature and the second smell feature. 7.根据权利要求5所述的方法,其特征在于,所述第一食品特征包括所述第一滋味特征,所述第二食品特征包括第二滋味特征;所述获取所述第一食品特征与所述第二食品特征之间的匹配度,包括:7. The method according to claim 5, wherein the first food feature comprises the first taste feature, the second food feature comprises a second taste feature; the acquiring the first food feature The degree of matching with the second food feature, including: 确定所述第一滋味特征在味觉雷达图中所占的第一区域;determining the first area occupied by the first taste feature in the taste radar map; 确定所述第二滋味特征在所述味觉雷达图中所占的第二区域;determining a second area occupied by the second taste feature in the taste radar map; 获取所述第一区域与所述第二区域的重合区域的面积;obtaining the area of the overlapping area of the first area and the second area; 将所述面积与所述第二区域的面积之间的比例确定为所述第一滋味特征与所述第二滋味特征之间的匹配度。The ratio between the area and the area of the second region is determined as the matching degree between the first taste feature and the second taste feature. 8.一种食品对象发布方法,其特征在于,所述方法包括:8. A method for releasing food objects, characterized in that the method comprises: 获取当前输入的食品特征,所述食品特征包括当前食品的气味特征或滋味特征中的至少一种,所述气味特征包括至少一个气味维度上的食品特征,所述滋味特征包括至少一个滋味维度上的食品特征;Obtain the food feature of the current input, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes at least one taste dimension. food characteristics; 向服务器发送食品发布请求,所述食品发布请求携带所述食品对应的食品对象和所述食品对象对应的食品特征。A food release request is sent to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object. 9.一种食品对象搜索装置,其特征在于,所述装置包括:9. A food object search device, characterized in that the device comprises: 获取模块,用于获取当前输入的第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;The acquisition module is used to acquire the first food feature of the current input, the first food feature includes at least one of the first smell feature or the first taste feature, and the first smell feature includes the food on at least one smell dimension features, the first taste features include food features on at least one taste dimension; 发送模块,用于向服务器发送食品搜索请求,所述食品搜索请求携带所述第一食品特征;a sending module, configured to send a food search request to a server, where the food search request carries the first food feature; 接收模块,用于接收所述服务器发送的食品对象,所述食品对象为与所述第一食品特征匹配的第二食品特征对应的食品对象。A receiving module, configured to receive a food object sent by the server, where the food object is a food object corresponding to a second food feature matching the first food feature. 10.一种食品对象搜索装置,其特征在于,所述装置包括:10. A food object search device, characterized in that the device comprises: 接收模块,用于接收终端发送的食品搜索请求,所述食品搜索请求携带第一食品特征,所述第一食品特征包括第一气味特征或第一滋味特征中的至少一种,所述第一气味特征包括至少一个气味维度上的食品特征,所述第一滋味特征包括至少一个滋味维度上的食品特征;The receiving module is configured to receive a food search request sent by the terminal, where the food search request carries a first food feature, and the first food feature includes at least one of a first smell feature or a first taste feature, and the first food feature includes at least one of a first smell feature or a first taste feature. The smell characteristics include food characteristics in at least one smell dimension, and the first taste characteristics include food characteristics in at least one taste dimension; 搜索模块,用于响应于所述食品搜索请求,从食品特征数据库中,搜索与所述第一食品特征匹配的第二食品特征;a search module, used to search for a second food feature matching the first food feature from the food feature database in response to the food search request; 发送模块,用于向所述终端发送所述第二食品特征对应的食品对象。A sending module, configured to send the food object corresponding to the second food feature to the terminal. 11.一种食品对象发布装置,其特征在于,所述装置包括:11. A food object release device, characterized in that the device comprises: 获取模块,用于获取当前输入的食品特征,所述食品特征包括当前食品的气味特征或滋味特征中的至少一种,所述气味特征包括至少一个气味维度上的食品特征,所述滋味特征包括至少一个滋味维度上的食品特征;The acquisition module is used to acquire the current input food feature, the food feature includes at least one of the smell feature or the taste feature of the current food, the smell feature includes the food feature on at least one smell dimension, and the taste feature includes Food characteristics in at least one flavor dimension; 发送模块,用于向服务器发送食品发布请求,所述食品发布请求携带所述食品对应的食品对象和所述食品对象对应的食品特征。The sending module is configured to send a food release request to the server, where the food release request carries a food object corresponding to the food and a food feature corresponding to the food object. 12.一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以实现如权利要求1-3任一权利要求所述的食品对象搜索方法中所执行的操作,或者以实现如权利要求8所述的食品对象发布方法中所执行的操作。12. A terminal, characterized in that the terminal comprises a processor and a memory, and at least one piece of program code is stored in the memory, and the at least one piece of program code is loaded and executed by the processor to realize the method as claimed in the claims The operation performed in the food object search method according to any one of claims 1 to 3, or the operation performed in the food object publishing method according to claim 8. 13.一种服务器,其特征在于,所述服务器包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以实现如权利要求4-7任一权利要求所述的食品对象搜索方法中所执行的操作。13. A server, characterized in that the server comprises a processor and a memory, the memory stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor to achieve the method as claimed in the claims 4-7 Operations performed in the food object search method of any one of claims 4-7. 14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以实现如权利要求1-7任一权利要求所述的食品对象搜索方法中所执行的操作,或者以实现如权利要求8所述的食品对象发布方法中所执行的操作。14. A computer-readable storage medium, characterized in that, at least one piece of program code is stored in the computer-readable storage medium, and the at least one piece of program code is loaded and executed by a processor, so as to realize as claimed in claims 1-7 The operation performed in the food object search method according to any claim, or the operation performed in the food object publishing method according to claim 8. 15.一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一权利要求所述的食品对象搜索方法所执行的操作,或者以实现如权利要求8所述的食品对象发布方法中所执行的操作。15. A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the operations performed by the food object searching method according to any one of claims 1 to 7 are implemented, or the computer program is executed in the following manner. The operations performed in the food object publishing method of claim 8 are implemented.
CN202111300003.3A 2021-11-04 2021-11-04 Food object search method, publishing method, device, equipment and medium Pending CN114092179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111300003.3A CN114092179A (en) 2021-11-04 2021-11-04 Food object search method, publishing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111300003.3A CN114092179A (en) 2021-11-04 2021-11-04 Food object search method, publishing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114092179A true CN114092179A (en) 2022-02-25

Family

ID=80298930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111300003.3A Pending CN114092179A (en) 2021-11-04 2021-11-04 Food object search method, publishing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114092179A (en)

Similar Documents

Publication Publication Date Title
CN108063981B (en) Method and device for setting attributes of live broadcast room
WO2022048398A1 (en) Multimedia data photographing method and terminal
CN112052354A (en) Video recommendation method, video display method and device and computer equipment
CN111506758A (en) Method and device for determining article name, computer equipment and storage medium
CN110750734A (en) Weather display method and device, computer equipment and computer-readable storage medium
CN111476632A (en) Method and device for displaying resources, electronic equipment and readable storage medium
CN109902089B (en) Query method and device using heterogeneous index, electronic equipment and medium
CN114329292B (en) Resource information configuration method, device, electronic device and storage medium
CN111192072A (en) User grouping method and device and storage medium
WO2021218634A1 (en) Content pushing
CN112989198B (en) Push content determination method, device, equipment and computer-readable storage medium
CN112100528B (en) Method, device, equipment and medium for training search result scoring model
CN111159551B (en) User-generated content display method and device and computer equipment
CN114296620A (en) Information interaction method, device, electronic device and storage medium
CN111782767A (en) Question and answer method, device, equipment and storage medium
CN112100437A (en) Image processing method, apparatus, electronic device, and computer-readable storage medium
CN114547429A (en) Data recommendation method, device, server and storage medium
CN112084041A (en) Resource processing method and device, electronic equipment and storage medium
CN113947687B (en) Archive generation method, device and storage medium
CN112417263B (en) Data recommendation method, device and storage medium
CN114817709A (en) Sorting method, device, equipment and computer readable storage medium
CN113139613A (en) Feature extraction method and device, electronic equipment and storage medium
CN109635153B (en) Migration path generation method, device and storage medium
CN114385854A (en) Resource recommendation method and device, electronic equipment and storage medium
CN114092179A (en) Food object search method, publishing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20220225