CN114550389A - Self-service settlement method and device, storage medium and computer equipment - Google Patents
Self-service settlement method and device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN114550389A CN114550389A CN202210147917.9A CN202210147917A CN114550389A CN 114550389 A CN114550389 A CN 114550389A CN 202210147917 A CN202210147917 A CN 202210147917A CN 114550389 A CN114550389 A CN 114550389A
- Authority
- CN
- China
- Prior art keywords
- dish
- picture
- information
- target
- sample
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 238000012549 training Methods 0.000 claims abstract description 36
- 239000002994 raw material Substances 0.000 claims description 22
- 238000010411 cooking Methods 0.000 claims description 21
- 238000002360 preparation method Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 6
- 235000013311 vegetables Nutrition 0.000 description 56
- 238000010586 diagram Methods 0.000 description 5
- 238000012216 screening Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000005457 optimization Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0018—Constructional details, e.g. of drawer, printing means, input means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0009—Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0036—Checkout procedures
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
The application discloses a self-service settlement method and device, a storage medium and computer equipment, wherein the method comprises the following steps: scanning the dishes to be identified through a preset terminal to obtain a target dish picture; identifying target dish information corresponding to the target dish picture by using the trained dish identification model; inquiring the dish price of a target dish according to the target dish information, and inputting the target dish information and the dish price; the acquisition step of the dish sample picture required by training the dish identification model comprises the following steps: and acquiring a dish sample picture according to the picture related to the dish scheduling information corresponding to the dish order acquired by the camera. The problem that calibration is easy to make mistakes in the prior art is solved, and the reliability and the quality of the training sample are improved, so that the identification accuracy of the dish identification model and the accuracy of self-service dish settlement are improved.
Description
The invention is a divisional application of Chinese patent application with application number 202010299237.X, entitled "a self-service settlement method, device, storage medium and computer equipment", filed on 16.4.16.2020.
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a self-service settlement method, device, storage medium, and computer device.
Background
With the improvement of living standard of people, the catering market in China develops rapidly in recent years. However, the business turnover of the catering trade is more and more difficult to be improved due to the fierce competition, the gradual transparent profit and the continuous high labor cost. As for the settlement steps necessary in each consumption process, the catering merchant answers the settlement amount manually calculated by the waiter, or the ordered dishes are input into the cash register system, and the cash register system calculates the total price of the ordered dishes according to the price of the dishes, so that the mode is low in efficiency and is easy to generate errors.
Therefore, automatic settlement equipment is introduced into many catering trade companies, and the automatic settlement equipment can automatically identify the ordered dishes by using a dish identification model based on the pictures of the ordered dishes, so that settlement is realized. However, metadata trained by a dish recognition algorithm model in the current product are all from photos taken by workers, and the metadata acquired in such a way has the following defects:
(1) shooting metadata of shooting personnel depends on the fact that dishes are made, and a process of waiting for shooting completion can occur when the dishes are newly added or at the peak of serving; (2) the shooting personnel need to shoot at a specific angle, and great requirements are made on the definition and the identification degree of the picture; (3) the photographer needs to remember the professional input of each dish, and the operation is not easy for the easily mixed dishes.
In view of the defects of the metadata, the training sample of the dish identification model is difficult to obtain and poor in quality, and further the model identification effect is poor and the self-service settlement accuracy is low.
Disclosure of Invention
In view of this, the present application provides a self-service settlement method, device, storage medium and computer device, which are helpful for improving the accuracy of self-service settlement.
According to one aspect of the present application, there is provided a self-checkout method, the method comprising:
scanning the dishes to be identified through a preset terminal to obtain a target dish picture;
identifying target dish information corresponding to the target dish picture by using the trained dish identification model;
inquiring the dish price of a target dish according to the target dish information, and inputting the target dish information and the dish price;
the acquisition step of the dish sample picture required by training the dish identification model comprises the following steps: and acquiring a dish sample picture according to the picture related to the dish scheduling information corresponding to the dish order acquired by the camera.
Specifically, the acquiring of the dish sample picture according to the picture related to the dish scheduling information corresponding to the dish order acquired by the camera specifically includes:
determining the dish scheduling information corresponding to the dish order based on the dish order, wherein the dish order comprises at least one dish;
controlling a camera to collect at least one dish picture corresponding to the dish according to the dish scheduling information;
and extracting effective information of the dish pictures to obtain at least one dish sample picture corresponding to the dish.
Specifically, the dish scheduling information at least comprises raw material preparation information, cooking information and finished product dish output information corresponding to at least one dish;
according to the dish scheduling information, control the camera and gather at least one the dish picture that the dish corresponds specifically includes:
determining picture acquisition information corresponding to at least one dish according to the raw material preparation information, the cooking information and the finished dish serving information, wherein the picture acquisition information comprises but is not limited to a picture acquisition position and picture acquisition time;
and controlling the camera corresponding to the picture acquisition position to acquire at least one raw material picture, cooking picture and finished product picture corresponding to the dish at the picture acquisition time based on the picture acquisition position and the picture acquisition time.
Specifically, the effective information extraction is performed on the dish pictures to obtain at least one dish sample picture corresponding to the dish, and the method specifically includes:
respectively calculating the similarity between any two of the dish sample pictures;
if the similarity is larger than a similarity threshold value, deleting one of any two corresponding dish sample pictures;
and identifying and deleting the fuzzy picture in the dish sample picture to obtain the dish sample picture.
Specifically, after the effective information of the dish picture is extracted to obtain at least one dish sample picture corresponding to the dish, the method further includes:
and training the dish identification model based on the dish sample picture and the dish information containing dishes in the dish sample picture.
Specifically, after the trained dish identification model is used to identify the target dish information corresponding to the target dish contained in the target dish picture, the method further includes:
acquiring the identification duration of the dish identification model to the target dish picture;
and if the recognition duration is greater than a recognition overtime threshold, training the dish recognition model by using the target dish picture and the corresponding target dish information.
Specifically, the dish information corresponding to any one of the dishes includes, but is not limited to, a dish name and/or a dish number for characterizing the dish.
According to another aspect of the present application, there is provided a self-checkout apparatus, the apparatus comprising:
the target picture scanning module is used for scanning the dishes to be identified through a preset terminal to obtain a target dish picture;
the target dish identification module is used for identifying target dish information corresponding to a target dish contained in the target dish picture by using the trained dish identification model;
the target dish input module is used for inquiring the dish price corresponding to the target dish based on the target dish information and inputting the target dish information and the dish price;
the picture acquisition module is used for executing the step of acquiring the dish sample picture required by training the dish identification model, and the acquisition step comprises the following steps: and acquiring a dish sample picture according to the picture related to the dish scheduling information corresponding to the dish order acquired by the camera.
Specifically, the apparatus further comprises:
the dish scheduling module is used for determining dish scheduling information corresponding to a dish order based on the dish order, wherein the dish order comprises at least one dish;
the picture acquisition module is used for controlling a camera to acquire at least one dish picture corresponding to the dish according to the dish scheduling information;
and the sample picture extraction module is used for extracting effective information of the dish pictures to obtain at least one dish sample picture corresponding to the dish.
Specifically, the dish scheduling information at least comprises raw material preparation information, cooking information and finished product dish output information corresponding to at least one dish;
the picture acquisition module specifically comprises:
an acquisition information determining unit, configured to determine, according to the raw material preparation information, the cooking information, and the finished product dish serving information, picture acquisition information corresponding to at least one dish, where the picture acquisition information includes, but is not limited to, a picture acquisition position and a picture acquisition time;
and the picture acquisition unit is used for controlling the camera corresponding to the picture acquisition position to acquire at least one raw material picture, cooking picture and finished product picture corresponding to the dish at the picture acquisition time based on the picture acquisition position and the picture acquisition time.
Specifically, the sample picture extraction module specifically includes:
the similarity calculation unit is used for calculating the similarity between any two dish sample pictures respectively;
the similar picture screening unit is used for deleting one of any two corresponding dish sample pictures if the similarity is greater than a similarity threshold value;
and the fuzzy picture screening unit is used for identifying and deleting the fuzzy pictures in the dish sample pictures to obtain the dish sample pictures.
Specifically, the apparatus further comprises:
and the model training module is used for extracting effective information of the dish pictures to obtain at least one dish sample picture corresponding to the dish, and training the dish identification model based on the dish sample picture and the dish information containing the dish in the dish sample picture.
Specifically, the apparatus further comprises:
the identification duration acquisition module is used for acquiring the identification duration of the dish identification model to the target dish picture after identifying the target dish information corresponding to the target dish contained in the target dish picture by using the trained dish identification model;
and the model optimization module is used for training the dish identification model by using the target dish picture and the corresponding target dish information if the identification duration is greater than an identification overtime threshold.
Specifically, the dish information corresponding to any one of the dishes includes, but is not limited to, a dish name and/or a dish number for characterizing the dish.
According to yet another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above self-checkout method.
According to yet another aspect of the present application, there is provided a computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, the processor implementing the self-checkout method when executing the program.
By means of the technical scheme, the self-service settlement method and device, the storage medium and the computer device provided by the application recognize the target dish picture through the pre-trained dish recognition model to obtain the target dish information, so that the dish price is input based on the target dish information, wherein the training sample selected by the dish recognition model is the corresponding dish scheduling information for guiding the dish making process according to the dish order, and then the order is collected in the dish making process based on the dish scheduling information and comprises the dish picture corresponding to the dish, so that the self-service settlement method and device, the storage medium and the computer device are obtained based on the dish picture. Compared with the prior art, the method and the device have the advantages that the vegetable is made to be depended on to manually shoot and collect the vegetable sample picture and manually mark the vegetable so as to train the vegetable recognition model, the vegetable recognition mode is realized, the vegetable picture corresponding to different vegetables can be collected by controlling the camera in the making process of the vegetable, the shooting waiting time is saved, the vegetable is not influenced, the vegetable information corresponding to the vegetable picture can be directly obtained without marking the vegetable picture, the problem that the mark is easy to make mistakes in the prior art is solved, the reliability and the quality of the training sample are improved, and the recognition accuracy of the vegetable recognition model and the accuracy of self-service settlement of the vegetable are improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart illustrating a self-service settlement method provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for training a dish recognition model according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another method for training a dish recognition model according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a method for training a dish recognition model according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram illustrating an apparatus for obtaining a dish sample picture according to an embodiment of the present application;
fig. 6 is a schematic structural diagram illustrating another device for acquiring a dish sample picture according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a self-service settlement method is provided, as shown in fig. 1, the method includes:
103, inquiring the dish price of the target dish according to the target dish information, and inputting the target dish information and the dish price;
the acquisition steps of the dish sample pictures required by the training dish identification model comprise: and acquiring a dish sample picture according to the picture related to the dish scheduling information corresponding to the dish order acquired by the camera.
The embodiment of the application is mainly applied to a dish self-service settlement scene in a catering shop, a customer can scan a selected dish through a preset terminal after selecting the desired dish by self, the preset terminal can be a mobile terminal such as a mobile phone and a tablet personal computer, and can also be a specific terminal which is arranged in a restaurant and can realize image acquisition, then dish identification and settlement are carried out based on a scanned picture, specifically, after a target dish picture is obtained through scanning of the preset terminal, dish identification is carried out by using a pre-trained dish identification model, so that the price of the dish corresponding to the identified target dish is inquired based on the identified target dish, the identified target dish information and the dish price are input into a self-service settlement system, and the target dish information and the price are displayed to the customer. The target dish information can be information which can distinguish different dishes, such as dish names and/or dish numbers, so that corresponding dish prices can be inquired by using the dish information.
It should be noted that, a traditional dish identification model is generally based on a dish picture obtained by a waiter or a specific person taking a picture of a finished dish, and a dish sample picture used for training the dish identification model in the application is acquired automatically by a camera arranged in a kitchen, specifically, when a kitchen intelligent system receives a dish order, the system can arrange the dish order according to the dish to be made contained in the dish order to obtain dish arrangement information corresponding to the dish order, the dish arrangement information can be used for indicating a dish making process of the kitchen, in addition, the dish arrangement information can also be used for indicating the picture acquisition work of the camera, the camera can be controlled to acquire the dish picture in the dish making process based on the dish arrangement information, so that the camera can respectively acquire the dish picture corresponding to each dish contained in the dish order, and the vegetable picture can cover whole vegetable manufacturing process, for example, the back kitchen sets up 10 cameras that can turned angle, when preparation vegetable A, the vegetable picture is gathered at first angle to control No. 1 camera, the vegetable picture is gathered at the second angle to control No. 2 camera, finally, the vegetable picture that the camera was gathered can also be screened, carry out effective information extraction to the vegetable picture, acquire the higher vegetable sample picture of definition and discernment quality from the vegetable picture, so that train vegetable identification model based on vegetable sample picture and the vegetable information that corresponds, provide technical support for vegetable identification and vegetable settlement.
The dish sample picture obtained by the method can realize intelligent picture collection by using the camera without manual shooting by shooting personnel, in the intelligent acquisition mode of the dish sample picture, firstly, the camera can acquire the dish picture in the dish making process without waiting for the dish making to finish, no waiting is needed even in the peak period of serving, the normal serving is not influenced, secondly, the shooting position, the shooting angle and the like of the camera can be controlled based on the scheduling information to collect pictures, effective information can be extracted from the collected pictures of the dishes, and thirdly, the dishes corresponding to the dish pictures collected by the camera can be determined based on the dish scheduling information, the dish calibration of the dish pictures is not needed any more, and the problem that the dish calibration which is easy to be confused is easy to cause errors is solved.
By applying the technical scheme of the embodiment, the target dish information is obtained by identifying the target dish picture through the pre-trained dish identification model, so that the dish price is input based on the target dish information, wherein the training sample selected by the dish identification model is the corresponding dish scheduling information for guiding the dish making process according to the dish order, and then the order is collected in the dish making process based on the dish scheduling information and contains the dish picture corresponding to the dish, so that the order is obtained based on the dish picture. Compared with the prior art, the method and the device have the advantages that the vegetable is made to be depended on to manually shoot and collect the vegetable sample picture and manually mark the vegetable so as to train the vegetable recognition model, the vegetable recognition mode is realized, the vegetable picture corresponding to different vegetables can be collected by controlling the camera in the making process of the vegetable, the shooting waiting time is saved, the vegetable is not influenced, the vegetable information corresponding to the vegetable picture can be directly obtained without marking the vegetable picture, the problem that the mark is easy to make mistakes in the prior art is solved, the reliability and the quality of the training sample are improved, and the recognition accuracy of the vegetable recognition model and the accuracy of self-service settlement of the vegetable are improved.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully describe the specific implementation process of the embodiment, a flow diagram of a method for training a dish recognition model is provided, as shown in fig. 2, the method includes:
Specifically, the dish scheduling information at least comprises raw material preparation information, cooking information and finished product dish output information corresponding to at least one dish.
In the above embodiment, the dish scheduling information may include the whole process of making the dish, and specifically may include raw material preparation information of the dish, such as a raw material preparation position, a preparation time, and the like, cooking information of the dish, such as which kitchen utensil is used for cooking, a cooking time, and the like, and dish output information of the finished dish, such as a finished dish containing position, and the like.
In the above embodiment, the picture obtaining position and the picture obtaining time corresponding to each dish are determined based on the raw material preparation information, the cooking information and the finished product dish serving information, for example, the picture obtaining position and the picture obtaining time of the prepared dish are determined based on the raw material preparation position and the raw material preparation time, so that the camera is controlled to work based on the picture obtaining position and the picture obtaining time.
And 203, controlling a camera corresponding to the picture acquisition position to acquire a raw material picture, a cooking picture and a finished product picture corresponding to at least one dish at the picture acquisition time based on the picture acquisition position and the picture acquisition time.
In the above embodiment, the camera capable of shooting the position is determined according to the picture obtaining position, so that the dish picture is collected within corresponding picture obtaining time, the dish picture at least comprises a raw material picture, a cooking picture and a finished product dish picture in a dish making process, and more complete information of a dish can be contained in the dish picture, so that training can be realized on the basis of richer information such as a raw material of the dish, a cooking picture of the dish and a finished product dish picture in the dish identifying model, and the identifying effect of the trained dish identifying model is better.
And step 204, respectively calculating the similarity between any two dish sample pictures.
And step 205, if the similarity is greater than the similarity threshold, deleting one of any two corresponding dish sample pictures.
And step 206, identifying and deleting the fuzzy picture in the dish sample picture to obtain the dish sample picture.
And step 207, training a dish identification model based on the dish sample picture and the dish information of the dishes contained in the dish sample picture.
In steps 204 to 207, a dish sample picture is screened from the dish pictures based on the similarity and the definition, respectively calculating the similarity between every two dishes for the dish pictures corresponding to any dish, if the similarity is greater than a similarity threshold value, deleting any one dish, then, the fuzzy picture is deleted from the pictures subjected to similarity screening, so as to obtain the dish sample picture, and in addition, the blurred picture can also be repaired by technical means such as image enhancement, image restoration, super-resolution reconstruction and the like to obtain a dish sample picture, and then the obtained dish sample picture and the dish information of the dishes contained in the dish sample picture are utilized to train a dish identification model, the trained dish identification model can identify corresponding dish information based on any dish picture, wherein dishes contained in the dish sample picture can be determined based on the dish scheduling information.
Further, as a refinement and an extension of the specific implementation manner of the foregoing embodiment, in order to fully describe the specific implementation process of the embodiment, the embodiment of the present application further provides a flow diagram of another method for training a dish recognition model, as shown in fig. 3, the method includes:
and 303, inquiring the price of the dish corresponding to the target dish based on the target dish information, and inputting the target dish information and the price of the dish.
The embodiment of the application is mainly applied to a dish settlement scene, after a customer selects a desired dish by self, the customer can scan the selected dish through the reservation terminal, the reservation terminal can be a mobile terminal such as a mobile phone and a tablet personal computer, and can also be a specific terminal which is arranged in a restaurant and can realize image acquisition, then dish identification and settlement are carried out based on a scanned picture, specifically, after a target dish picture is obtained through scanning of the reservation terminal, dish identification is carried out by using a pre-trained dish identification model, so that a dish price corresponding to the target dish is inquired based on the identified dish, the identified dish information and the dish price are recorded into a self-service settlement system, and the dish information and the price are displayed to the customer. The dish information can be information which can distinguish different dishes, such as dish names and/or dish numbers, so that the corresponding price of the dishes can be inquired by using the dish information.
and 305, if the recognition duration is greater than the recognition overtime threshold, training a dish recognition model by using the target dish picture and the corresponding target dish information.
In step 304 and step 305, an optimization training method of a dish identification model is provided, when the identification time of the model for the target dish picture is too long and is greater than the identification timeout threshold, the identification capability of the model can be considered to be still to be improved, and at this time, the model can be optimized and trained by using the target dish picture and the target dish information, which is beneficial to improving the identification efficiency of the model for the dish information.
Fig. 4 is a flowchart illustrating a method for training a dish recognition model according to another embodiment of the present application.
and 7, optimizing the dish identification model by using the identification result of the self-service settlement system.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides a self-service settlement apparatus, as shown in fig. 5, the apparatus includes:
the target picture scanning module 51 is configured to scan a dish to be identified through a predetermined terminal to obtain a target dish picture;
the target dish identification module 52 is configured to identify target dish information corresponding to a target dish included in a target dish picture by using the trained dish identification model;
the target dish input module 53 is configured to query a dish price corresponding to the target dish based on the target dish information, and input the target dish information and the dish price;
a picture acquisition module 54, configured to perform an acquisition step of a dish sample picture required by the training of the dish identification model, where the acquisition step includes: and acquiring a dish sample picture according to the picture related to the dish scheduling information corresponding to the dish order acquired by the camera.
In a specific application scenario, as shown in fig. 6, the apparatus further includes:
the dish scheduling module 55 is configured to determine, based on a dish order, dish scheduling information corresponding to the dish order, where the dish order includes at least one dish;
the picture acquisition module 54 is used for controlling the camera to acquire a dish picture corresponding to at least one dish according to the dish scheduling information;
and the sample picture extracting module 56 is configured to extract effective information of the dish pictures to obtain a dish sample picture corresponding to at least one dish.
Specifically, the dish scheduling information at least comprises raw material preparation information, cooking information and finished product dish output information corresponding to at least one dish;
the image capturing module 54 specifically includes:
an acquisition information determining unit 541, configured to determine, according to the raw material preparation information, the cooking information, and the finished dish serving information, picture acquisition information corresponding to at least one dish, where the picture acquisition information includes, but is not limited to, a picture acquisition position and a picture acquisition time;
and the picture acquisition unit 542 is configured to control a camera corresponding to the picture acquisition position to acquire a raw material picture, a cooking picture and a finished product picture corresponding to at least one dish at the picture acquisition time based on the picture acquisition position and the picture acquisition time.
Specifically, the sample picture extracting module 56 specifically includes:
a similarity calculation unit 561, configured to calculate similarities between any two of the dish sample pictures respectively;
a similar picture screening unit 562, configured to delete one of any two corresponding dish sample pictures if the similarity is greater than the similarity threshold;
and the fuzzy picture screening unit 563 is configured to identify and delete a fuzzy picture in the dish sample picture to obtain the dish sample picture.
In a specific application scenario, as shown in fig. 6, the apparatus further includes:
and the model training module 57 is configured to perform effective information extraction on the dish images to obtain a dish sample image corresponding to at least one dish, and train a dish identification model based on the dish sample image and the dish information including the dish in the dish sample image.
In a specific application scenario, as shown in fig. 6, the apparatus further includes:
the identification duration acquisition module 58 is configured to acquire identification duration of the dish identification model for the target dish picture after identifying target dish information corresponding to the target dish included in the target dish picture by using the trained dish identification model;
and the model optimization module 59 is configured to train the dish identification model by using the target dish picture and the corresponding target dish information if the identification duration is greater than the identification timeout threshold.
Specifically, the dish information corresponding to any dish includes, but is not limited to, a dish name and/or a dish number for characterizing the dish.
It should be noted that other corresponding descriptions of the functional units related to the apparatus for obtaining a menu sample picture provided in the embodiment of the present application may refer to the corresponding descriptions in fig. 1 to fig. 4, and are not repeated herein.
Based on the method shown in fig. 1 to 4, correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for acquiring the dish sample picture shown in fig. 1 to 4.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the methods shown in fig. 1 to fig. 4 and the virtual device embodiments shown in fig. 5 and fig. 6, in order to achieve the above object, an embodiment of the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the method for acquiring a dish sample picture as shown in fig. 1 to 4.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device structure that is not limited to the computer device, and may include more or less components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the description of the above embodiment, those skilled in the art can clearly understand that the method can be implemented by software plus a necessary universal hardware platform, and can also be implemented by hardware, where a pre-trained dish identification model is used to identify a target dish picture to obtain target dish information, so as to input a dish price based on the target dish information, where a training sample selected by the dish identification model is corresponding dish scheduling information for guiding a dish making process according to a dish order, and then, based on the dish scheduling information, an order including a dish picture corresponding to a dish is acquired in the dish making process, so that the dish price is acquired based on the dish picture. Compared with the prior art, the method and the device have the advantages that the vegetable is made to be depended on to manually shoot and collect the vegetable sample picture and manually mark the vegetable so as to train the vegetable recognition model, the vegetable recognition mode is realized, the vegetable picture corresponding to different vegetables can be collected by controlling the camera in the making process of the vegetable, the shooting waiting time is saved, the vegetable is not influenced, the vegetable information corresponding to the vegetable picture can be directly obtained without marking the vegetable picture, the problem that the mark is easy to make mistakes in the prior art is solved, the reliability and the quality of the training sample are improved, and the recognition accuracy of the vegetable recognition model and the accuracy of self-service settlement of the vegetable are improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.
Claims (10)
1. A self-checkout method, the method comprising:
scanning the dishes to be identified through a preset terminal to obtain a target dish picture;
identifying target dish information corresponding to the target dish picture by using the trained dish identification model;
inquiring the dish price of a target dish according to the target dish information, and inputting the target dish information and the dish price;
the dish identification model is obtained through dish sample pictures and corresponding dish information training.
2. The method of claim 1, wherein the picture of the dish sample is obtained by:
determining the dish scheduling information corresponding to the dish order based on the dish order, wherein the dish order comprises at least one dish;
controlling a camera to collect at least one dish picture corresponding to the dish according to the dish scheduling information;
and extracting effective information of the dish pictures to obtain at least one dish sample picture corresponding to the dish.
3. The method of claim 2, wherein the dish scheduling information includes at least raw material preparation information, cooking information, and finished dish serving information corresponding to at least one of the dishes;
according to the dish scheduling information, control the camera and gather at least one the dish picture that the dish corresponds specifically includes:
determining picture acquisition information corresponding to at least one dish according to the raw material preparation information, the cooking information and the finished dish serving information, wherein the picture acquisition information comprises but is not limited to a picture acquisition position and picture acquisition time;
and controlling the camera corresponding to the picture acquisition position to acquire at least one raw material picture, cooking picture and finished product picture corresponding to the dish at the picture acquisition time based on the picture acquisition position and the picture acquisition time.
4. The method according to claim 3, wherein the extracting of the valid information from the dish pictures to obtain at least one dish sample picture corresponding to the dish specifically comprises:
respectively calculating the similarity between any two of the dish sample pictures;
if the similarity is larger than a similarity threshold value, deleting one of any two corresponding dish sample pictures;
and identifying and deleting the fuzzy picture in the dish sample picture to obtain the dish sample picture.
5. The method of any one of claims 1 to 4, wherein after the effective information extraction is performed on the dish pictures to obtain a dish sample picture corresponding to at least one dish, the method further comprises:
and training the dish identification model based on the dish sample picture and the dish information containing dishes in the dish sample picture.
6. The method of claim 5, wherein after identifying the target dish information corresponding to the target dish included in the target dish picture by using the trained dish identification model, the method further comprises:
acquiring the identification duration of the dish identification model to the target dish picture;
and if the identification duration is greater than an identification overtime threshold, training the dish identification model by using the target dish picture and the corresponding target dish information.
7. The method of claim 5, wherein the dish information corresponding to any one of the dishes includes, but is not limited to, a dish name and/or a dish number used to characterize the dish.
8. A self-checkout apparatus, the apparatus comprising:
the target picture scanning module is used for scanning the dishes to be identified through a preset terminal to obtain a target dish picture;
the target dish identification module is used for identifying target dish information corresponding to a target dish contained in the target dish picture by using the trained dish identification model;
the target dish input module is used for inquiring the dish price corresponding to the target dish based on the target dish information and inputting the target dish information and the dish price;
and the picture acquisition module is used for executing the step of acquiring the dish sample picture required by training the dish identification model, and the dish identification model is obtained by training the dish sample picture and the corresponding dish information.
9. A storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the self-checkout method of any of claims 1 to 7.
10. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the self-checkout method of any of claims 1 to 7 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210147917.9A CN114550389A (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010299237.XA CN111640267B (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
CN202210147917.9A CN114550389A (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010299237.XA Division CN111640267B (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114550389A true CN114550389A (en) | 2022-05-27 |
Family
ID=72333184
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210147917.9A Pending CN114550389A (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
CN202010299237.XA Active CN111640267B (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010299237.XA Active CN111640267B (en) | 2020-04-16 | 2020-04-16 | Self-service settlement method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN114550389A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115691010A (en) * | 2022-10-24 | 2023-02-03 | 深圳进化动力数码科技有限公司 | Automatic checkout method, system, equipment and storage medium based on dish identification |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113537196B (en) * | 2021-07-21 | 2023-04-07 | 拉扎斯网络科技(上海)有限公司 | Picture identification method and device, computer equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319641A (en) * | 2017-12-21 | 2018-07-24 | 无锡雅座在线科技股份有限公司 | Dish information input method and device |
CN109242017A (en) * | 2018-08-30 | 2019-01-18 | 杨镇蔚 | Intelligent identification Method, device and the equipment of object information |
CN110020603A (en) * | 2019-03-08 | 2019-07-16 | 华东师范大学 | Self-checkout system and method based on convolutional neural networks |
CN110059654A (en) * | 2019-04-25 | 2019-07-26 | 台州智必安科技有限责任公司 | A kind of vegetable Automatic-settlement and healthy diet management method based on fine granularity identification |
CN110059551A (en) * | 2019-03-12 | 2019-07-26 | 五邑大学 | A kind of automatic checkout system of food based on image recognition |
CN110111099A (en) * | 2019-05-07 | 2019-08-09 | 武汉众诚卓越科技有限公司 | A kind of order settlement method, system and storage medium based on machine vision technique |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004240835A (en) * | 2003-02-07 | 2004-08-26 | Glory Ltd | Article recognition device |
CN103108124B (en) * | 2012-12-28 | 2017-07-18 | 上海鼎为电子科技(集团)有限公司 | Image acquiring method, device and mobile terminal |
JP5927147B2 (en) * | 2013-07-12 | 2016-05-25 | 東芝テック株式会社 | Product recognition apparatus and product recognition program |
CN103679587A (en) * | 2013-12-31 | 2014-03-26 | 牛占峰 | Ordering system for catering service |
CN107122905B (en) * | 2017-04-28 | 2018-06-01 | 毕得阳 | Diet process management method, system and its diet mark and computer storage media |
JP6842400B2 (en) * | 2017-11-06 | 2021-03-17 | 東芝テック株式会社 | Product data processing system |
CN109299721A (en) * | 2018-07-24 | 2019-02-01 | 上海常仁信息科技有限公司 | A kind of vegetable identifying system and method based on image recognition technology |
CN109446915B (en) * | 2018-09-29 | 2020-12-29 | 口碑(上海)信息技术有限公司 | Dish information generation method and device and electronic equipment |
CN110084642A (en) * | 2019-04-19 | 2019-08-02 | 哈尔滨新中新电子股份有限公司 | Vegetable recognition methods based on target detection and image retrieval |
CN110795992A (en) * | 2019-09-11 | 2020-02-14 | 北京云迹科技有限公司 | Training data acquisition method, commodity identification method and corresponding device |
-
2020
- 2020-04-16 CN CN202210147917.9A patent/CN114550389A/en active Pending
- 2020-04-16 CN CN202010299237.XA patent/CN111640267B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319641A (en) * | 2017-12-21 | 2018-07-24 | 无锡雅座在线科技股份有限公司 | Dish information input method and device |
CN109242017A (en) * | 2018-08-30 | 2019-01-18 | 杨镇蔚 | Intelligent identification Method, device and the equipment of object information |
CN110020603A (en) * | 2019-03-08 | 2019-07-16 | 华东师范大学 | Self-checkout system and method based on convolutional neural networks |
CN110059551A (en) * | 2019-03-12 | 2019-07-26 | 五邑大学 | A kind of automatic checkout system of food based on image recognition |
CN110059654A (en) * | 2019-04-25 | 2019-07-26 | 台州智必安科技有限责任公司 | A kind of vegetable Automatic-settlement and healthy diet management method based on fine granularity identification |
CN110111099A (en) * | 2019-05-07 | 2019-08-09 | 武汉众诚卓越科技有限公司 | A kind of order settlement method, system and storage medium based on machine vision technique |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115691010A (en) * | 2022-10-24 | 2023-02-03 | 深圳进化动力数码科技有限公司 | Automatic checkout method, system, equipment and storage medium based on dish identification |
Also Published As
Publication number | Publication date |
---|---|
CN111640267A (en) | 2020-09-08 |
CN111640267B (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111640267B (en) | Self-service settlement method and device, storage medium and computer equipment | |
JP5740318B2 (en) | Image processing system, image processing method, and program | |
CN111080493B (en) | Dish information identification method and device and dish self-service settlement system | |
CN110493595B (en) | Camera detection method and device, storage medium and electronic device | |
CN108337471B (en) | Video picture processing method and device | |
CN113469044B (en) | Dining recording system and method | |
WO2020119254A1 (en) | Method and device for filter recommendation, electronic equipment, and storage medium | |
JP5601250B2 (en) | Image data processing method, program, and terminal device | |
CN109961594A (en) | Data object information processing method, apparatus and system | |
CN108320236A (en) | A kind of interior space surveying and mapping data management system | |
CN110991434B (en) | Self-service terminal certificate identification method and device | |
CN111144864A (en) | Catering settlement method, catering settlement device and storage medium | |
US20170163904A1 (en) | Picture processing method and electronic device | |
JP4973634B2 (en) | Order data processing system and program | |
KR20180057262A (en) | Accounting system using a receipt | |
CN108922066A (en) | A kind of video-photographic works display systems and the method being shown | |
CN106294610A (en) | Mobile terminal and based on augmented reality cook experiential method | |
CN113343003A (en) | Dining nutrition construction recording system and method | |
CN111429641B (en) | Order calling method, device and system | |
JP6958940B2 (en) | Management equipment, management system, management method and management program | |
CN111401346B (en) | Information processing method, device, system, storage medium and computer equipment | |
CN112116038A (en) | Internet of things-based dining room noninductive settlement method and device | |
CN113569152B (en) | Social interaction method and device based on data visualization and computer storage medium | |
KR20150033370A (en) | Receipt managing System | |
CN116863282B (en) | Intelligent picture identification retrieval system based on data analysis |
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 |