CN109446915A - A kind of dish information generation method, device and electronic equipment - Google Patents

A kind of dish information generation method, device and electronic equipment Download PDF

Info

Publication number
CN109446915A
CN109446915A CN201811148804.0A CN201811148804A CN109446915A CN 109446915 A CN109446915 A CN 109446915A CN 201811148804 A CN201811148804 A CN 201811148804A CN 109446915 A CN109446915 A CN 109446915A
Authority
CN
China
Prior art keywords
vegetable
information
initial
image
standard
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.)
Granted
Application number
CN201811148804.0A
Other languages
Chinese (zh)
Other versions
CN109446915B (en
Inventor
陈振兴
沈晶晶
何宜华
陈立
李杨东
庄建琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201811148804.0A priority Critical patent/CN109446915B/en
Publication of CN109446915A publication Critical patent/CN109446915A/en
Application granted granted Critical
Publication of CN109446915B publication Critical patent/CN109446915B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/413Classification of content, e.g. text, photographs or tables
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The application provides a kind of dish information generation method, comprising: obtains the menu image of the initial information including at least one vegetable;The initial information of vegetable is obtained from the menu image;According to the initial information of the vegetable, the matched standard vegetable identification information of initial information with the vegetable is obtained;The corresponding relationship between at least one information in the initial information of the standard vegetable identification information and the vegetable is established, dish information is generated.During generating dish information, the initial information of vegetable is obtained first, is obtained the matched standard vegetable identification information of initial information with vegetable later, and the two is established and is contacted, is generated dish information.The application by means of standard vegetable identification information, remove from the dish information of every course of upload is all analyzed comprehensively it is cumbersome, to achieve the purpose that operation is simplified when uploading the dish information of vast number.The dish information generated simultaneously is comprehensive and standardizes, and increases the dining experience of customer.

Description

A kind of dish information generation method, device and electronic equipment
Technical field
This application involves e-commerce fields, and in particular to a kind of dish information generation method, device and electronic equipment.
Background technique
With the quickening and improvement of living standard of modern life rhythm, food safety is asked at people's pay attention to day by day Topic.Especially in recent years, due to substance extreme enrichment, the consumption idea of people constantly upgrades, and in catering field, problem of food and clothing is already It is not the matter of utmost importance that people need to solve, instead, healthy and safe food how is selected to become more and more people The primary goal of pursuit.Therefore, it is chosen in raw material of the catering industry people to food and manufacturing process is increasingly paid attention to, and such as What allows customer to understand, and the raw material in relation to food is chosen and the information such as manufacturing process are particularly important for businessman.
Currently, the rear kitchen in most restaurants is substantially isolated with the lobby having dinner, the customer having dinner is difficult to understand in real time in lobby Raw material used in vegetable and its source, machining information only wait until the case where capable of just recognizing vegetable after vegetable serves, it is difficult to deep The characteristic and value for entering to understand vegetable it is worried safely to vegetable to often lead to customer, or even have no knowledge about vegetable after eating to be What made of, where less knowing vegetable core value.If customer wants there is good understanding to vegetable before the meal selecting, just need It wants businessman to select before the meal that the details of vegetable are electronic in customer and is shown.Traditional papery menu is not obviously able to satisfy Above-mentioned needs, it is clear that the vegetable Kucheng for formulating the dish information to specialize is good selection.
For example, be added the description in relation to Dish Features in the vegetable library in dining room, unique selection and the detailed of vegetable is prepared The information such as thin process also become a kind of method that businessman attracts customer.In previous dish information generating process, businessman is needed Menu name is inputted, characteristic introduction and input price is added by uploading vegetable picture, simultaneously because businessman Vegetable library will store miscellaneous vegetable, and upload quantity is also very huge, if per pass vegetable is all in accordance with such upload side Formula needs businessman to analyze the dish information of every course of upload comprehensively, and very time-consuming and step is also relatively complicated.
Summary of the invention
The application provides a kind of dish information generation method, device and electronic equipment, with solve dish information generate it is multiple Miscellaneous problem.
The application provides a kind of dish information generation method, comprising:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, obtains and believe with the matched standard vegetable mark of the initial information of the vegetable Breath;
Establish pair between at least one information in the initial information of the standard vegetable identification information and the vegetable It should be related to, generate dish information.
Optionally, the menu image for obtaining the initial information including at least one vegetable, comprising: obtained from image volume The menu image is obtained, alternatively, taking pictures by the menu to the initial information for including at least one vegetable, obtains the dish Single image.
Optionally, the initial information that vegetable is obtained from the menu image, comprising:
The menu image is split, the submenu image of the initial information including vegetable is obtained;
Image recognition is carried out to the submenu image, obtains the initial information of the vegetable.
Optionally, the initial information of the vegetable includes the figure of the character description information and the vegetable for the vegetable At least one of picture information;
The initial information according to the vegetable is obtained and is identified with the matched standard vegetable of the initial information of the vegetable Information, comprising:
It is mentioned from least one of the image of the character description information for the vegetable and vegetable information Take the characteristic information of the vegetable;
According to the characteristic information of the vegetable, obtains and believe with the matched standard vegetable mark of the characteristic information of the vegetable Breath.
Optionally, the characteristic information according to the vegetable obtains the matched standard of characteristic information with the vegetable Vegetable identification information, comprising:
Calculate the similarity between the characteristic information of the vegetable and at least one candidate criteria vegetable identification information;
The highest candidate criteria vegetable identification information of similarity is determined as and the matched mark of the characteristic information of the vegetable Quasi- vegetable identification information.
Optionally, the characteristic information according to the vegetable obtains the matched standard of characteristic information with the vegetable Vegetable identification information, comprising: according to the characteristic information of the vegetable and the vegetable characteristic information being obtained ahead of time and standard vegetable Corresponding relationship between identification information obtains the matched standard vegetable identification information of characteristic information with the vegetable.
Optionally, the initial information of the vegetable includes the image of the vegetable;
The initial information according to the vegetable is obtained and is identified with the matched standard vegetable of the initial information of the vegetable Information, comprising:
Calculate the vegetable image standard vegetable image corresponding at least one candidate criteria vegetable identification information it Between similarity;
The corresponding candidate criteria vegetable identification information of the highest standard vegetable image of similarity is determined as and the vegetable The matched standard vegetable identification information of characteristic information.
Optionally, the initial information of the vegetable includes the food materials letter of vegetable initial marking, the initial title of vegetable, vegetable Breath, at least one of the image information of vegetable and the pricing information of vegetable;
Between at least one information in the initial information for establishing the standard vegetable identification information and the vegetable Corresponding relationship, generate dish information, comprising: establish between the standard vegetable identification information and the pricing information of the vegetable Corresponding relationship, generate dish information.
Optionally, the corresponding pass established between the standard vegetable identification information and the pricing information of the vegetable System, generate dish information, comprising: establish at least one of the food materials information of the vegetable and the image of the vegetable information with The standard vegetable identification information, the vegetable pricing information between corresponding relationship, generate dish information.
Optionally, the initial information of the vegetable includes at least one in the food materials information of vegetable and the pricing information of vegetable Kind information;
The method also includes: obtain standard vegetable image corresponding with the standard vegetable identification information;
Between at least one information in the initial information for establishing the standard vegetable identification information and the vegetable Corresponding relationship, generate dish information, comprising: establish at least one in the food materials information of the vegetable and the pricing information of vegetable Corresponding relationship between kind information and the standard vegetable identification information, the standard vegetable image generates dish information.
Optionally, the dish information generation method further include: store the dish information of generation to the vegetable letter of businessman It ceases in library;
Alternatively, obtaining the modification information for the dish information generated, believe according to vegetable of the modification information to generation Breath is modified, and modified dish information is obtained, and modified dish information is stored into the dish information library of businessman.
In addition the application provides a kind of dish information generating means, comprising:
Menu image obtaining unit, for obtaining the menu image of the initial information including at least one vegetable;
Vegetable initial information obtaining unit, for obtaining the initial information of vegetable from the menu image;
Standard vegetable identification information obtaining unit obtains and the vegetable for the initial information according to the vegetable The matched standard vegetable identification information of initial information;
Dish information generation unit, for establishing in the initial information of the standard vegetable identification information and the vegetable Corresponding relationship between at least one information generates dish information.
Optionally, the menu image obtaining unit is specifically used for:
The menu image is obtained from image volume, alternatively, passing through the dish to the initial information for including at least one vegetable It singly takes pictures, obtains the menu image.
Optionally, the vegetable initial information obtaining unit is specifically used for:
The menu image is split, the submenu image of the initial information including vegetable is obtained;
Image recognition is carried out to the submenu image, obtains the initial information of the vegetable.
Optionally, the dish information generating means further include:
The characteristic information obtaining unit of vegetable, for the figure from character description information and the vegetable for the vegetable The characteristic information of the vegetable is extracted at least one of picture information;
The standard vegetable identification information obtaining unit is specifically used for:
According to the characteristic information of the vegetable, obtains and believe with the matched standard vegetable mark of the characteristic information of the vegetable Breath.
Optionally, the standard vegetable identification information obtaining unit is specifically used for:
Calculate the similarity between the characteristic information of the vegetable and at least one candidate criteria vegetable identification information;
The highest candidate criteria vegetable identification information of similarity is determined as and the matched mark of the characteristic information of the vegetable Quasi- vegetable identification information.
Optionally, the standard vegetable identification information obtaining unit is specifically used for: according to the characteristic information of the vegetable with And the corresponding relationship between the vegetable characteristic information being obtained ahead of time and standard vegetable identification information, obtain the feature with the vegetable The standard vegetable identification information of information matches.
Optionally, the standard vegetable identification information obtaining unit is specifically used for:
Calculate the vegetable image standard vegetable image corresponding at least one candidate criteria vegetable identification information it Between similarity;
The corresponding candidate criteria vegetable identification information of the highest standard vegetable image of similarity is determined as and the vegetable The matched standard vegetable identification information of characteristic information.
Optionally, the vegetable initial information obtaining unit is specifically used for: obtaining initial including vegetable initial marking, vegetable Title, the food materials information of vegetable, at least one of the image information of vegetable and vegetable pricing information vegetable it is initial Information;
The dish information generation unit is specifically used for: establishing the price of the standard vegetable identification information and the vegetable Corresponding relationship between information generates dish information.
Optionally, the dish information generation unit is specifically used for: establish the vegetable food materials information and the vegetable At least one of image information and the standard vegetable identification information, the vegetable pricing information between corresponding pass System generates dish information.
Optionally, the dish information generating means further include:
Standard vegetable image acquiring unit, for obtaining standard vegetable figure corresponding with the standard vegetable identification information Picture;
The dish information generation unit is specifically used for: establishing in the food materials information of the vegetable and the pricing information of vegetable At least one information and the standard vegetable identification information, the standard vegetable image between corresponding relationship, generate vegetable Information.
Optionally, the dish information generating means further include:
Dish information storage element, for storing the dish information of generation into the dish information library of businessman;
Alternatively, obtaining the modification information for the dish information generated, believe according to vegetable of the modification information to generation Breath is modified, and modified dish information is obtained, and modified dish information is stored into the dish information library of businessman.
The application provides a kind of electronic equipment, comprising:
Processor;
Memory after the program for storing dish information generation method, and executes following steps:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, obtains and believe with the matched standard vegetable mark of the initial information of the vegetable Breath;
Establish pair between at least one information in the initial information of the standard vegetable identification information and the vegetable It should be related to, generate dish information.
The application provides a kind of computer storage medium, and the computer storage medium is stored with dish information generation method Program, which is run by processor, execute following step:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, obtains and believe with the matched standard vegetable mark of the initial information of the vegetable Breath;
Establish pair between at least one information in the initial information of the standard vegetable identification information and the vegetable It should be related to, generate dish information.
Compared with prior art, the application has the following advantages:
The application provides a kind of dish information generation method, comprising: obtains the initial information including at least one vegetable Menu image;The initial information of vegetable is obtained from the menu image;According to the initial information of the vegetable, obtain with it is described The matched standard vegetable identification information of the initial information of vegetable;Establish the initial of the standard vegetable identification information and the vegetable The corresponding relationship between at least one information in information generates dish information.During generating dish information, obtain first The initial information of vegetable is taken, obtains the matched standard vegetable identification information of initial information with vegetable later, and the two is established Connection generates dish information.The application is removed to the dish information of every course of upload by means of standard vegetable identification information That is analyzed comprehensively is cumbersome, to achieve the purpose that operation is simplified when uploading the dish information of vast number.It generates simultaneously Dish information comprehensively and standardize, increase customer dining experience.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application can also be obtained according to these attached drawings other for those of ordinary skill in the art Attached drawing.
Fig. 1 is the method flow diagram that the application first embodiment provides.
Fig. 2 is the schematic device that the application second embodiment provides.
Fig. 3 is the electronic equipment schematic diagram that the application 3rd embodiment provides.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
Embodiment one
As shown in Figure 1, its flow chart for the dish information generation method of the application.This method comprises the following steps:
Step S101: the menu image of the initial information including at least one vegetable is obtained.
There are many modes for obtaining the menu image of the initial information including at least one vegetable, and one such mode is such as Under: menu image is obtained from image volume.Specifically, menu image is obtained from image volume to be not limited to from electronic device terminal sheet Menu image is obtained in the image volume on ground to obtain or obtain menu image from the image volume in cloud storage.For example, can be from The image volume of mobile phone terminal perhaps obtain in the image volume of computer end pre-stored menu image can also from mailbox or other Pre-stored menu image is downloaded in network address.
Another mode for obtaining the menu image of the initial information including at least one vegetable can be by packet The menu for including the initial information of at least one vegetable is taken pictures, and menu image is obtained.Specifically, obtaining first includes at least one The menu of the initial information of a vegetable uses the equipment containing camera shooting camera function to above-mentioned acquisition including at least one later The menu of the initial information of vegetable is taken pictures.It takes pictures for example, by using mobile phone, and will take pictures to the menu being obtained ahead of time Menu image is saved, and obtains the menu of the initial information including at least one vegetable from the image volume for the equipment taken pictures later Image specifically obtains the process of the menu image of the initial information of at least one vegetable referring to the first embodiment party from image volume Specific descriptions process in formula, details are not described herein again.
Step S102: the initial information of vegetable is obtained from menu image.
After the menu image that above-mentioned steps S101 obtains the initial information including at least one vegetable, from menu image The middle initial information for obtaining vegetable.There are many modes that the initial information of vegetable is obtained from menu image, and one of which is implemented Mode is to be split to menu image, obtains the submenu image of the initial information including vegetable;Sub- menu image is carried out Image recognition obtains the initial information of vegetable.
Specifically, it is split, is obtained when including the submenu image of initial information of vegetable to menu image, it can be with Menu image is split using at least one of row cutting and column cutting mode.It, can be preparatory for row segmentation The upper altitude boundary reference value and height lower boundary reference value for setting the target object with a line, can be by the value of upper altitude boundary And target object of the value of height lower boundary in height between boundary reference value and height lower boundary reference value is considered as same a line Target object can will include further that the image of all target objects of same a line is determined as submenu image.Together Reason, for column split, can preset the width left margin reference value and width right margin of the target object of same row Reference value can refer to the value of width left margin and the value of width right margin in width left margin reference value and width right margin Target object between value is considered as the target object of same row, further, can be by all target objects including same row Image be determined as submenu image.Goal object can refer to text information, symbolic information, figure in menu image Piece information etc..It should be noted that in practical applications, due to typesetting, font etc., may result in menu Central Plains and belong to It is not simultaneously displayed in proper same a line or same row with the target object of a line or same row, for example, former The coboundary or lower boundary for belonging to two target objects of same a line would not be aligned, and belongs to two target objects in same row originally Left margin or right margin are not aligned.In this regard, the application uses above-mentioned row partitioning scheme or column split mode, that is, will height The value of coboundary and the value of height the lower boundary target object between boundary reference value and height lower boundary reference value in height It is considered as the target object of same a line, by the value of width left margin and the value of width right margin in width left margin reference value and width Target object between right margin reference value is considered as the target object of same row, in this case, even if belong to originally in same a line or Any one of the coboundary of the target object of same row, lower boundary, left margin, right margin boundary are not aligned, can also be with Guarantee that these target objects can be divided in same a line or same row, so that it is same to guarantee that these target objects are divided to In submenu image, be conducive to subsequent dish information analysis.In practice, the initial information of vegetable can be for vegetable At least one of the image of character description information and vegetable information;Such as a certain vegetable in Chinese Restaurant in menu, it can be with It is made of the image section of the word segment and vegetable that describe the vegetable.Initial information for above-mentioned vegetable is for vegetable Character description information and vegetable at least one of image information situation, obtain the detailed process of the initial information of vegetable Are as follows:
Firstly, being split to the above-mentioned steps S101 menu image obtained, the son of the initial information including vegetable is obtained Menu image.Specifically, the process description being split to menu image is as follows: by acquisition include at least one vegetable just The menu image of beginning information is divided as unit of the information of single vegetable, obtain include the initial information of vegetable submenu Image.Such as have 30 vegetables in the menu image of Chinese Restaurant, then using each vegetable as basic unit, by above-mentioned menu image Be divided into 30 parts, obtain corresponding submenu image, wherein corresponding submenu image include vegetable character description information and At least one of image of vegetable information.
Later, vegetable Text region and vegetable image are carried out to the submenu image of the initial information including vegetable of acquisition Identification, obtains the text information and image information about vegetable, the i.e. initial information of vegetable.Such as when vegetable is stewed fish with brown sauce, The submenu image of the initial information including vegetable obtained is businessman to the verbal description of stewed fish with brown sauce and the image of stewed fish with brown sauce, And the initial information of stewed fish with brown sauce is obtained with this.
In addition, being split to menu image, the submenu image of the initial information including vegetable is obtained;To sub- menu map As carrying out image recognition, the specific implementation process for obtaining the initial information of vegetable can also be realized by mode described below:
Firstly, carrying out word segment and figure respectively as unit of single vegetable to the above-mentioned steps S101 menu image obtained As the segmentation of part, the image of the word segment image of each vegetable and the image section of each vegetable is obtained after segmentation.Example Such as there are 30 vegetables in the menu image of Chinese Restaurant, the concrete operations to menu image segmentation are as follows: by the text of menu image Part is divided into 30 parts as unit of each vegetable, while being also divided into 30 as unit of each vegetable to vegetable image section Part.
The word segment image of each vegetable is matched with the image of the image section of each vegetable later, obtain with The image of some vegetable corresponding vegetable word segment image and vegetable image section.It specifically will be every after obtained segmentation The word segment image of a vegetable is matched one by one with the image of the image section of each vegetable, and each vegetable can be obtained Complete information image, the complete information image of each vegetable include the word segment image of the vegetable and the image section of the vegetable Image, as including vegetable initial information submenu image, later again from the complete information figure of obtained each vegetable As carrying out vegetable Text region and vegetable image recognition, the text information and image information about vegetable are obtained, i.e., vegetable is first Beginning information.
In addition to this, after the menu image that above-mentioned steps S101 obtains the initial information including at least one vegetable, The initial information that vegetable is obtained from menu image is also possible that the dish for obtaining the initial information including at least one vegetable first Single image is split menu image, obtain include vegetable initial information submenu image, backward businessman offer dish The initial information of product, businessman is according to the initial information of the submenu image selection vegetable of the initial information including vegetable of acquisition. The mode provided to businessman specifically can be voice or by various ways such as the editing interfaces of offer.
Step S103: it according to the initial information of vegetable, obtains and believes with the matched standard vegetable mark of the initial information of vegetable Breath.
After the initial information for obtaining vegetable, obtained according to the initial information of vegetable matched with the initial information of vegetable Standard vegetable identification information.Its Plays vegetable can be stored in advance in standard vegetable library, so that businessman is uploading itself dish It is referred to when product and adjusts and standardize.Standard dish information in standard vegetable library may include standardized menu name, standard The vegetable of change is numbered, vegetable image, the characteristic introduction of vegetable, the production process of vegetable, vegetable price and its about vegetable His information.Standard vegetable identification information can be standardized menu name, standardized vegetable number or standardized dish The other information of product.
According to the initial information of vegetable, obtaining has with the mode of the matched standard vegetable identification information of initial information of vegetable A variety of, one way in which can be the character description information and dish first obtained include for vegetable in the initial information of vegetable At least one of image of product information, from least one of the image of character description information and vegetable for being directed to vegetable information The middle characteristic information for extracting vegetable;According to the characteristic information of vegetable, the matched standard vegetable mark of characteristic information with vegetable is obtained Know information.More specifically, extracting dish from least one of the image of character description information and vegetable for being directed to vegetable information The characteristic information of product can be and extract keyword from character description information, or pass through image recognition function from the image of vegetable Keyword is extracted again after capable of identifying the corresponding text of image, later using the keyword extracted as the characteristic information of vegetable.
According to the characteristic information of vegetable, obtains and have with the mode of the matched standard vegetable identification information of characteristic information of vegetable Body is illustrated with following two kinds of implementations:
As the characteristic information according to vegetable, one with the matched standard vegetable identification information of characteristic information of vegetable is obtained Kind implementation, can calculate similar between the characteristic information of vegetable and at least one candidate criteria vegetable identification information first The highest candidate criteria vegetable identification information of similarity, is determined as and the matched standard vegetable of the characteristic information of vegetable by degree later Identification information.For example, being in the characteristic information for the vegetable that the initial information of above-mentioned vegetable obtains when uploading braised carp in brown sauce vegetable " braised in soy sauce " and " carp " for acquisition and the matched standard vegetable identification information of stewed fish with brown sauce vegetable needs that standard will be stored in advance in Standard vegetable in vegetable library is screened with the characteristic information of vegetable, i.e., is indexed with " braised in soy sauce " and " carp ", obtain with The standard vegetable that stewed fish with brown sauce vegetable matches calculates the identification information and stewed fish with brown sauce vegetable of all standard vegetables filtered out later The highest candidate criteria vegetable identification information of the similarity being calculated is determined as and stewed fish with brown sauce dish by the similarity of characteristic information The matched standard vegetable identification information of the characteristic information of product;During above-mentioned calculating similarity, standard dish can also be calculated The identification information of all standard vegetables in product library and the similarity of braised carp in brown sauce vegetable characteristic information, it is similar by what is be calculated Highest candidate criteria vegetable identification information is spent to be determined as matching with the characteristic information of braised carp in brown sauce vegetable " braised in soy sauce " with " carp " Standard vegetable identification information.It calculates similar between the characteristic information and at least one candidate criteria vegetable identification information of vegetable Degree can be the semantic similarity of the standardized menu name of the keyword and standard vegetable that calculate the characteristic information of vegetable, and It is matched the standardized menu name of the highest standard vegetable of the semantic similarity being calculated as the characteristic information of vegetable Standard vegetable identification information.
As the characteristic information according to vegetable, obtain another with the matched standard vegetable identification information of characteristic information of vegetable A kind of outer implementation, can also be according to the characteristic information of vegetable and the vegetable characteristic information and standard vegetable mark that are obtained ahead of time Know the corresponding relationship between information, obtains the matched standard vegetable identification information of characteristic information with vegetable.Specifically, first it is arranged The corresponding relationship of the characteristic information of vegetable and standard vegetable identification information, later according to the characteristic information of the vegetable of above-mentioned acquisition with And corresponding relationship acquisition and the vegetable of above-mentioned acquisition of the characteristic information of pre-set vegetable and standard vegetable identification information The corresponding standard vegetable identification information of characteristic information.
In addition to this, it obtains and is with another mode of the matched standard vegetable identification information of initial information of vegetable, The initial information of the vegetable of the image including vegetable is obtained first, obtains the initial letter with the vegetable for the image for including vegetable later Cease matched standard vegetable identification information.Specifically, the image for obtaining the vegetable of the initial information of vegetable first, calculates dish later Similarity between the image of product standard vegetable image corresponding at least one candidate criteria vegetable identification information;Finally by phase It is determined as like the corresponding candidate criteria vegetable identification information of the highest standard vegetable image of degree matched with the characteristic information of vegetable Standard vegetable identification information.More specifically, obtaining the image of the vegetable of the initial information of vegetable can obtain according in step S102 Take the mode of the initial information of vegetable to obtain the image of the vegetable of the initial information of vegetable, later calculate vegetable image at least Similarity between the corresponding standard vegetable image of one candidate criteria vegetable identification information.During calculating similarity, The similarity between the image of vegetable and the image of all standard vegetables in standard vegetable library standard vegetable library can be calculated, It can be the image for calculating vegetable and the similarity between the image of the standard vegetable of a part of standard vegetable library prescreening. The calculating of similarity between image can be the similarity calculated between image pixel, naturally it is also possible to be that image is passed through figure As the corresponding text of identification function identification image, then calculate the semantic similarity of text.Finally, by the highest standard dish of similarity The corresponding candidate criteria vegetable identification information of product image is determined as and the matched standard vegetable identification information of the characteristic information of vegetable.
It should be noted that obtain with after the matched standard vegetable identification information of initial information of vegetable, by with vegetable Identification information of the matched standard vegetable identification information of initial information as vegetable, standard vegetable identification information can be standardization Menu name, the other information of standardized vegetable number or standardized vegetable;Such as vegetable is braised carp in brown sauce, matching The standardized menu name for obtaining standard vegetable identification information is " stewed fish with brown sauce ", then chooses " stewed fish with brown sauce " as the vegetable uploaded Title.
Step S104: pair between at least one information in the initial information of standard vegetable identification information and vegetable is established It should be related to, generate dish information.
To generate dish information, obtains in above-mentioned steps S103 and believe with the matched standard vegetable mark of the initial information of vegetable After breath, the corresponding relationship between at least one information established in the initial information of standard vegetable identification information and vegetable is also needed. The corresponding relationship between at least one information in the initial information of standard vegetable identification information and vegetable is specifically established, dish is generated The one way in which of product information is described as follows:
Firstly, obtaining includes in the image of vegetable initial marking, the initial title of vegetable, the food materials information of vegetable, vegetable The initial information of the vegetable of at least one information and the pricing information of vegetable.
Later, the corresponding relationship between standard vegetable identification information and the pricing information of vegetable is established, dish information is generated; The corresponding relationship between standard vegetable identification information and the pricing information of vegetable is wherein established, dish information is generated, specifically: it builds Found the pricing information of at least one of the food materials information of vegetable and the image of vegetable information and standard vegetable identification information, vegetable Between corresponding relationship, generate dish information.For example, obtaining braised carp in brown sauce first when generating the information of braised carp in brown sauce vegetable Standard menu name the food materials information of stewed fish with brown sauce and red i.e. " stewed fish with brown sauce " is obtained by the initial information of braised carp in brown sauce later The pricing information for burning at least one of the image of carp information and braised carp in brown sauce, after obtaining above- mentioned information, Ji Kesheng At the information of braised carp in brown sauce vegetable, it may be assumed that by standardized title " stewed fish with brown sauce ", prepare the food materials information of braised carp in brown sauce and/or red The price of the image and braised carp in brown sauce that burn carp arranges in a certain order, generates the information of braised carp in brown sauce.
As establish between standard vegetable identification information and at least one information in the initial information of vegetable it is corresponding pass System, generates another mode of dish information, specific to may also is that
Firstly, obtaining the first of at least one of the pricing information of food materials information and vegetable including the vegetable vegetable of information Beginning information obtains standard vegetable image corresponding with standard vegetable identification information later;Generally, when uploading dish information, The standardized menu name that menu name is obtained using matching, the image of vegetable is using the dish obtained in businessman's menu image The image of product, this is because the image of the vegetable contains the characteristic of businessman itself, it is closer with actual vegetable.If but When not including the image of vegetable in menu image or cannot be identified to the image of vegetable, it can be obtained from above-mentioned matching Image of the corresponding standard vegetable image as the vegetable is obtained in standard vegetable identification information.Finally, establishing the food materials of vegetable It is corresponding between at least one of the pricing information of information and vegetable information and standard vegetable identification information, standard vegetable image Relationship generates dish information.For example, when generating the information of braised carp in brown sauce vegetable, first in pre-set standard vegetable library The middle standard menu name for obtaining braised carp in brown sauce and the standard picture for obtaining braised carp in brown sauce, i.e. " stewed fish with brown sauce " and stewed fish with brown sauce standard Image is obtained later by the initial information of braised carp in brown sauce in the food materials information of stewed fish with brown sauce and/or the pricing information of braised carp in brown sauce At least one information, after obtaining above- mentioned information, that is, produce braised carp in brown sauce vegetable information, it may be assumed that by standardized name Claim " stewed fish with brown sauce ", stewed fish with brown sauce standard picture and prepares the food materials information of braised carp in brown sauce and/or the price of braised carp in brown sauce according to one Fixed sequence arrangement, generates the information of braised carp in brown sauce.
After the above process generates dish information, the dish information of generation is stored into the dish information library of businessman; Alternatively, the modification information for the dish information generated is obtained, according to modification information to the dish of generation after generating dish information Product information is modified, and modified dish information is obtained, and modified dish information is stored to the dish information library of businessman In.
It is understood that the present embodiment include the menu image of the initial information of at least one vegetable, vegetable it is initial The step of mode of information, the acquisition of standard vegetable identification information and generation dish information is only for the purposes of understanding the application S101-S104, for obtaining above- mentioned information using other modes and generating dish information mode, as long as pressing in this step It is illustrated according to description like above, these change modes have no effect on the core of the application, and the application is not construed as limiting.
In the above-described embodiment, a kind of dish information generation method is provided, corresponding, the application also provides A kind of dish information generating means.As shown in Fig. 2, its schematic diagram for a kind of dish information generating means of the application.Due to Installation practice is substantially similar to embodiment of the method, so describing fairly simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.Installation practice described below is only schematical.
Embodiment two
The present embodiment provides a kind of dish information generating means, comprising:
Menu image obtaining unit 201, for obtaining the menu image of the initial information including at least one vegetable;
Vegetable initial information obtaining unit 202, for obtaining the initial information of vegetable from the menu image;
Standard vegetable identification information obtaining unit 203 obtains and the vegetable for the initial information according to the vegetable The matched standard vegetable identification information of initial information;
Dish information generation unit 204, for establishing the initial information of the standard vegetable identification information and the vegetable In at least one information between corresponding relationship, generate dish information.
Optionally, the menu image obtaining unit is specifically used for:
The menu image is obtained from image volume, alternatively, passing through the dish to the initial information for including at least one vegetable It singly takes pictures, obtains the menu image.
Optionally, the vegetable initial information obtaining unit is specifically used for:
The menu image is split, the submenu image of the initial information including vegetable is obtained;
Image recognition is carried out to the submenu image, obtains the initial information of the vegetable.
Optionally, the dish information generating means further include:
The characteristic information obtaining unit of vegetable, for the figure from character description information and the vegetable for the vegetable The characteristic information of the vegetable is extracted at least one of picture information;
The standard vegetable identification information obtaining unit is specifically used for:
According to the characteristic information of the vegetable, obtains and believe with the matched standard vegetable mark of the characteristic information of the vegetable Breath.
Optionally, the standard vegetable identification information obtaining unit is specifically used for:
Calculate the similarity between the characteristic information of the vegetable and at least one candidate criteria vegetable identification information;
The highest candidate criteria vegetable identification information of similarity is determined as and the matched mark of the characteristic information of the vegetable Quasi- vegetable identification information.
Optionally, the standard vegetable identification information obtaining unit is specifically used for: according to the characteristic information of the vegetable with And the corresponding relationship between the vegetable characteristic information being obtained ahead of time and standard vegetable identification information, obtain the feature with the vegetable The standard vegetable identification information of information matches.
Optionally, the standard vegetable identification information obtaining unit is specifically used for:
Calculate the vegetable image standard vegetable image corresponding at least one candidate criteria vegetable identification information it Between similarity;
The corresponding candidate criteria vegetable identification information of the highest standard vegetable image of similarity is determined as and the vegetable The matched standard vegetable identification information of characteristic information.
Optionally, the vegetable initial information obtaining unit is specifically used for: obtaining initial including vegetable initial marking, vegetable Title, the food materials information of vegetable, at least one of the image information of vegetable and vegetable pricing information vegetable it is initial Information;
The dish information generation unit is specifically used for: establishing the price of the standard vegetable identification information and the vegetable Corresponding relationship between information generates dish information.
Optionally, the dish information generation unit is specifically used for: establish the vegetable food materials information and the vegetable At least one of image information and the standard vegetable identification information, the vegetable pricing information between corresponding pass System generates dish information.
Optionally, the dish information generating means further include:
Standard vegetable image acquiring unit, for obtaining standard vegetable figure corresponding with the standard vegetable identification information Picture;
The dish information generation unit is specifically used for: establishing in the food materials information of the vegetable and the pricing information of vegetable At least one information and the standard vegetable identification information, the standard vegetable image between corresponding relationship, generate vegetable Information.
Optionally, the dish information generating means further include:
Dish information storage element, for storing the dish information of generation into the dish information library of businessman;
Alternatively, obtaining the modification information for the dish information generated, believe according to vegetable of the modification information to generation Breath is modified, and modified dish information is obtained, and modified dish information is stored into the dish information library of businessman.
Embodiment three
The embodiment of the present application one gives a kind of dish information generation method, and the embodiment of the present application three gives and the vegetable The corresponding electronic equipment of information generating method.
As shown in figure 3, it illustrates the dish informations that the embodiment of the present application three provides to generate electronic equipment schematic diagram.
The a kind of electronic equipment of the present embodiment, comprising:
Processor 301;And
Memory 302 after the program for storing dish information generation method, and executes following steps:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, obtains and believe with the matched standard vegetable mark of the initial information of the vegetable Breath;
Establish pair between at least one information in the initial information of the standard vegetable identification information and the vegetable It should be related to, generate dish information.
Example IV
The embodiment of the present application one gives a kind of dish information generation method, and the embodiment of the present application four provides a kind of computer Storage medium, the computer storage medium are stored with the program of dish information generation method, which is run by processor, hold Row following step:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, obtains and believe with the matched standard vegetable mark of the initial information of the vegetable Breath;
Establish pair between at least one information in the initial information of the standard vegetable identification information and the vegetable It should be related to, generate dish information.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, any this field skill Art personnel are not departing from spirit and scope, can make possible variation and modification, therefore the guarantor of the application Shield range should be subject to the range that the claim of this application defined.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
1, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media Method or technology realize that information stores.Information can be computer readable instructions, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to Herein defines, and computer-readable medium does not include non-temporary computer-readable storage media (non-transitory Computer readable storage media), such as data-signal and carrier wave of modulation.
2, it will be understood by those skilled in the art that embodiments herein can provide as the production of method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It can be used moreover, the application can be used in the computer that one or more wherein includes computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.

Claims (10)

1. a kind of dish information generation method characterized by comprising
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, the matched standard vegetable identification information of initial information with the vegetable is obtained;
Establish the corresponding pass between the standard vegetable identification information and at least one information in the initial information of the vegetable System generates dish information.
2. the method according to claim 1, wherein the acquisition includes the initial information of at least one vegetable Menu image, comprising: the menu image is obtained from image volume, alternatively, by the initial letter including at least one vegetable The menu of breath is taken pictures, and the menu image is obtained.
3. the method according to claim 1, wherein the initial letter for obtaining vegetable from the menu image Breath, comprising:
The menu image is split, the submenu image of the initial information including vegetable is obtained;
Image recognition is carried out to the submenu image, obtains the initial information of the vegetable.
4. the method according to claim 1, wherein the initial information of the vegetable includes for the vegetable At least one of the image of character description information and vegetable information;
The initial information according to the vegetable obtains and believes with the matched standard vegetable mark of the initial information of the vegetable Breath, comprising:
Institute is extracted from least one of the image of the character description information for the vegetable and vegetable information State the characteristic information of vegetable;
According to the characteristic information of the vegetable, the matched standard vegetable identification information of characteristic information with the vegetable is obtained.
5. according to the method described in claim 4, it is characterized in that, the characteristic information according to the vegetable, acquisition and institute State the matched standard vegetable identification information of characteristic information of vegetable, comprising:
Calculate the similarity between the characteristic information of the vegetable and at least one candidate criteria vegetable identification information;
The highest candidate criteria vegetable identification information of similarity is determined as and the matched standard dish of the characteristic information of the vegetable Product identification information.
6. according to the method described in claim 4, it is characterized in that, the characteristic information according to the vegetable, acquisition and institute State the matched standard vegetable identification information of characteristic information of vegetable, comprising: obtain according to the characteristic information of the vegetable and in advance The corresponding relationship between vegetable characteristic information and standard vegetable identification information obtained, acquisition are matched with the characteristic information of the vegetable Standard vegetable identification information.
7. the method according to claim 1, wherein the initial information of the vegetable includes the figure of the vegetable Picture;
The initial information according to the vegetable obtains and believes with the matched standard vegetable mark of the initial information of the vegetable Breath, comprising:
It calculates between the image standard vegetable image corresponding at least one candidate criteria vegetable identification information of the vegetable Similarity;
The corresponding candidate criteria vegetable identification information of the highest standard vegetable image of similarity is determined as the spy with the vegetable Reference ceases matched standard vegetable identification information.
8. a kind of dish information generating means characterized by comprising
Menu image obtaining unit, for obtaining the menu image of the initial information including at least one vegetable;
Vegetable initial information obtaining unit, for obtaining the initial information of vegetable from the menu image;
Standard vegetable identification information obtaining unit is obtained initial with the vegetable for the initial information according to the vegetable The standard vegetable identification information of information matches;
Dish information generation unit, in the initial information for establishing the standard vegetable identification information and the vegetable at least Corresponding relationship between one information generates dish information.
9. a kind of electronic equipment characterized by comprising
Processor;
Memory after the program for storing dish information generation method, and executes following steps:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, the matched standard vegetable identification information of initial information with the vegetable is obtained;
Establish the corresponding pass between the standard vegetable identification information and at least one information in the initial information of the vegetable System generates dish information.
10. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with dish information generation method Program, which is run by processor, execute following step:
Obtain the menu image of the initial information including at least one vegetable;
The initial information of vegetable is obtained from the menu image;
According to the initial information of the vegetable, the matched standard vegetable identification information of initial information with the vegetable is obtained;
Establish the corresponding pass between the standard vegetable identification information and at least one information in the initial information of the vegetable System generates dish information.
CN201811148804.0A 2018-09-29 2018-09-29 Dish information generation method and device and electronic equipment Active CN109446915B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811148804.0A CN109446915B (en) 2018-09-29 2018-09-29 Dish information generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811148804.0A CN109446915B (en) 2018-09-29 2018-09-29 Dish information generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109446915A true CN109446915A (en) 2019-03-08
CN109446915B CN109446915B (en) 2020-12-29

Family

ID=65544474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811148804.0A Active CN109446915B (en) 2018-09-29 2018-09-29 Dish information generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109446915B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442743A (en) * 2019-08-05 2019-11-12 中山职业技术学院 A kind of dish information dissemination method turning text based on picture
CN111640267A (en) * 2020-04-16 2020-09-08 浙江口碑网络技术有限公司 Self-service settlement method and device, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653636A (en) * 2015-12-25 2016-06-08 北京搜狗科技发展有限公司 Information processing method and apparatus as well as information processing apparatus
CN106096932A (en) * 2016-06-06 2016-11-09 杭州汇萃智能科技有限公司 The pricing method of vegetable automatic recognition system based on tableware shape
CN107609914A (en) * 2017-09-22 2018-01-19 上海爱优威软件开发有限公司 A kind of intelligent menu design method and system
CN108197635A (en) * 2017-11-29 2018-06-22 珠海格力电器股份有限公司 Cooking mode display method and device and range hood

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653636A (en) * 2015-12-25 2016-06-08 北京搜狗科技发展有限公司 Information processing method and apparatus as well as information processing apparatus
CN106096932A (en) * 2016-06-06 2016-11-09 杭州汇萃智能科技有限公司 The pricing method of vegetable automatic recognition system based on tableware shape
CN107609914A (en) * 2017-09-22 2018-01-19 上海爱优威软件开发有限公司 A kind of intelligent menu design method and system
CN108197635A (en) * 2017-11-29 2018-06-22 珠海格力电器股份有限公司 Cooking mode display method and device and range hood

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442743A (en) * 2019-08-05 2019-11-12 中山职业技术学院 A kind of dish information dissemination method turning text based on picture
CN111640267A (en) * 2020-04-16 2020-09-08 浙江口碑网络技术有限公司 Self-service settlement method and device, storage medium and computer equipment
CN111640267B (en) * 2020-04-16 2021-12-24 浙江口碑网络技术有限公司 Self-service settlement method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN109446915B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US10956793B1 (en) Content tagging
KR102445720B1 (en) Device location based on machine learning classifications
US10409822B2 (en) Systems and methods for presenting ranked search results
CN102930522B (en) A kind of apparatus and method realizing picture splicing
CN104854539B (en) A kind of object search method and device
CN102930523B (en) Picture processing system and picture splicing implementation method
CN105653636B (en) Information processing method and device for information processing
US9606975B2 (en) Apparatus and method for automatically generating visual annotation based on visual language
KR102558907B1 (en) Systems and methods for analyzing colors from a social media platform
WO2013075324A1 (en) Image attractiveness based indexing and searching
US10290036B1 (en) Smart categorization of artwork
US11423057B2 (en) Impression tagging system for locations
US10331953B2 (en) Image processing apparatus
CN109446915A (en) A kind of dish information generation method, device and electronic equipment
CN105069063A (en) Picture searching method and apparatus
CN106326436A (en) Interface element display method and device
CN109191225A (en) Order generation method, device, order processing method and server
CN109933389A (en) Data object information processing, page display method and device
CN107562954A (en) Recommendation searching method, device and mobile terminal based on mobile terminal
CN111145048A (en) Method and device for making menu
CN107818152B (en) Plant retrieval method and system
CN110795184A (en) Information processing method and menu page display method, device and system
CN106776862A (en) A kind of game video searching method and device
CN106547757B (en) Method and device for matching keywords with creative content
KR101376596B1 (en) System and method for searching images

Legal Events

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