CN114154665B - Catering management method, system, equipment and storage medium - Google Patents
Catering management method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN114154665B CN114154665B CN202111416679.9A CN202111416679A CN114154665B CN 114154665 B CN114154665 B CN 114154665B CN 202111416679 A CN202111416679 A CN 202111416679A CN 114154665 B CN114154665 B CN 114154665B
- Authority
- CN
- China
- Prior art keywords
- target
- queuing
- waiting time
- restaurant
- user information
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 63
- 235000012054 meals Nutrition 0.000 claims abstract description 229
- 238000000034 method Methods 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012163 sequencing technique Methods 0.000 claims description 5
- 238000004904 shortening Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 5
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000010813 municipal solid waste Substances 0.000 description 1
- 230000000291 postprandial effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/02—Reservations, e.g. for tickets, services or events
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/12—Hotels or restaurants
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C11/00—Arrangements, systems or apparatus for checking, e.g. the occurrence of a condition, not provided for elsewhere
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C11/00—Arrangements, systems or apparatus for checking, e.g. the occurrence of a condition, not provided for elsewhere
- G07C2011/04—Arrangements, systems or apparatus for checking, e.g. the occurrence of a condition, not provided for elsewhere related to queuing systems
Landscapes
- Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a restaurant management method and a restaurant management system, wherein a server and terminal equipment which has one-to-one correspondence with restaurants are arranged, so that the number calling condition and the user queuing condition of a restaurant can be fed back to the server through the terminal equipment, the server can carry out comprehensive management, and when the first terminal equipment detects the number calling operation of a first meal number, first user information corresponding to the first meal number can be sent to the server, so that the server deletes the meal number of the first user information in other restaurants and updates the queuing tables of other restaurants, so that under the condition that one user queues in a plurality of restaurants, the meal number and the user information of the user in other restaurants can be deleted after the user is identified to have a meal in one restaurant, the user can not queue in other restaurants, and the waiting time of each meal number in the queuing tables of other restaurants can be updated, the accuracy of the waiting time can be improved, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a catering management method, a catering management system, catering management equipment and a storage medium.
Background
At present, more and more comprehensive shopping malls appear, a series of interactions such as shopping, entertainment, dining and the like can be realized in the comprehensive shopping malls, generally, more restaurants exist in one shopping mall, and a customer needs to take a number at the peak of dining, and can have a meal after waiting for the number.
In order to let the customer know how long it is going to have a meal, the user is usually informed about a time, such as fifteen minutes, twenty minutes, etc.
However, currently, the accuracy of determining the waiting time for the user to have a meal is low, which results in poor user experience.
Disclosure of Invention
The invention mainly aims to provide a catering management method, a catering management system, catering management equipment and a storage medium, and solves the problem that in the prior art, the accuracy for determining the waiting time for a user to have a meal is low, so that the user experience is poor.
In order to achieve the above object, a first aspect of the present invention provides a restaurant management method, where the method is applied to a restaurant management system, and the restaurant management system includes: the server and the terminal equipment have one-to-one correspondence relation with the restaurant and are used for managing the waiting time of the user of the restaurant, and the method comprises the following steps:
if the first terminal device detects that the first meal number confirms to have a meal, determining first user information corresponding to the first meal number, deleting the first meal number from a first queuing list of the first terminal device, and updating the waiting time of each meal number in the first queuing list; the queuing table comprises a corresponding relation between the meal number and the user information;
the server receives the first user information sent by the first terminal device and the updated first queuing list, and replaces the queuing list of the first terminal device stored by the server with the first queuing list;
the server searches a stored queuing list of other terminal equipment except the first terminal equipment, and determines whether the user information of the meal number in the queuing list of the other terminal equipment is the same as the first user information;
and if a second meal number with the same user information as the first user information exists in a second queuing list, the server controls to delete the corresponding relation between the second meal number and the first user information in the second queuing list which is stored by the server and second terminal equipment, and update the waiting time of each meal number in the second queuing list.
In a feasible implementation manner, the controlling, by the server, deleting a corresponding relationship between the second meal number and the first user information in a second queuing list that is already stored by the server and the second terminal device, and updating the waiting time of each meal number in the second queuing list includes:
the server deletes the corresponding relation between the second meal number and the first user information in a second queuing list stored in the server, and updates the waiting time of each meal number in the second queuing list;
and sending the updated second queuing table to a second terminal device corresponding to the second queuing table, so that the second terminal device can replace the existing queuing table by using the second queuing table.
In a feasible implementation manner, the controlling, by the server, deleting a corresponding relationship between the second meal number and the first user information in a second queuing list that is already stored by the server and the second terminal device, and updating the waiting time of each meal number in the second queuing list includes:
the server sends a deleting instruction to second terminal equipment corresponding to the second queuing table, wherein the deleting instruction comprises the second meal number;
the second terminal device deletes the corresponding relation between the second meal number and the first user information in the stored second queuing list, and updates the waiting time of each meal number in the second queuing list;
and sending the updated second queuing table to the server so that the server can replace the existing queuing table by using the updated second queuing table.
In one possible implementation, the method further includes:
the server searches a queuing list of each terminal device in the server to determine target user information, wherein the target user information refers to user information existing in at least two actual queuing lists;
for each piece of target user information, if a target face image of the target user information is obtained, searching a target user matched with the target face image by using image data acquired by a camera in the coverage area of the catering management system, and determining the position of the target user;
predicting a restaurant selected by the target user according to the position of the target user to obtain a predicted restaurant;
and updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the predicted restaurant in the actual queuing list according to the predicted restaurant.
In a feasible implementation manner, the searching for a target user matched with the target face image and determining the position of the target user by using image data acquired by a camera in a coverage area of the catering management system includes:
calling image data acquired by a camera in the coverage area of the catering management system, carrying out face recognition by using the image data, matching the recognized face with the target face image, and determining a matched face image;
determining a target camera from which the matched face image comes;
if the number of the target cameras is 1, determining the position of the target user based on the position of the target cameras;
if the number of the target cameras is multiple, determining the proportion of the matched face image in the target image which is shot by the target camera and contains the matched face image, and determining the position of the target camera with the largest proportion as the position of the target user.
In one possible implementation, the predicting a restaurant selected by the target user according to the location of the target user results in a predicted restaurant, including:
determining the distance between the position of the target user and the position of a target restaurant, wherein the target restaurant is a restaurant of the terminal device corresponding to the actual queuing list;
determining the minimum value in the distances, and if the minimum value is smaller than or equal to a preset threshold value, determining the target restaurant with the minimum value as the predicted restaurant;
if the minimum value is larger than the preset threshold value, obtaining historical dining data of the target user information, determining the occurrence times of the target restaurant in the historical dining data, and selecting the target restaurant with the largest occurrence times as the predicted restaurant.
In a feasible implementation manner, the updating, according to the predicted restaurant, the waiting time of each meal number in other actual queuing lists except for the queuing list corresponding to the predicted restaurant in the actual queuing list includes:
determining the number of meals and waiting time of the target user information in the actual queuing list;
sequencing the waiting time according to the sequence of the waiting time from short to long to obtain a waiting time sequence;
determining a target location of the wait time of the predicted restaurant in the sequence of wait times;
determining that an actual queuing table corresponding to the waiting time before the target position in the waiting time sequence is unchanged;
for the target waiting time after the target position in the waiting time sequence, acquiring the time difference between the waiting time of the meal number corresponding to the target waiting time and the waiting time of the next meal number;
based on the number of waiting time of the interval between the target waiting time and the target position, searching a preset corresponding relation between the number of waiting time and a proportionality coefficient, and determining a target proportionality coefficient having a corresponding relation with the number;
calculating the product of the time difference and the proportional coefficient to obtain a prediction shortening time;
and subtracting the reducible time from the waiting time of all the meal numbers after the corresponding meal number in the corresponding actual queuing list by the target waiting time to obtain the updated actual queuing list.
In order to achieve the above object, a second aspect of the present invention provides a restaurant management system, where the restaurant management system is applied to a restaurant management system, and the restaurant management system includes: a server, a terminal device, the terminal device having a one-to-one correspondence with a restaurant and being configured to manage user waiting time for the restaurant, the system comprising:
the first terminal device is used for determining first user information corresponding to a first meal number if the confirmed meal of the first meal number is detected, deleting the first meal number from a first queuing list of the first terminal device, and updating the waiting time of each meal number in the first queuing list; the queuing list comprises a corresponding relation between a meal number and user information, and the first terminal equipment is any one terminal equipment in the catering management system;
the server is configured to receive the first user information and the updated first queuing list sent by the first terminal device, and replace the queuing list of the first terminal device, which is stored by the server, with the first queuing list;
the server is further configured to search a stored queuing table of other terminal devices except the first terminal device, and determine whether the user information of the meal number in the queuing table of the other terminal devices is the same as the first user information;
and the server is further configured to control to delete the correspondence between the second meal number and the first user information in the second queuing list, which is stored by the server and the second terminal device, if a second meal number with the same user information as the first user information exists in the second queuing list, and update the waiting time of each meal number in the second queuing list.
To achieve the above object, a third aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps as set forth in the first aspect or any possible implementation manner.
To achieve the above object, a fourth aspect of the present invention provides a computer device, comprising a memory and a processor, the memory storing a computer program, the computer program, when executed by the processor, causing the processor to perform the steps as shown in the first aspect or any possible implementation manner.
The embodiment of the invention has the following beneficial effects:
the invention provides a restaurant management method, which comprises the steps of feeding back the number calling condition and the user queuing condition of a restaurant to a server through a terminal device by setting the server and the terminal device which has a one-to-one correspondence with the restaurant, so that the server can carry out comprehensive management, and when the first terminal device detects the number calling operation of a first meal number, sending first user information corresponding to the first meal number to the server, so that the server deletes the meal number of the first user information in other restaurants, and updates the queuing tables of other restaurants, so that under the condition that one user queues in a plurality of restaurants, the meal number and the user information of the user in other restaurants can be deleted after the user is identified to have a meal in one restaurant, so that the user does not continue to queue in other restaurants, and the waiting time of each meal number in the queuing tables of other restaurants is updated, the accuracy of the waiting time can be improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is an application environment diagram of a restaurant management method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a restaurant management method according to an embodiment of the present disclosure;
FIG. 3 is another flowchart of a restaurant management method according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is an application environment diagram of a restaurant management method according to an embodiment of the present invention. Referring to fig. 1, the restaurant management method is applied to a restaurant management system, and the restaurant management system includes a server 110 and a plurality of terminal devices 120. The server 110 and the terminal device 120 are connected via a network, the terminal device 120 may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 110 may be implemented as a stand-alone server or as a server cluster comprising a plurality of servers. The server 110 is configured to perform data interaction with the terminal device 120 having a one-to-one correspondence relationship with a restaurant, so as to perform unified and real-time management and control on the operation state of each restaurant, and the terminal device 120 having a one-to-one correspondence relationship with the restaurant and being configured to manage user waiting time of the restaurant.
Referring to fig. 2, fig. 2 is a flowchart of a restaurant management method according to an embodiment of the present invention, where the method shown in fig. 2 is applied to a restaurant management system, and the restaurant management system includes: the server and the terminal equipment, wherein the terminal equipment has a one-to-one correspondence relationship with the restaurant and is used for managing the waiting time of the restaurant user, and the method comprises the following steps:
201. if the first terminal device detects that the first meal number confirms the meal, determining first user information corresponding to the first meal number, deleting the first meal number from a first queuing list of the first terminal device, and updating the waiting time of each meal number in the first queuing list; the queuing table comprises a corresponding relation between the meal number and the user information;
it can be understood that the terminal device has a one-to-one correspondence relationship with the restaurant, and is used for managing the waiting time of the users of the restaurant, when the restaurant is full of users, the users who need to have meals can take numbers, after the numbers are taken, the terminal device numbers each user waiting for meals to obtain the meal number of each user, the order of the numbers is determined according to the starting waiting time, and further a queuing table corresponding to the restaurant can be obtained according to the waiting time, the queuing table includes the correspondence relationship between each user and the meal number, and the meal number is a meal voucher for the user to have meals, so that the relationship between each meal number and the user is uniquely determined, further, when the first terminal device detects that the first meal number confirms a meal, that is, it indicates that the first user corresponding to the first meal number has been numbered and has entered the restaurant to have meals, determining the first user information, deleting the first meal number from the first queuing list, and updating the waiting time of each meal number in the first queuing list. Wherein step 201 may be performed by the terminal device.
It should be noted that the queuing list includes a corresponding relationship between each user and a meal number, where the user is identified by user information, and in a feasible implementation manner, the user information may be a mobile phone number of the user, and when the user takes a number, the user may take the number by using the mobile phone number. The first terminal device calls the number according to the generated arrangement list, if the user does not have a meal after calling the number, the user gives up the meal number, and if the user has a meal after calling the number, the user can confirm the meal by the staff of the restaurant, that is, the meal is confirmed.
Illustratively, n terminal devices Zn exist in the mall management system, where n is a positive integer, each terminal device corresponds to one restaurant, each restaurant has one queuing list, and then one terminal device Zn corresponds to one queuing list Ln, and the first user information is a mobile phone number; when a first terminal device Z1 of the n terminal devices Zn detects that the first meal number Z1L1a confirms the meal, determine a mobile phone number corresponding to the first meal number Z1L1a, delete queuing data corresponding to the first meal number Z1L1a according to the mobile phone number, that is, delete the queuing data from the first queuing list L1 of the first terminal device Z1, and update the waiting time of the remaining meal numbers Z1L1& in the first queuing list L1, for example, 5 people are queued in the first queuing list L1, and the meal numbers include { Z1L1a, Z1L1b, Z1L1c, Z1L1d, Z1L1e }, where the first queuing list L1 is { Z1L1a, Z1L1b, Z1L1c, Z1L1d, Z1L1e, Z1L 5475 } and Z1L1, Z1L1 is detected as a postprandial list Z1L1, Z6854.6854.
202. The server receives the first user information sent by the first terminal device and the updated first queuing list, and replaces the queuing list of the first terminal device stored by the server with the first queuing list;
it can be understood that the server can perform centralized management on the terminal devices of the restaurants, so that the first terminal device and the server can perform data interaction, the first user information and the updated first queuing list of the first terminal device are both sent to the server after the first queuing list of the first terminal device is updated, and the server can replace the historical data in the server by using the updated first queuing list, replace the stored queuing list of the first terminal device, realize state synchronization with the terminal device, and realize management on the terminal device. Wherein step 202 may be performed by a server.
203. The server searches a stored queuing list of other terminal equipment except the first terminal equipment, and determines whether the user information of the meal number in the queuing list of the other terminal equipment is the same as the first user information;
further, in this embodiment, the server is used for management of the shopping mall, and therefore, the server stores therein data of a plurality of terminal devices, each of which is in one-to-one correspondence with each restaurant, and therefore, the terminal devices comprise terminal devices corresponding to restaurants in a shopping mall, each terminal device may have a queuing list, and the queuing list is synchronized between the terminal device and the server, so that, after receiving the updated first queuing list sent by the first terminal device, the queuing list of other restaurants in the mall corresponding to the server except the restaurant corresponding to the first terminal device, that is, the queuing list of other terminal devices, can be queried to determine whether the user information of the meal number in the queuing list of other terminal devices is the same as the first user information, thus, it can be determined in which restaurant the user corresponding to the first user information is queued. Wherein step 203 may be performed by a server.
204. And if a second meal number with the same user information as the first user information exists in a second queuing list, the server controls to delete the corresponding relation between the second meal number and the first user information in the second queuing list which is stored by the server and second terminal equipment, and update the waiting time of each meal number in the second queuing list.
In a feasible implementation manner, if the user information contained in the existing queuing table in the other terminal device is the same as the first user information, the queuing table is called a second queuing table, and the second queuing table has a second meal number with the user information being the same as the first user information, which can indicate that the user corresponding to the first user information is queued in multiple restaurants, and after the user corresponding to the first user information confirms the meal in the restaurant corresponding to the first queuing table, the corresponding relation between the second meal number of the second queuing table and the first user information stored in the server and the second terminal device can be deleted, and simultaneously the waiting time of each meal number in the second queuing table is updated, that is, other queuing information of the first user information of the confirmed meal is deleted, and the resource occupation of the user of the confirmed meal on the actual queuing table is eliminated, so that the queuing table is in accordance with the actual situation. Step 204 may be executed by the server, where the second terminal device is a terminal device corresponding to a queuing table containing the same user information as the first user information.
Illustratively, continuing with the example in step 201, if the user corresponding to the first meal number Z1L1a is still queued in the remaining queuing lists L2 and L3, then the second queuing lists L2 and L3 in which the user is queuing are determined by using the mobile phone number, further, second meal numbers Z1L2d and Z1L3c which are the same as the mobile phone numbers are obtained in the second queuing lists L2 and L3, further, the server deletes the second meal number Z1L2d in the second queuing list L2 and the second meal number Z1L3c in the third queuing list L3, reduces the occupation of the users who have eaten, subtracts the waiting time of the second meal number corresponding to the remaining meal number in the queuing list with the second meal number deleted, for example, deletes the second meal number Z1L2d in the second queuing list L2, the waiting time for the second meal number Z1L2d in the second queuing table L2 is 10s, and the waiting time for the remaining meal numbers is subtracted by 10 s; if the second meal number Z1L3c of the second queuing list L3 is deleted, the waiting time of the second meal number Z1L3c in the third queuing list L3 is 5s, and the waiting time of the rest meal numbers is subtracted by 5s, it can be understood that the waiting time of the second meal number corresponding to the used meal user in each queuing list may be different in different queuing lists.
The invention provides a restaurant management method, which comprises the steps of feeding back the number calling condition and the user queuing condition of a restaurant to a server through a terminal device by setting the server and the terminal device which has a one-to-one correspondence with the restaurant, so that the server can carry out comprehensive management, and when the first terminal device detects the number calling operation of a first meal number, sending first user information corresponding to the first meal number to the server, so that the server deletes the meal number of the first user information in other restaurants, and updates the queuing tables of other restaurants, so that under the condition that one user queues in a plurality of restaurants, the meal number and the user information of the user in other restaurants can be deleted after the user is identified to have a meal in one restaurant, so that the user does not continue to queue in other restaurants, and the waiting time of each meal number in the queuing tables of other restaurants is updated, the accuracy of the waiting time can be improved, and the user experience is improved.
Referring to fig. 3, fig. 3 is another flowchart of a restaurant management method according to an embodiment of the present invention, where the method shown in fig. 3 is applied to a restaurant management system, and the restaurant management system includes: the server and the terminal equipment have one-to-one correspondence relationship with the restaurant and are used for managing the user waiting time of the restaurant, and the method comprises the following steps:
301. if the first terminal device detects that the first meal number confirms to have a meal, determining first user information corresponding to the first meal number, deleting the first meal number from a first queuing list of the first terminal device, and updating the waiting time of each meal number in the first queuing list; the queuing table comprises a corresponding relation between the meal number and the user information;
302. the server receives the first user information sent by the first terminal device and the updated first queuing list, and replaces the queuing list of the first terminal device stored by the server with the first queuing list;
303. the server searches a stored queuing list of other terminal equipment except the first terminal equipment, and determines whether the user information of the meal number in the queuing list of the other terminal equipment is the same as the first user information;
304. if a second meal number with the same user information as the first user information exists in a second queuing list, the server controls to delete the corresponding relation between the second meal number and the first user information in the second queuing list which is stored by the server and the second terminal device, and update the waiting time of each meal number in the second queuing list;
it should be noted that the contents shown in the steps 301-304 are similar to the contents shown in the steps 201-204 in fig. 2, and for avoiding repetition, detailed description is not repeated here, and the contents shown in the steps 201-204 may be referred to specifically.
Step 304 shows that the server controls to delete the corresponding relationship between the server and the first user information and the second meal number in the second queuing list that has been saved by the second terminal device, and updates the waiting time of each meal number in the second queuing list.
In a possible implementation manner, step 304 may include steps a and b, where steps a and b directly delete the corresponding relationship for the server, which is as follows:
a. the server deletes the corresponding relation between the second meal number and the first user information in a second queuing list stored in the server, and updates the waiting time of each meal number in the second queuing list;
b. and sending the updated second queuing table to a second terminal device corresponding to the second queuing table, so that the second terminal device can replace the existing queuing table by using the second queuing table.
It should be noted that, if a second meal number exists in the second queuing list, where the user information is the same as the first user information, indicating that the user corresponding to the first user information for confirming the meal is still queuing in multiple restaurants at this time, the server deletes the correspondence between the second meal number in the second queuing list and the first user information stored in the server, eliminates the occupation of the first user information in the second queuing list, updates the waiting time of each meal number in the second queuing list, and sends the updated second queuing list to the second terminal device corresponding to the second queuing list, so that the second terminal device replaces the historical queuing list of the restaurant in charge of the second terminal device, and obtains the latest updated second queuing list. The second queuing list is a restaurant queuing list with first user information for confirming the dining, and the second meal number is a unique dining voucher of each queuing user in the second queuing list. It is understood that the second queuing table corresponds to restaurants one to one, and thus the second queuing table may be one or more.
In a possible implementation manner, step 304 may include steps i, ii, and iii, where steps i, ii, and iii perform a deletion operation for the server-side control terminal device, which is as follows:
i. the server sends a deleting instruction to second terminal equipment corresponding to the second queuing table, wherein the deleting instruction comprises the second meal number;
ii. The second terminal device deletes the corresponding relation between the second meal number and the first user information in the stored second queuing list, and updates the waiting time of each meal number in the second queuing list;
and iii, sending the updated second queuing table to the server so that the server can replace the existing queuing table by using the updated second queuing table.
Furthermore, if a second meal number with the same user information as the first user information exists in the second queuing list, the second queuing list indicates that the user corresponding to the first user information for confirming the meal is still in queuing in the plurality of restaurants, the server may transmit a deletion instruction including the second meal number to the second terminal device corresponding to the second queuing table in which the first user information exists in the searched queuing table, the second terminal equipment corresponding to each restaurant with the first user information deletes the corresponding relation between the second meal number and the first meal information in the corresponding second queuing list according to the deletion instruction, and updating the waiting time of each meal number in the second queuing list, and then sending the updated second queuing list to the server, the server can replace the existing queuing list by using the updated second queuing list, and the stored queuing data at the server side is updated in time.
It should be noted that, although users are queued in multiple restaurants, there are not a few users who have already had meals in a certain restaurant, and therefore, there may be multiple first user information of users who have had meals at the same time, and further, there may be more than one second queuing list in each first user information, and further, there may be a large burden on the server side due to such a large data update demand on the server side.
Optionally, if the server side sends the deletion instruction, it may time the return time of the second terminal device returning the updated second queuing list, and if the return time exceeds a preset time threshold, the server directly deletes the correspondence, and sends the updated list to the terminal device, which may refer to steps a and b; and when the return time does not exceed the preset time threshold, the server replaces and updates the queue table on the server side by using the received updated queue table. The preset time threshold is used for judging whether the current network state is good or not, the preset time threshold can be set to be 1S, 2S and the like, and the return time of the terminal equipment is timed to prevent the situation that the queuing list between the server side and the terminal equipment cannot be synchronized in time due to the fact that the instruction is not sent or the return data cannot be received in time because the network state is not good.
305. The server searches a queuing list of each terminal device in the server to determine target user information, wherein the target user information refers to user information existing in at least two actual queuing lists;
it can be understood that a plurality of restaurants exist in a shopping mall, and each user can choose to queue in the plurality of restaurants in order to improve dining efficiency, so that the same user information exists in at least two queuing lists, and therefore, the server can search the user information existing in at least two actual queuing lists by searching in the respective queuing lists corresponding to the respective terminal devices stored in the server, and the target user information can be located. The searching method may be to count the user information in all the queuing lists, determine the occurrence frequency of each user information, and if the occurrence frequency is greater than 1, indicate that the user information is the target user information.
306. For each piece of target user information, if a target face image of the target user information is obtained, searching a target user matched with the target face image by using image data acquired by a camera in the coverage area of the catering management system, and determining the position of the target user;
it should be noted that, each restaurant in the mall is provided with a security device, such as a camera, and is generally installed in a public area of the mall and an area of the restaurant inside, if the restaurant is in the public area, the camera may be a monitoring camera installed in a required monitoring range of each restaurant in the public area, for example, a monitoring camera installed at a doorway of each restaurant, and a coverage area of the restaurant management system is the public area of the mall, and further, information of each camera in the public area is stored in the restaurant management system, for example, information of each camera in the public area is numbered and position information of the camera is recorded, so that a user position can be located by matching with shooting data of the camera, specifically, target user information corresponding to each target user who has multiple restaurants, and a target face image corresponding to the target user information can be further obtained, and if the target face image is successfully acquired, searching whether a target user matched with the target face image is found through image data acquired by a camera in the coverage area of the catering management system so as to position the target user. The camera number of the camera can be obtained by acquiring the image data matched with the target face image through the camera corresponding to the camera number, so that the geographic position of the camera can be located, and the geographic position of the camera can be used for reflecting the position information of the target user in a market. The method for obtaining the target face image may be obtained through a photo stored in a personal terminal corresponding to the target user information, or obtained when the user requests to queue for the face recognition image during identity authentication, or actively uploaded when the user reserves information, and the like, which is not limited herein.
In one possible implementation, the number of cameras in each mall is more than one, and step 306 may include:
3061. calling image data acquired by a camera in the coverage area of the catering management system, carrying out face recognition by using the image data, matching the recognized face with the target face image, and determining a matched face image;
it should be noted that the server may call image data acquired by the cameras in the coverage area of the restaurant management system, that is, may obtain image data of a public area in a shopping mall acquired by the cameras at the doorway of each restaurant, perform face recognition on the image data, match the recognized face with a target face image, and determine a face image matched with the target face image in the recognized face.
3062. Determining a target camera from which the matched face image comes;
further, a camera from which a face image matched with a target face comes is determined to obtain a target camera, it can be understood that a shopping mall numbers each camera, and a corresponding relationship between the numbers and the positions of the cameras is established, wherein the positions of the cameras include a floor position and a specific position in the floor, and the positions of the cameras can be determined by establishing a coordinate system of the whole shopping mall. And the cameras are installed in public areas, and therefore, more than one target camera capable of acquiring the face data matched with the target face image may exist.
3063. If the number of the target cameras is 1, determining the position of the target user based on the position of the target cameras;
optionally, when the number of the target cameras is 1, the position of the target user may be determined based on the position of the target camera, and specifically, when the server determines the target cameras, the number of the determined target cameras, the number of the target cameras, and the geographic positions of the target cameras in the market map may be obtained. If the target face image exists in the face image of the camera, it is indicated that the user corresponding to the target face image appears in the acquisition range of the camera, and the cameras installed in public areas of all restaurants are generally arranged around the restaurants, such as doorways of the restaurants, so that if the camera of a certain restaurant shoots the face image matched with the target face image, it can be indicated that the user appears near the restaurant, therefore, the position of the camera corresponding to the serial number can be searched through the serial number of the camera, and the position of the target user can be obtained based on the position of the camera. Such as taking the location of the camera as the location of the target user.
Specifically, the actual distance between the target user and the camera can be estimated according to the proportion of the face image shot by the camera in the target image, and by selecting a reference point, the reference point is any one of the landscape signs or facilities and buildings in the store, such as elevator marks or trash cans and the like, the mall management system may also store the above-mentioned landscape signs or the structure information of the facility buildings in advance, the structure information includes but is not limited to the shape and size and the position coordinates, extracting a first candidate image of the landscape sign or the set building by performing image recognition in the target image, comparing the first candidate image with the stored shape information, determining that the first candidate image satisfies the shape information as a reference image, determining a first distance according to the position coordinates of the reference image and the position coordinates of the target camera; determining a shooting proportion by using the first distance and the proportion of the reference image in the target image; and determining the position of the target user according to the shooting proportion, the occupation ratio of the face image in the target image and the position coordinate of the target camera. When a plurality of reference images exist, the calculation can be repeated for a plurality of times according to different reference images to obtain the positions of a plurality of target users, and the coordinates which are finally used for expressing the positions of the target users are obtained by averaging the positions of the target users.
wherein beta is the shooting proportion, K is the magnification of the camera, Sa"is the ratio of the reference image in the target image, ScAs a size ratio of the target image, dacBetween reference object corresponding to reference image and cameraThe distance of (c). Wherein d isacCan be calculated by a distance formula between two points. Furthermore, the shooting proportion is determined through a formula, an equal proportion relation is further established through the shooting proportion, the position distance between the face in the face image and the camera can be reversely deduced by utilizing the known data of the reference image, the spatial position of the face is predicted, and the spatial position of the face is used as the position of the target user.
It should be noted that, the larger the shooting scale is, the smaller the distance between the reference object and the camera is, the larger the occupation ratio of the reference image in the target image is, and the size of the actual image is also affected by the magnification, so the shooting scale is inversely proportional to the distance between the reference object and the camera, the shooting scale is proportional to the occupation ratio of the reference image in the target image, and the shooting scale is proportional to the distance magnification between the cameras.
3064. If the number of the target cameras is multiple, determining the proportion of the matched face image in the target image which is shot by the target camera and contains the matched face image, and determining the position of the target camera with the largest proportion as the position of the target user.
Optionally, when a plurality of target cameras have face images matched with the target face images, determining a picture proportion of the face image matched with the target face image in the corresponding target image in the target images including the face image matched with the target face image shot by the target cameras, and determining a position of the camera shooting the face image with the largest picture proportion in the corresponding target image as the position of the target user. It should be noted that the target image is a complete image shot by phase shooting, more than one object exists in the target image, the object may include a human face, a landscape, and the like, and each object has a certain proportion in the image, and the closer the object is to the camera, the image occupation ratio of the image shot by the camera at the close distance is larger than that of the image shot by the camera at the far distance, so that the largest occupation ratio among the multiple images indicates that the closer the camera in the user is, the closer the camera is, and the closer the position of the user is to the position of the camera. The more representative the true location status of the target user.
307. Predicting a restaurant selected by the target user according to the position of the target user to obtain a predicted restaurant;
it should be noted that, the position of the target user is determined through the image shot by the camera, and the restaurant selected by the target user can be predicted according to the position of the target user, so as to obtain a predicted restaurant, which is also the restaurant most likely to be selected by the target user, or the restaurant most likely to be arranged in.
In one possible implementation, in order to obtain the predicted restaurant of the user more accurately, step 307 may further include the steps of:
3071. determining the distance between the position of the target user and the position of a target restaurant, wherein the target restaurant is a restaurant of the terminal device corresponding to the actual queuing list;
further, the distance between the target user and the position of the target restaurant in the actual queuing table of the target user may be determined by using the obtained position of the target user, where the position of the target restaurant may be obtained through market map data in the market management system, and the target restaurant is a restaurant of the terminal device corresponding to the actual queuing table.
Illustratively, the target user has a location of (xa, ya, za), the target user is queued at 3 restaurants, and the actual queuing table includes L1, L2, and L3, where the actual queuing list L1 corresponds to a restaurant having a location of (xL1, yL1, zL1), the actual queuing list L2 corresponds to a restaurant having a location of (xL2, yL2zL2), the actual queuing list L3 corresponds to a restaurant having a location of (xL3, yL3, zL3), and further, a distance da2 between (xa, ya, za) and (xL1, yL1, zL1), a distance da1 between (xa, ya, za) and (xL2, yL2zL2), and a distance da 6474 between (xa, ya, za) and (xL, ya, za 2, 5475).
3072. Determining the minimum value in the distances, and if the minimum value is smaller than or equal to a preset threshold value, determining the target restaurant with the minimum value as the predicted restaurant;
further, a minimum value is obtained in the distance between the restaurant location of the terminal device of each actual queuing list and the location of the target user, and if the minimum value is less than or equal to a preset threshold value, the target restaurant with the minimum value is determined as the predicted restaurant. The minimum value is the minimum value in the distances between the user and the restaurants, the preset threshold value is a distance threshold value, and the distance threshold value is used as one of judgment conditions for obtaining the predicted restaurants.
Continuing with the above example, the minimum value is determined among the distance da1, the distance da2 and the distance da3, where the distance da1 is 20m, the distance da2 is 50m, the distance da3 is 100m, the minimum value is the distance da1 is 20m, and where the preset threshold is 30m, the distance da1 is 20m < the preset threshold 30m, and therefore the restaurant corresponding to the actual queuing list L1 is the predicted restaurant.
3073. If the minimum value is larger than the preset threshold value, obtaining historical dining data of the target user information, determining the occurrence times of the target restaurant in the historical dining data, and selecting the target restaurant with the largest occurrence times as the predicted restaurant.
It should be noted that the minimum value is the minimum value among the distances between the user and the restaurants, and although a small distance may indicate that the distance is closer, the close degree is relative to the distances between other restaurants, and therefore, the distances may be far, but a minimum value among the far distances indicates that the distance is not close when the minimum value is greater than a preset threshold value, and therefore, the probability of the user selecting the restaurant is not high, and further, when the minimum value is greater than the preset threshold value, the number of occurrences of the target restaurant in the historical dining data is determined by acquiring the historical dining data of the target user information, and the target restaurant with the largest number of occurrences is selected as the predicted restaurant. I.e., by user preference, selects a predicted restaurant.
Continuing with the above example, the minimum value is determined among the distances da1, da2 and da3, where the distance da1 is 20m, the distance da2 is 50m and the distance da3 is 100m, the minimum value is the distance da1 is 20m, and where the preset threshold is 15m, the distance da1 is 20m > 15m, so that the target restaurant corresponding to each of the actual queuing lists L1, L2 and L3 is determined in the historical meal data of the user, and the target restaurant with the largest occurrence number is taken as the predicted restaurant, where the occurrence number includes, but is not limited to, statistics of queuing, reservation and meal.
308. And updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the predicted restaurant in the actual queuing list according to the predicted restaurant.
Furthermore, through the steps, the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the predicted restaurant in the actual queuing list can be updated.
Continuing with the above example, the minimum value is determined among the distance da1, the distance da2 and the distance da3, where the distance da1 is 20m, the distance da2 is 50m, the distance da3 is 100m, the minimum value is the distance da1 is 20m, and where the preset threshold is 30m, the distance da1 is 20m < the preset threshold 30m, and therefore the restaurant corresponding to the actual queuing list L1 is the predicted restaurant. Therefore, step 308 updates the waiting time of each meal number in the actual queuing table L2 and the actual queuing table L3.
Specifically, step 308 may include the following steps:
3081. determining the number of meals and waiting time of the target user information in the actual queuing list;
3082. sequencing the waiting time according to the sequence of the waiting time from short to long to obtain a waiting time sequence;
after the predicted restaurant is obtained, the waiting time in other queuing lists arranged by the target user again can be updated, so that the number of the meal and the waiting time of the target user information in the actual queuing list need to be determined first, the waiting time corresponding to each target user information is sequenced from short to long, and a waiting time sequence of each queuing list corresponding to the target user information is obtained, wherein the specific waiting time sequence comprises the corresponding relation between the waiting time and the restaurant and the serial numbers corresponding to the waiting times, and the serial numbers correspond to the sequencing results one by one.
With continued reference to the above example, the actual queuing table L1, the actual queuing table L2, and the actual queuing table
L3 shows a meal number and waiting time corresponding to the target user information, for example, the target user
The meal number of the information in the actual queuing list L1 is L1a, and the waiting time is TL1 a; target user information is
The number of a meal in the actual queuing list L2 is L2a, and the waiting time is TL2 a; target user information in actual rank
The dining number in the queue list L3 is L3a, and the waiting time is TL3 a; where TL1a is 1h, TL2a is 30min, TL3a is 45min, and the sequence of waiting times is { TL2a is 30min, TL3a is 45min, and TL1a is 1h }. It is understood that the actual queuing list is related to the actual queuing of the user, and is only an example and not a limitation.
3083. Determining a target location of the wait time of the predicted restaurant in the sequence of wait times;
further, a target location of the wait time of the predicted restaurant in the wait time series is determined, wherein the serial number may indicate that the wait time is ranked several times in the wait time series, and thus the target location is the serial number in the wait time series, such as the wait time of 10 restaurants in the wait time series, and the target location may be one of the serial numbers of 1-10. For example, the latency sequence is { TL2a ═ 30min, TL1a ═ 37min, and TL3a ═ 45min }. Predicting that the restaurant is L1, and the target position is the second position; predicting that the restaurant is L2, and setting the target position as the first position; the restaurant is predicted to be L3, and the target location is the third location. The predicted restaurant determination method is not described in detail with reference to steps 3072 and 3073.
3084. Determining that an actual queuing table corresponding to the waiting time before the target position in the waiting time sequence is unchanged;
3085. for target waiting time after the target position in the waiting time sequence, acquiring the time difference of waiting time of a meal number corresponding to the target waiting time and the next meal number;
after the target position is determined, the waiting time is adjusted based on the target position, specifically, the actual queuing table of the restaurant corresponding to the waiting time before the target position is kept unchanged, the target waiting time of the actual queuing table after the target position is adjusted, and further, the waiting time of the restaurant arranged by the target user is adjusted through the waiting time sequence, so that the target waiting time after the target position in the time sequence and the time difference between the waiting time of the meal number corresponding to the target waiting time and the waiting time of the next meal number are obtained. It can be understood that each target waiting time corresponds to a queuing list, and each queuing list has a meal number, so that the waiting time is updated for each queuing list respectively.
Illustratively, the sequence of waiting times is { TL2a ═ 30min, TL1a ═ 35min, and TL3a ═ 45min }, and the predicted restaurant is L1, the target location is the second location, and therefore, the target location includes L2 and L1 of the actual queuing list before, and the waiting times of L2 and L1 of the actual queuing list are unchanged. If the target location includes the actual queuing list L3, the queuing data L3 of the actual queuing list L3 is obtained as { L3a, L3b, L3c, L3d, L3e }, and the time difference between the waiting time of the meal number L3a and the waiting time of the next meal number L3b corresponding to the target waiting time is Δ TL3ab as TL3b — TL3 a.
3086. Based on the number of waiting time of the interval between the target waiting time and the target position, searching a preset corresponding relation between the number of waiting time and a proportionality coefficient, and determining a target proportionality coefficient having a corresponding relation with the number;
3087. calculating the product of the time difference and the proportional coefficient to obtain a prediction shortening time;
specifically, a target proportionality coefficient is determined according to the number of waiting times of the target waiting time interval between the waiting time sequence and the target position, and the target proportionality coefficient may be obtained by finding a preset corresponding relationship between the number of waiting times and the proportionality coefficient, where the corresponding relationship may be obtained by directly proportional between the number of intervals and the proportionality coefficient. The value range of the proportionality coefficient is [ 0-1 ]. Further, the time difference obtained in step 3085 is multiplied by the target scaling factor obtained in step 3086 to obtain the product of the time difference and the scaling factor, and the product is used as a prediction time to update the waiting time of the queuing table.
Illustratively, the sequence of waiting times is { TL2a ═ 30min, TL1a ═ 35min, TL3a ═ 45min }, the waiting time TL3a of the meal number L3a corresponding to the target waiting time is separated from the waiting time TL1a of the target position by the waiting time amount 0, the smaller the waiting time amount in the correspondence relationship between the waiting time amount and the proportionality coefficient, the larger the proportionality coefficient is, and the target proportionality coefficient may be 1 when the waiting time amount is 0, and thus, the reducible time may be T, the shorter the time isCan be used for=△TL3ab*1=(TL3b-TL3a)*1。
3088. And subtracting the reducible time from the waiting time of all the meal numbers after the corresponding meal number in the corresponding actual queuing list by the target waiting time to obtain the updated actual queuing list.
In order to ensure the order relationship of the existing queuing table, the waiting time of the subsequent queuers is updated by using the reducible time, and specifically, the reducible time is subtracted from the waiting time of all meal numbers after the corresponding meal number in the corresponding actual queuing table to obtain the updated actual queuing table. It can be understood that the waiting time of each adjacent meal number is accumulated on the basis of the previous meal number, so that when the order relationship of the current queuing list is not changed, the waiting time before the target user is not adjusted, but an adjustable time range is obtained through the time difference between the adjacent meal numbers, and after the target proportionality coefficient is obtained, the waiting time of all meal numbers after the corresponding meal number in the corresponding actual queuing list is updated, so that the waiting time of the user is reduced, the waiting time is more consistent with the actual situation, and particularly, the target user may not have a meal in a restaurant other than the predicted restaurant.
Illustratively, the actual queuing list L3 is { L3a, L3b, L3c, L3d, L3e }, the waiting time TL3a of the meal number L3a corresponding to the target waiting time is unchanged, and the waiting times of { L3b, L3c, L3d, L3e } are all differentiated from the reducible time to obtain differences, which are respectively used as the waiting times of L3b, L3c, L3d, L3e, and the updated actual queuing list is obtained.
Further, the actual queuing list L3 is { L3a, L3b, L3c, L3d, and L3e }, and the waiting time TL3a of the meal number L3a corresponding to the target waiting time is not changed, and the waiting times of { L3b, L3c, L3d, and L3e } are all differentiated from the reducible time to obtain differences, which are the waiting times of L3b, L3c, L3d, and L3e, respectively, to obtain an updated actual queuing list. The ratio of the original waiting time of { L3b, L3c, L3d and L3e } to the waiting time TL3a of { L3a } is used as the reduction weight of each meal number, the reduction weight is multiplied by the reduction time to obtain the target reduction time corresponding to each meal number, and the target reduction time is subtracted from the waiting time to obtain the updated waiting time. The reduction weight can be obtained by the ratio of the numbers of the meal numbers, different target reducible times are given for the time of different users, and the target reducible times are used for making a difference to obtain the waiting time of different users.
The invention provides a restaurant management method, which comprises the steps of feeding back the number calling condition and the user queuing condition of a restaurant to a server through a terminal device by setting the server and the terminal device which has a one-to-one correspondence with the restaurant, so that the server can carry out comprehensive management, and when the first terminal device detects the number calling operation of a first meal number, sending first user information corresponding to the first meal number to the server, so that the server deletes the meal number of the first user information in other restaurants, and updates the queuing tables of other restaurants, so that under the condition that one user queues in a plurality of restaurants, the meal number and the user information of the user in other restaurants can be deleted after the user is identified to have a meal in one restaurant, so that the user does not continue to queue in other restaurants, and the waiting time of each meal number in the queuing tables of other restaurants is updated, the accuracy of the waiting time can be improved, and the user experience is improved. And predicting in each target restaurant arranged by the user by acquiring the position information of the user to obtain a predicted restaurant, and updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the predicted restaurant in the actual queuing list according to the predicted restaurant, so that the accuracy of the waiting time is further ensured.
FIG. 4 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, causes the processor to carry out the steps of the above-described method embodiments. The internal memory may also store a computer program, which, when executed by the processor, causes the processor to perform the steps of the above-described method embodiments. It will be appreciated by those skilled in the art that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method as shown in fig. 2 or fig. 3.
In an embodiment, a computer-readable storage medium is proposed, on which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of the method as shown in fig. 2 or fig. 3.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (8)
1. A catering management method is characterized in that the method is applied to a catering management system, and the catering management system comprises: the server and the terminal equipment have one-to-one correspondence relation with the restaurant and are used for managing the waiting time of the user of the restaurant, and the method comprises the following steps:
if the first terminal device detects that the first meal number confirms to have a meal, determining first user information corresponding to the first meal number, deleting the first meal number from a first queuing list of the first terminal device, and updating the waiting time of each meal number in the first queuing list; the queuing table comprises a corresponding relation between the meal number and the user information;
the server receives the first user information sent by the first terminal device and the updated first queuing list, and replaces the queuing list of the first terminal device, which is stored by the server, with the first queuing list;
the server searches a stored queuing list of other terminal equipment except the first terminal equipment, and determines whether the user information of the meal number in the queuing list of the other terminal equipment is the same as the first user information;
if a second meal number with the same user information as the first user information exists in a second queuing list, the server controls to delete the corresponding relation between the second meal number and the first user information in the second queuing list which is stored by the server and second terminal equipment, and update the waiting time of each meal number in the second queuing list;
the method further comprises the following steps:
the server searches a queuing list of each terminal device in the server to determine target user information, wherein the target user information refers to user information existing in at least two actual queuing lists;
for each piece of target user information, if a target face image of the target user information is obtained, searching a target user matched with the target face image by using image data acquired by a camera in the coverage area of the catering management system, and determining the position of the target user;
predicting a restaurant selected by the target user according to the position of the target user to obtain a predicted restaurant;
updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the predicted restaurant in the actual queuing list according to the predicted restaurant;
wherein, the updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the forecast restaurant in the actual queuing list according to the forecast restaurant comprises:
determining the number of meals and waiting time of the target user information in the actual queuing list;
sequencing the waiting time according to the sequence of the waiting time from short to long to obtain a waiting time sequence;
determining a target location of the wait time of the predicted restaurant in the sequence of wait times;
determining that an actual queuing table corresponding to the waiting time before the target position in the waiting time sequence is unchanged;
for target waiting time after the target position in the waiting time sequence, acquiring the time difference of waiting time of a meal number corresponding to the target waiting time and the next meal number;
based on the number of waiting time of the interval between the target waiting time and the target position, searching a preset corresponding relation between the number of waiting time and a proportionality coefficient, and determining a target proportionality coefficient having a corresponding relation with the number;
calculating the product of the time difference and the proportional coefficient to obtain a prediction shortening time;
and subtracting the reducible time from the waiting time of all the meal numbers after the corresponding meal number in the corresponding actual queuing list by the target waiting time to obtain the updated actual queuing list.
2. The method according to claim 1, wherein the server controls to delete the correspondence between the second meal number and the first user information in a second queuing list that has been saved by the server and the second terminal device, and update the waiting time of each meal number in the second queuing list, and the method comprises:
the server deletes the corresponding relation between the second meal number and the first user information in a second queuing list stored in the server, and updates the waiting time of each meal number in the second queuing list;
and sending the updated second queuing table to a second terminal device corresponding to the second queuing table, so that the second terminal device can replace the existing queuing table by using the second queuing table.
3. The method according to claim 1, wherein the server controls to delete the corresponding relationship between the second meal number and the first user information in a second queuing list that is already stored by the server and the second terminal device, and updates the waiting time of each meal number in the second queuing list, and the method comprises:
the server sends a deleting instruction to second terminal equipment corresponding to the second queuing table, wherein the deleting instruction comprises the second meal number;
the second terminal device deletes the corresponding relation between the second meal number and the first user information in the stored second queuing list, and updates the waiting time of each meal number in the second queuing list;
and sending the updated second queuing table to the server so that the server can replace the existing queuing table by using the updated second queuing table.
4. The method of claim 1, wherein the searching for the target user matching the target face image and determining the position of the target user by using the image data collected by the camera in the coverage area of the catering management system comprises:
calling image data collected by a camera in the coverage area of the catering management system, carrying out face recognition by using the image data, matching the recognized face with the target face image, and determining a matched face image;
determining a target camera from which the matched face image comes;
if the number of the target cameras is 1, determining the position of the target user based on the position of the target cameras;
if the number of the target cameras is multiple, determining the proportion of the matched face image in the target image which is shot by the target camera and contains the matched face image, and determining the position of the target camera with the largest proportion as the position of the target user.
5. The method of claim 1, wherein predicting the restaurant selected by the target user based on the location of the target user results in a predicted restaurant comprising:
determining the distance between the position of the target user and the position of a target restaurant, wherein the target restaurant is a restaurant of the terminal device corresponding to the actual queuing list;
determining the minimum value in the distances, and if the minimum value is smaller than or equal to a preset threshold value, determining the target restaurant with the minimum value as the predicted restaurant;
if the minimum value is larger than the preset threshold value, obtaining historical dining data of the target user information, determining the occurrence times of the target restaurant in the historical dining data, and selecting the target restaurant with the largest occurrence times as the predicted restaurant.
6. A catering management system, comprising: the server, terminal equipment, the said terminal equipment has one-to-one correspondence with dining room, and is used for managing the user's waiting time of the said dining room, the said system includes:
the first terminal device is used for determining first user information corresponding to a first meal number if the confirmed meal of the first meal number is detected, deleting the first meal number from a first queuing list of the first terminal device, and updating the waiting time of each meal number in the first queuing list; the queuing list comprises a corresponding relation between a meal number and user information, and the first terminal equipment is any one terminal equipment in the catering management system;
the server is configured to receive the first user information and the updated first queuing list sent by the first terminal device, and replace the queuing list of the first terminal device, which is stored by the server, with the first queuing list;
the server is further configured to search a stored queuing table of other terminal devices except the first terminal device, and determine whether the user information of the meal number in the queuing table of the other terminal devices is the same as the first user information;
the server is further configured to control to delete the correspondence between the second meal number and the first user information in a second queuing list stored by the server and a second terminal device, and update the waiting time of each meal number in the second queuing list, if a second meal number exists in the second queuing list, where the user information is the same as the first user information;
the server is also used for searching the queuing table of each terminal device in the server and determining target user information, wherein the target user information refers to user information existing in at least two actual queuing tables; for each piece of target user information, if a target face image of the target user information is obtained, searching a target user matched with the target face image by using image data acquired by a camera in the coverage area of the catering management system, and determining the position of the target user; predicting a restaurant selected by the target user according to the position of the target user to obtain a predicted restaurant; updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the predicted restaurant in the actual queuing list according to the predicted restaurant;
wherein, the updating the waiting time of each meal number in other actual queuing lists except the queuing list corresponding to the forecast restaurant in the actual queuing list according to the forecast restaurant comprises: determining the number of meals and waiting time of the target user information in the actual queuing list; sequencing the waiting time according to the sequence of the waiting time from short to long to obtain a waiting time sequence; determining a target location of the wait time of the predicted restaurant in the sequence of wait times; determining that an actual queuing table corresponding to the waiting time before the target position in the waiting time sequence is unchanged; for target waiting time after the target position in the waiting time sequence, acquiring the time difference of waiting time of a meal number corresponding to the target waiting time and the next meal number; based on the number of waiting time of the interval between the target waiting time and the target position, searching a preset corresponding relation between the number of waiting time and a proportionality coefficient, and determining a target proportionality coefficient having a corresponding relation with the number; calculating the product of the time difference and the proportional coefficient to obtain a prediction shortening time; and subtracting the reducible time from the waiting time of all the meal numbers after the corresponding meal number in the corresponding actual queuing list by the target waiting time to obtain the updated actual queuing list.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
8. A computer device comprising a memory and a processor, characterized in that the memory stores a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111416679.9A CN114154665B (en) | 2021-11-25 | 2021-11-25 | Catering management method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111416679.9A CN114154665B (en) | 2021-11-25 | 2021-11-25 | Catering management method, system, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114154665A CN114154665A (en) | 2022-03-08 |
CN114154665B true CN114154665B (en) | 2022-05-27 |
Family
ID=80457786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111416679.9A Active CN114154665B (en) | 2021-11-25 | 2021-11-25 | Catering management method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114154665B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114861953A (en) * | 2022-04-18 | 2022-08-05 | 上海掌门科技有限公司 | Method, apparatus, medium, and program product for queuing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105869257A (en) * | 2016-03-22 | 2016-08-17 | 浙江大学 | One-chip microcomputer-based electronic queuing and calling system and method used in bank |
CN109154913A (en) * | 2016-03-29 | 2019-01-04 | 瑞可利有限公司 | Order management system, sequence management device and program |
WO2019059339A1 (en) * | 2017-09-22 | 2019-03-28 | 株式会社リクルート | Order management system, order management device and program |
CN110942546A (en) * | 2019-12-27 | 2020-03-31 | 贵阳朗玛信息技术股份有限公司 | Physical examination number calling method and device |
CN112002391A (en) * | 2020-08-25 | 2020-11-27 | 北京三快在线科技有限公司 | Method and device for determining checking sequence, electronic equipment and storage medium |
-
2021
- 2021-11-25 CN CN202111416679.9A patent/CN114154665B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105869257A (en) * | 2016-03-22 | 2016-08-17 | 浙江大学 | One-chip microcomputer-based electronic queuing and calling system and method used in bank |
CN109154913A (en) * | 2016-03-29 | 2019-01-04 | 瑞可利有限公司 | Order management system, sequence management device and program |
WO2019059339A1 (en) * | 2017-09-22 | 2019-03-28 | 株式会社リクルート | Order management system, order management device and program |
CN110942546A (en) * | 2019-12-27 | 2020-03-31 | 贵阳朗玛信息技术股份有限公司 | Physical examination number calling method and device |
CN112002391A (en) * | 2020-08-25 | 2020-11-27 | 北京三快在线科技有限公司 | Method and device for determining checking sequence, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114154665A (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110106573A1 (en) | Automated meeting scheduling | |
JP5016125B1 (en) | Information providing apparatus, information providing method, information providing program, and recording medium | |
US8718670B2 (en) | Method of transmitting data to a mobile device | |
US9544548B2 (en) | Object image displaying system | |
CN105409306A (en) | Method and apparatus for predicting location of mobile terminal | |
KR101154732B1 (en) | Realtime Location Estimating System and Method for Wireless Device Using Wireless LAN Access Point Based on Reliability | |
CN114154665B (en) | Catering management method, system, equipment and storage medium | |
CN105808574B (en) | Queuing and sorting method and system | |
EP2782026A1 (en) | Method and server for searching for nearby user in social network | |
CN109063121B (en) | Data storage method, device, computer equipment and computer storage medium | |
CN108712302B (en) | Method and device for calculating regional bandwidth and computer readable medium | |
US20180276770A1 (en) | Restaurant table management system | |
KR20120100137A (en) | Apparatus and method for considering multi user preference based multi-users criteria group | |
CN103167401A (en) | Method and system for building user relationship based on mobile internet | |
KR20160011014A (en) | Method for toliet sharing service | |
CN111898740A (en) | Model parameter updating method and device of prediction model | |
CN112967145B (en) | Group information generation method and device, electronic equipment and storage medium | |
US10015629B2 (en) | System and method for facilitating social dining experiences using location information | |
CN102711088B (en) | Associated person information acquisition methods and device | |
RU2609082C2 (en) | Method and system for determining address corresponding to most probable physical position of electronic device associated with user | |
CN114333238B (en) | Emergency rescue communication system based on 5G | |
CN109889562A (en) | A kind of offline access method and system of the advanced application platform of Enterprise Mobile | |
CN110363567B (en) | Method, device and equipment for determining food production information | |
KR101638622B1 (en) | Method for finding neighboring devices of user device, apparatus and method for contents sharing using the same method, and contents sharing application | |
CN110737832A (en) | Automatic toilet recommendation method in intelligent scenic spot, computer equipment and storage medium |
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 |