CN109766052B - Dish picture uploading method and device, computer equipment and readable storage medium - Google Patents

Dish picture uploading method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN109766052B
CN109766052B CN201811427279.6A CN201811427279A CN109766052B CN 109766052 B CN109766052 B CN 109766052B CN 201811427279 A CN201811427279 A CN 201811427279A CN 109766052 B CN109766052 B CN 109766052B
Authority
CN
China
Prior art keywords
dish
picture
target
uploaded
keyword
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
Application number
CN201811427279.6A
Other languages
Chinese (zh)
Other versions
CN109766052A (en
Inventor
许晓吟
张依蕾
胡奥宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN201811427279.6A priority Critical patent/CN109766052B/en
Priority to CN202110765267.XA priority patent/CN113296680A/en
Publication of CN109766052A publication Critical patent/CN109766052A/en
Application granted granted Critical
Publication of CN109766052B publication Critical patent/CN109766052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for uploading a dish picture, computer equipment and a readable storage medium, relates to the technical field of internet, and can request a server to upload dish information according to a gesture of a user without manually uploading the dish picture by a worker, thereby improving the uploading efficiency of the picture, having higher success rate of uploading the picture and avoiding influencing the sales volume of the dish. The method comprises the following steps: when detecting that the dish display page to be uploaded is triggered, acquiring an operation gesture for triggering the dish display page to be uploaded; determining a preset gesture, and comparing the operation gesture with the preset gesture; if the operation gesture is consistent with the preset gesture, generating a picture uploading instruction carrying the dish information, and transmitting the picture uploading instruction; and receiving the target picture uploaded to the target position indicated by the dish identification, and displaying the target picture at the target position.

Description

Dish picture uploading method and device, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for uploading a dish picture, computer equipment and a readable storage medium.
Background
With the rapid development of internet technology and the increasing popularization of intelligent terminals, people's life, work, and the like are closely related to the intelligent terminals. At present, various convenience is provided for users by intelligent terminals, for example, the intelligent terminals provide functions of electronic payment, ordering with mobile phones, and the like, so that more and more restaurants are provided for realizing modern management based on internet technology. Generally speaking, an intelligent terminal provides an application for ordering dishes for a restaurant, in order to enable a user to see various dishes provided in the restaurant in the application, the restaurant generates an electronic menu, and provides dish information such as names, prices, pictures and the like of the dishes in the restaurant to the user based on the electronic menu in the application, so that the user can decide which dishes to order in the application according to the electronic menu, and accordingly, the intelligent terminal based ordering is achieved.
In the related art, considering that some dishes may not be known by the user, which results in a low sales volume of the dishes, in order for the restaurant to generate the electronic menu, a staff usually uploads a reference picture of each dish in an application respectively, so that for some uncommon dishes, the user can know about the dishes through the reference pictures, thereby realizing the sales of the dishes.
In the process of implementing the invention, the inventor finds that the related art has at least the following problems:
when the restaurant staff uploads the pictures of the dishes to the application, the application can audit the pictures, if the content, resolution, size and other data of the pictures do not meet the requirements of the application, the pictures can be rejected, the dishes without the pictures can not be sold, the staff needs to upload the pictures of each rejected dish again and respectively, so that the picture uploading efficiency is low, the success rate of picture uploading is not high, and the sales volume of the dishes is influenced.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for uploading a picture of a dish, a computer device and a readable storage medium, and mainly aims to solve the problem that at present, a worker needs to upload a picture of each rejected dish again, which results in low efficiency of uploading a picture, low success rate of uploading a picture, and influence on sales volume of the dish.
According to a first aspect of the present invention, a method for uploading a menu picture is provided, the method comprising:
when detecting that a to-be-uploaded dish display page is triggered, acquiring an operation gesture for triggering the to-be-uploaded dish display page, wherein the to-be-uploaded dish display page displays dish information of at least one to-be-uploaded dish, and the dish information at least comprises a dish identification and a dish name;
determining a preset gesture, and comparing the operation gesture with the preset gesture, wherein the preset gesture is at least a pull-down gesture, a shaking gesture and a sliding gesture;
if the operation gesture is consistent with the preset gesture, generating a picture uploading instruction carrying the dish information, and transmitting the picture uploading instruction;
and receiving a target picture uploaded to a target position indicated by the dish identification, displaying the target picture at the target position, and determining and extracting the target picture according to the name of the dish.
In another embodiment, before the obtaining the operation gesture for triggering the dish display page to be uploaded when it is detected that the dish display page to be uploaded is triggered, the method includes:
when detecting that a user requests to display the dish to be uploaded, generating a dish display request to be uploaded, and transmitting the dish display request to be uploaded, wherein the dish display request to be uploaded carries a store identifier;
and receiving returned dish information of the dish to be uploaded, determining a preset display mode, and generating the dish display page to be uploaded comprising the dish information according to the preset display mode.
In another embodiment, the determining a preset gesture and comparing the operation gesture with the preset gesture include:
identifying the operation gesture, and determining the moving direction of the operation gesture;
and acquiring a preset direction of the preset gesture, and comparing the moving direction with the preset direction.
According to a second aspect of the present invention, there is provided a method for uploading a menu picture, the method comprising:
when a picture uploading instruction is received, acquiring dish information of a dish to be uploaded, wherein the dish information is carried by the picture uploading instruction and at least comprises a dish identification and a dish name;
acquiring at least one keyword tag, and determining a target keyword tag corresponding to the dish name in the at least one keyword tag, wherein the target similarity between the target keyword tag and the dish name meets the requirement of a similarity threshold;
and extracting a target picture corresponding to the target keyword tag, and uploading the target picture to a target position indicated by the dish identification.
In another embodiment, when the picture uploading instruction is received and before the dish information of the dish to be uploaded, which is indicated by the picture uploading instruction, is acquired, the method includes:
when a to-be-uploaded dish display request is received, extracting information of the to-be-uploaded dish display request, and acquiring a store identifier in the to-be-uploaded dish display request;
performing data query based on the store identification to obtain a plurality of dish data corresponding to the store identification, wherein the dish data at least comprises a dish identification, a dish name and a dish picture;
detecting the plurality of dish data, and extracting target dish data with empty dish pictures from the plurality of dish data;
and acquiring a dish identifier and a dish name of the target dish data, calling the dish identifier and the dish name of the target dish data as the dish information of the dish to be uploaded, and returning the dish information of the dish to be uploaded.
In another embodiment, the obtaining at least one keyword tag and determining a target keyword tag corresponding to the name of the dish in the at least one keyword tag includes:
extracting keywords from the dish name to obtain name keywords of the dish name;
calculating the similarity between the at least one keyword label and the name keyword to obtain at least one character similarity;
comparing the at least one character similarity with the similarity threshold, and extracting a target similarity larger than the similarity threshold from the at least one character similarity;
and extracting the keyword label indicated by the target similarity from at least one keyword label as the target keyword label.
In another embodiment, the calculating the similarity between the at least one keyword tag and the name keyword to obtain at least one character similarity includes:
for any keyword label in the at least one keyword label, counting the number of target characters of coincident characters between the keyword label and the name keyword;
counting the total number of the characters of the name keyword, calculating the number ratio of the number of the target characters to the total number, and taking the number ratio as the character similarity of the keyword label and the name keyword;
and repeatedly executing the process of calculating the character similarity between the keyword label and the name keyword to obtain the at least one character similarity.
In another embodiment, the extracting a target picture corresponding to the target keyword tag and uploading the target picture to a target position indicated by the dish identifier includes:
acquiring a picture address corresponding to the target keyword tag, and extracting the target picture at the picture address;
and determining the target position indicated by the dish identification, and transmitting the target picture to the target position.
According to a third aspect of the present invention, there is provided a dish picture uploading apparatus, including:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an operation gesture for triggering a to-be-uploaded dish display page when detecting that the to-be-uploaded dish display page is triggered, the to-be-uploaded dish display page displays dish information of at least one to-be-uploaded dish, and the dish information at least comprises a dish identification and a dish name;
the comparison module is used for determining a preset gesture and comparing the operation gesture with the preset gesture, wherein the preset gesture is at least a pull-down gesture, a shaking gesture and a sliding gesture;
the generating module is used for generating a picture uploading instruction carrying the dish information if the operation gesture is consistent with the preset gesture, and transmitting the picture uploading instruction;
and the display module is used for receiving the target picture uploaded to the target position indicated by the dish identification, displaying the target picture at the target position, and determining and extracting the target picture according to the name of the dish.
In another embodiment, the apparatus comprises:
the transmission module is used for generating a to-be-uploaded dish display request when detecting that a user requests to display the to-be-uploaded dish, and transmitting the to-be-uploaded dish display request, wherein the to-be-uploaded dish display request carries a store identifier;
and the receiving module is used for receiving the returned dish information of the dish to be uploaded, determining a preset display mode and generating the dish display page to be uploaded comprising the dish information according to the preset display mode.
In another embodiment, the alignment module comprises:
the recognition unit is used for recognizing the operation gesture and determining the moving direction of the operation gesture;
and the comparison unit is used for acquiring the preset direction of the preset gesture and comparing the moving direction with the preset direction.
According to a fourth aspect of the present invention, there is provided a dish picture uploading apparatus, the apparatus comprising:
the acquisition module is used for acquiring the dish information of the dish to be uploaded carried by the picture uploading instruction when the picture uploading instruction is received, wherein the dish information at least comprises a dish identification and a dish name;
the determining module is used for acquiring at least one keyword tag, and determining a target keyword tag corresponding to the dish name in the at least one keyword tag, wherein the target similarity between the target keyword tag and the dish name meets the requirement of a similarity threshold;
and the uploading module is used for extracting a target picture corresponding to the target keyword tag and uploading the target picture to a target position indicated by the dish identification.
In another embodiment, the apparatus comprises:
the device comprises an extraction module, a storage module and a display module, wherein the extraction module is used for extracting information of a to-be-uploaded dish display request when the to-be-uploaded dish display request is received, and acquiring a store identifier in the to-be-uploaded dish display request;
the query module is used for performing data query based on the store identification to obtain a plurality of dish data corresponding to the store identification, wherein the dish data at least comprises a dish identification, a dish name and a dish picture;
the detection module is used for detecting the plurality of dish data and extracting target dish data with empty dish pictures from the plurality of dish data;
and the returning module is used for acquiring the dish identification and the dish name of the target dish data, calling the dish identification and the dish name of the target dish data as the dish information of the dish to be uploaded, and returning the dish information of the dish to be uploaded.
In another embodiment, the determining module includes:
the extraction unit is used for extracting keywords of the dish names to obtain name keywords of the dish names;
the calculation unit is used for calculating the similarity between the at least one keyword label and the name keyword to obtain at least one character similarity;
the comparison unit is used for comparing the at least one character similarity with the similarity threshold value and extracting the target similarity which is greater than the similarity threshold value from the at least one character similarity;
a determining unit, configured to extract a keyword tag indicated by the target similarity from at least one keyword tag as the target keyword tag.
In another embodiment, the calculating unit is configured to count, for any keyword tag in the at least one keyword tag, a target character number of a coincident character between the keyword tag and the name keyword; counting the total number of the characters of the name keyword, calculating the number ratio of the number of the target characters to the total number, and taking the number ratio as the character similarity of the keyword label and the name keyword; and repeatedly executing the process of calculating the character similarity between the keyword label and the name keyword to obtain the at least one character similarity.
In another embodiment, the upload module includes:
the extracting unit is used for acquiring a picture address corresponding to the target keyword tag and extracting the target picture at the picture address;
and the transmission unit is used for determining the target position indicated by the dish identification and transmitting the target picture to the target position.
According to a fifth aspect of the present invention, there is provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of the first and second aspects when the computer program is executed.
According to a sixth aspect of the present invention, there is provided a readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of the first and second aspects described above.
By the technical scheme, compared with the mode that the current working personnel need to upload the picture of each refuted dish respectively, the method, the device, the computer equipment and the readable storage medium provided by the invention have the advantages that when the fact that the dish display page to be uploaded is triggered is detected, the operation gesture for triggering the dish display page to be uploaded is obtained, when the operation gesture is consistent with the preset gesture, the picture uploading instruction carrying the dish information is generated and transmitted, the target picture received after the picture uploading instruction is transmitted is received, the target picture is displayed at the target position, after the terminal detects the operation gesture, the terminal can directly receive the target picture according to the dish information, the target picture is uploaded without the need of manually uploading the picture of the dish by the working personnel, the picture uploading efficiency is improved, the picture uploading success rate is higher, avoid influencing the sales volume of dishes.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1A is a schematic flow chart illustrating a method for uploading a menu picture according to an embodiment of the present invention;
fig. 1B is a schematic flow chart illustrating a method for uploading a menu picture according to an embodiment of the present invention;
fig. 2A is a schematic flow chart illustrating a method for uploading a menu picture according to an embodiment of the present invention;
fig. 2B is a schematic flow chart illustrating a method for uploading a menu picture according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram illustrating a device for uploading a menu picture according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram illustrating a vegetable picture uploading apparatus according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram illustrating a vegetable picture uploading apparatus according to an embodiment of the present invention;
fig. 4A is a schematic structural diagram illustrating a vegetable picture uploading device according to an embodiment of the present invention;
fig. 4B is a schematic structural diagram illustrating a vegetable picture uploading apparatus according to an embodiment of the present invention;
fig. 4C is a schematic structural diagram illustrating a vegetable picture uploading apparatus according to an embodiment of the present invention;
fig. 4D is a schematic structural diagram illustrating a vegetable picture uploading device according to an embodiment of the present invention;
fig. 5 is a schematic device structure diagram of a computer apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a method for uploading a dish picture, which can generate and transmit a picture uploading instruction carrying dish information when an operation gesture is consistent with a preset gesture, receive a target picture received after the picture uploading instruction is transmitted, and display the target picture at a target position, so that a terminal can directly receive a server to automatically acquire the target picture according to the dish information after detecting the operation gesture, and upload the target picture without manually uploading the picture of the dish by a worker, thereby improving the uploading efficiency of the picture, having higher success rate of picture uploading and avoiding influencing the purpose of sales of the dish, as shown in fig. 1A, and the method is applied to the terminal and comprises the following steps:
101. when the fact that the dish display page to be uploaded is triggered is detected, the operation gesture for triggering the dish display page to be uploaded is obtained, the dish display page to be uploaded displays at least one piece of dish information of the dish to be uploaded, and the dish information at least comprises a dish identification and a dish name.
In the embodiment of the invention, in order to enable a user to upload the dish pictures for the dishes to be uploaded in the dish display page to be uploaded through simple operation, the command of the user is identified by acquiring the gesture for triggering the dish display page to be uploaded, and the intention of the user is read, so that the dish pictures can be uploaded. Specifically, when it is detected that the to-be-uploaded dish display page is triggered, in order to identify the behavior of the user, an operation gesture for triggering the to-be-uploaded dish display page needs to be acquired, and then corresponding operation is executed through identification of the operation gesture.
102. Determining a preset gesture, and comparing the operation gesture with the preset gesture, wherein the preset gesture is at least a pull-down gesture, a shaking gesture and a sliding gesture.
In the embodiment of the invention, after the operation gesture is acquired, in order to identify the operation gesture, a preset gesture can be set in the terminal, and the operation gesture is compared with the preset gesture, so that the operation gesture is identified. The preset gesture may be one or more, that is, the preset gesture may be one or more of a pull-down gesture, a shake gesture, and a slide gesture, and the number of the preset gestures is not specifically limited in the embodiments of the present invention.
103. And if the operation gesture is consistent with the preset gesture, generating a picture uploading instruction carrying the dish information, and transmitting the picture uploading instruction.
In the embodiment of the invention, if the operation gesture is consistent with the preset gesture, the user wants to upload the dish picture for the dish to be uploaded. In order to enable the server to determine which dishes to upload the pictures when receiving the picture uploading instruction, the terminal carries the dish information in the generated picture uploading instruction and transmits the generated picture uploading instruction.
104. And receiving the target picture uploaded to the target position indicated by the dish identification, displaying the target picture at the target position, and determining and extracting the target picture according to the name of the dish.
In the embodiment of the invention, after the terminal transmits the generated picture uploading instruction to the server, the server searches the target picture according to the dish information carried in the picture uploading instruction and uploads the target picture to the target position indicated by the dish identification, so that the terminal receives the target picture uploaded to the target position indicated by the dish identification and displays the target picture at the target position.
According to the method provided by the embodiment of the invention, when the dish display page to be uploaded is detected to be triggered, the operation gesture for triggering the dish display page to be uploaded is obtained, when the operation gesture is consistent with the preset gesture, the picture uploading instruction carrying the dish information is generated and transmitted, the target picture received after the picture uploading instruction is transmitted is received, and the target picture is displayed at the target position, so that the terminal can directly receive the target picture automatically obtained by the server according to the dish information after the operation gesture is detected, the target picture is uploaded without a worker manually uploading the picture of the dish, the picture uploading efficiency is improved, the picture uploading success rate is higher, and the influence on the sales volume of the dish is avoided.
The embodiment of the invention provides a dish picture uploading method, which can determine a target keyword label according to dish information of a dish to be uploaded, and directly upload a target picture corresponding to the target keyword label to a position indicated by the dish information, wherein the target picture is acquired by a server, so that the aims of manually uploading the picture of the dish without a worker, improving the uploading efficiency of the picture, having a high success rate of uploading the picture and avoiding influencing the sales volume of the dish are fulfilled, as shown in fig. 1B, the method comprises the following steps:
105. when the picture uploading instruction is received, the dish information of the dish to be uploaded carried by the picture uploading instruction is obtained, and the dish information at least comprises a dish identification and a dish name.
In the embodiment of the invention, when the picture uploading instruction is received, in order to enable the server to determine which dish the user requests to match the picture, the picture uploading instruction carries the dish information, so that the server can extract the dish information of the dish to be uploaded carried by the server from the picture uploading instruction and determine the target picture for the dish to be uploaded based on the dish information in the subsequent process. The dish information at least comprises a dish identification and a dish name, wherein the dish identification can be a dish number and is used for indicating the position of a dish to be uploaded in the client so as to subsequently upload the determined target picture to the target position according to the indication of the dish identification.
106. And acquiring at least one keyword label, and determining a target keyword label corresponding to the dish name in the at least one keyword label, wherein the target similarity between the target keyword label and the dish name meets the requirement of a similarity threshold value.
In the embodiment of the invention, at least one keyword tag can be set in the server, each keyword tag corresponds to one alternative dish picture, and thus, by calculating the similarity between the dish name and the keyword tag, a target keyword tag with the similarity meeting the requirement of the similarity threshold is determined in the at least one keyword tag, so that the dish picture corresponding to the target keyword can be uploaded as the target picture subsequently.
107. And extracting a target picture corresponding to the target keyword tag, and uploading the target picture to a target position indicated by the dish identification.
In the embodiment of the invention, after the target keyword tag is determined, the target picture corresponding to the target keyword tag can be extracted and uploaded to the target position indicated by the dish identification, so that the picture configuration for the dish to be uploaded is realized.
According to the method provided by the embodiment of the invention, when the picture uploading instruction is received, the dish information of the dish to be uploaded carried by the picture uploading instruction is acquired, the target keyword tag corresponding to the dish name is determined in at least one keyword tag, the target picture corresponding to the target keyword tag is extracted, and the target picture is uploaded to the target position indicated by the dish identification, so that the server can acquire the target picture according to the dish information and upload the target picture, and a worker does not need to upload the picture of the dish manually, therefore, the picture uploading efficiency is improved, the picture uploading success rate is higher, and the influence on the sales volume of the dish is avoided.
The embodiment of the invention provides a method for uploading a dish picture, which can generate and transmit a picture uploading instruction carrying dish information when an operation gesture is consistent with a preset gesture, receive a target picture received after the picture uploading instruction is transmitted, and display the target picture at a target position, so that a terminal can directly receive a server to automatically acquire the target picture according to the dish information after detecting the operation gesture, and upload the target picture without manually uploading the picture of the dish by a worker, thereby improving the uploading efficiency of the picture, having higher success rate of picture uploading and avoiding influencing the purpose of sales volume of the dish, as shown in FIG. 2A, the method comprises the following steps:
201. when the terminal detects that a user requests to display the dish to be uploaded, a dish display request to be uploaded is generated, and the dish display request to be uploaded is transmitted to the server.
In the embodiment of the present invention, the inventor recognizes that when a user who is a merchant uploads dishes provided by his/her store to a server, the name and price of the dish and the picture of the dish are all uploaded, and the name and price of the dish are usually in the form of characters and numbers, and the picture of the dish is in the form of a picture. Generally, in order to avoid that the dish pictures of each dish are too fuzzy or occupy too large storage space, the server has certain requirements on data such as the resolution, the picture size and the like of the dish pictures, and the dish pictures uploaded to the server by the user can be successfully uploaded only if the dish pictures meet the requirements of the server. And if the dish pictures uploaded to the server by the user do not meet the requirements of the server, the dish can be used as the dish to be uploaded which fails to upload the dish pictures, and the dish pictures meeting the requirements of the server can be normally sold only by uploading the dish pictures again by the user.
In order to enable the user to inquire which dish picture of the dish does not pass the verification of the server, the server can provide services for the user in the form of a client, and the user downloads the client from the personal terminal of the user and enjoys the services provided by the client. The client side can provide a dish display entrance, and when the fact that the user triggers the dish display entrance is detected, the fact that the user requests to display the dish to be uploaded is determined. Because a large number of stores are accessed into the server, and the dish pictures which do not pass the server verification in each store are different, in order to enable the server to determine which store to be uploaded dishes are required to be displayed by the user, when the terminal generates the to-be-uploaded dish display request, store identifications need to be carried in the to-be-uploaded dish display request, so that when the server receives the to-be-uploaded dish display request, the server can determine which to-be-uploaded dishes are required to be displayed according to the store identifications carried in the to-be-uploaded dish display request. Specifically, the store identifier may be store information such as a store name, a store number, and a store account, and the content included in the store identifier is not specifically limited in the embodiment of the present invention. And when the terminal generates a dish display request to be uploaded, transmitting the dish display request to be uploaded to the server.
202. When the server receives a dish display request to be uploaded, information extraction is carried out on the dish display request to be uploaded, a store identification is obtained in the dish display request to be uploaded, data query is carried out based on the store identification, and a plurality of dish data corresponding to the store identification are obtained.
In the embodiment of the invention, a large amount of dish data of dishes provided by a large number of stores are stored in the server, in order to manage and plan the dish data in a unified manner and avoid the situation of data loss, a bottom database can be arranged in the server, a dish library is arranged in the bottom database, and dish data of each store are stored based on the dish library, specifically, the dish data can comprise dish identification, dish names and dish pictures. When the dish database based on the bottom database stores dish data of each store, in order to distinguish the dish data of each store, the dish data of each store and a store identifier of each store can be correspondingly stored, or the dish data is marked by the store identifier, so that the dish data is distinguished. In addition, there may be more than one dish provided by each store, so that there may be one or more dish data corresponding to each store. It should be noted that, in consideration of the fact that some users upload the dish pictures to the server that do not meet the requirements of the server, the dish pictures may not be included in the dish data stored in the server, or the value of the dish pictures is null.
The method comprises the steps that a to-be-uploaded dish display request transmitted to a server by a terminal carries store identification, so that when the server receives the to-be-uploaded dish display request, information extraction is firstly carried out on the to-be-uploaded dish display request, and the store identification is obtained in the to-be-uploaded dish display request; and then, performing data query in a dish library of the bottom database based on the store identification, and acquiring a plurality of dish data corresponding to the store identification or a plurality of dish data marked by the store identification so as to determine dishes to be uploaded in the plurality of dish data subsequently.
203. The server detects the plurality of dish data, extracts target dish data with empty dish pictures from the plurality of dish data, acquires dish identification and dish names of the target dish data, takes the dish identification and the dish names of the target dish data as dish information of the dish to be uploaded, and returns the dish information of the dish to be uploaded to the terminal.
In the embodiment of the present invention, after the plurality of pieces of dish data corresponding to or marked by the store identifier are obtained, because the plurality of pieces of dish data are the pieces of dish data of all the dishes in the store indicated by the store identifier, where the plurality of pieces of dish data include the dish to which the dish picture has been uploaded and the dish to which the dish picture has not been uploaded, and the user requests to display the piece of dish information of the dish to be uploaded, that is, the piece of dish not to which the dish picture has been uploaded, the server needs to extract the piece of dish information of the dish to be uploaded from the plurality of pieces of dish data, and return the extracted piece of dish information of the dish to be uploaded to the terminal, so that the terminal displays the piece of dish information of the dish to be uploaded to the user.
When the server extracts the dish information of the dish to be uploaded from the plurality of dish data, the dish picture does not exist in the plurality of dish data because the dish to be uploaded is a dish with a failure in uploading the dish picture, that is, the dish data with the empty dish picture is the dish information of the dish to be uploaded, which needs to be acquired by the server. Specifically, firstly, the server detects a plurality of dish data, and detects whether dish pictures of the plurality of dish data are null values; then, extracting dish data with a dish picture being a null value from the plurality of dish data as target dish data; and finally, as the target dish data do not comprise the dish data, acquiring the dish identification and the dish name of the target dish data, taking the dish identification and the dish name of the target dish data as the dish information of the dish to be uploaded, and returning the obtained dish information of the dish to be uploaded to the terminal so that the terminal can display the dish information of the dish to be uploaded to the user.
204. And the terminal receives the returned dish information of the dish to be uploaded, determines a preset display mode and displays the dish information of the dish to be uploaded according to the preset display mode.
In the embodiment of the invention, after the terminal receives the dish information of the dish to be uploaded returned by the server, the dish information of the dish to be uploaded can be displayed to the user. The terminal needs to be displayed by a client of the server when displaying the dish information of the dish to be uploaded, and the client usually has a preset display mode when displaying the dish information, so that the terminal determines the preset display mode and displays the dish information of the dish to be uploaded according to the preset display mode.
The process is a process executed when a user requests to check the dish information of the dish to be uploaded, and in the process of practical application, the purpose of checking the dish information of the dish to be uploaded by the user is usually to complete a dish picture of the dish to be uploaded, so that the dish to be uploaded can be normally sold after the dish picture is successfully uploaded, and thus, when the dish picture is uploaded for the dish to be uploaded, referring to fig. 2B, the method comprises the following steps:
205. and when detecting that the dish display page to be uploaded is triggered, acquiring an operation gesture for triggering the dish display page to be uploaded.
In the embodiment of the invention, the terminal can display the dish information of the dish to be uploaded, which is returned by the server, to the user, so that the terminal can detect whether the user requests to upload the dish picture of the dish or not based on the displayed dish information of the dish to be uploaded. The inventor has recognized that, generally speaking, when a user uploads a picture of a dish for the dish to be uploaded, the user needs to take or search the picture of the dish by himself or herself and upload the picture of the dish to a server. However, the dish pictures shot or searched by the user are probably not capable of meeting the requirements of the server, at this time, the user needs to shoot or search for many times and upload the dish pictures for many times, and a large amount of manpower and material resources are wasted. In the actual application process, the number of the dishes for the user to request the server to match the map may be one or more.
In the process of practical application, a user operates the terminal by means of gestures, and the gesture is used for controlling the terminal to execute various commands, so that the operation gestures of the user can be recognized to receive the operation requests of the user. When the dish display page to be uploaded is detected to be triggered, the operation gesture for triggering the dish display page to be uploaded can be acquired, so that the corresponding instruction is executed after the operation gesture is identified subsequently.
206. The terminal determines a preset gesture, compares the operation gesture with the preset gesture, and if the operation gesture is not consistent with the preset gesture, executes the following step 207; if the operation gesture is consistent with the preset gesture, the following steps 208 to 213 are performed.
In the embodiment of the invention, after the operation gesture is acquired, a preset gesture can be set for identifying the operation gesture, and the operation gesture is identified by comparing the operation gesture with the preset gesture. The preset gesture is at least one or more of a pull-down gesture, a shaking gesture and a sliding gesture. Since the moving direction of each gesture is different, the operation gesture can be recognized by recognizing the moving direction of the operation gesture. Specifically, firstly, identifying an operation gesture, and determining the moving direction of the operation gesture; and then, acquiring a preset direction of the preset gesture, and comparing the moving direction with the preset direction so as to judge whether the operation gesture is consistent with the preset gesture. It should be noted that, because a plurality of preset gestures may be set in the terminal, when the operation gesture is identified based on the plurality of preset gestures, the operation gesture may be compared with each preset gesture in the plurality of preset gestures, and only one preset gesture is consistent with the operation gesture, it may be determined that the operation gesture is consistent with the preset gesture. It should be noted that, in the embodiment of the present invention, whether a picture uploading instruction is generated or not is determined subsequently by detecting whether an operation gesture is consistent with a preset gesture, that is, a plurality of preset gestures are set in the terminal, and when it is detected that a gesture operation performed by a user in a client is consistent with the preset gesture, it is determined that the user requests to upload a picture. For example, the preset gesture set in the client may be "pull down once", "gravity sensing: shake-shake or "slide left or right", etc., so that when the gesture operation performed by the user in the client conforms to the preset gesture, it is determined that the user request for uploading the picture is detected. In the process of practical application, a picture uploading button can be further arranged in the terminal, and when the picture uploading button is detected to be triggered in the terminal by a user, the picture uploading request of the user is determined to be detected, and the operation gesture of the user does not need to be compared with the preset gesture. For example, a picture uploading button arranged in the client may be "one-touch-up picture", so that when the user triggers the "one-touch-up picture" button in the client, it is determined that the user request for uploading the picture is detected. The embodiment of the invention does not specifically limit the mode of determining the picture uploading request of the user.
Through the comparison of the operation gesture and the preset gesture in the uploading process, whether the operation gesture is consistent with the preset gesture or not can be determined. Further, if the operation gesture is not consistent with the preset gesture, it indicates that the user may not wish to upload the picture of the dish to be uploaded, or the user requests to perform other operations, at this time, the working state may be maintained, or it is determined that other instructions are received, that is, the following step 207 is performed. If the operation gesture is consistent with the preset gesture, it is determined that the user request is to upload the dish picture to the dish, at this time, the user needs to request the server to upload the dish picture, that is, the following steps 208 to 213 are performed.
207. And if the operation gesture is inconsistent with the preset gesture, keeping the current working state, and continuously displaying the dish display page to be uploaded.
In the embodiment of the invention, if the operation gesture is inconsistent with the preset gesture, the operation gesture indicates that the user does not request to upload pictures for the dishes to be uploaded currently, the terminal can keep the current working state, continue to display the display pages of the dishes to be uploaded, or execute the instruction corresponding to the current behavior of the user.
208. And if the operation gesture is consistent with the preset gesture, acquiring the dish information of the dish to be uploaded, sorting the dish information, generating a picture uploading instruction carrying the dish information, and transmitting the picture uploading instruction to the server.
In the embodiment of the invention, if the operation gesture is consistent with the preset gesture, a picture uploading instruction carrying the dish information needs to be generated, and the picture uploading instruction is transmitted to the server, so that the server can match the picture according to the dish information.
In order to enable the server to determine which dishes the user requests to match the pictures so that the server can extract corresponding dish pictures for the dishes, when the terminal detects that the user requests to upload the pictures, the server transmits the dish information of the dishes to be uploaded to the terminal for display, therefore, when the terminal generates a picture uploading instruction, the picture uploading instruction carries the dish information of the dishes to be uploaded, and the picture uploading instruction is transmitted to the server so that the server determines and uploads the corresponding pictures for the terminal according to the dish information carried in the picture uploading instruction. It should be noted that, considering that the user may not need the server to upload pictures for all the dishes to be uploaded, the client may also provide a dish checking service, that is, a checking frame is provided for the displayed dishes to be uploaded, and when the user checks the dishes to be uploaded in the checking frame, the information of the dishes to be uploaded is carried in the picture uploading request; if the user does not check the dish to be uploaded in the check box, the dish information of the dish to be uploaded is not carried in the picture uploading request when the picture uploading request is generated. The method and the device for matching the dish names of the dishes to be uploaded have the advantages that the check box can be displayed in front of or behind the dish names of the dishes to be uploaded, and the mode of selecting the dishes to be uploaded for matching by the request server and the number of the dishes to be uploaded for matching by the request server are not specifically limited by the embodiment of the invention.
209. And when the server receives the picture uploading instruction, acquiring the dish information of the dish to be uploaded carried by the picture uploading instruction.
In the embodiment of the invention, as the picture uploading instruction sent by the terminal to the server carries the dish information of the dish to be uploaded, when the server receives the picture uploading instruction, the information can be extracted from the picture uploading instruction, and the dish information of the dish to be uploaded carried by the picture uploading instruction is obtained, so that the picture can be extracted according to the dish information in the following process.
210. The server extracts keywords of the dish names, obtains name keywords of the dish names, calculates similarity between at least one keyword label and the name keywords, and obtains at least one character similarity.
In the embodiment of the invention, in order to realize matching pictures for the dishes to be uploaded, a picture library can be arranged in a bottom database of the server, and some alternative dish pictures are stored based on the picture library, so that matched pictures are selected for the dishes to be uploaded from the alternative dish pictures for matching pictures. Because a large number of alternative dish pictures are stored in the picture library in order to meet the basic requirements on the pictures, if the matched pictures are determined for the dish to be uploaded each time, the determination is performed by identifying the alternative dish pictures, the workload is very large, and the load of the server is heavy. Therefore, in order to simplify the process of determining pictures for the to-be-uploaded dish, for each alternative dish picture in the picture library of the bottom database, a keyword tag corresponding to each alternative dish picture can be set according to the name of the dish included in the alternative dish picture, and a matched dish picture is determined for each to-be-uploaded dish through the keyword tag in the subsequent process.
When the keyword tag is set for the alternative dish picture, the dish name of the dish included in the alternative dish picture can be directly used as the keyword tag, the alternative dish picture and the keyword tag are correspondingly stored, or the keyword tag is adopted to label the alternative dish picture. For example, if the dish name of the dish included in the alternative dish picture is "fried rice flour", the keyword tag set for the alternative dish picture may be "fried rice flour"; if the dish name of the dish included in the alternative dish picture is 'hairy crab', the keyword tag set for the alternative dish picture can be 'hairy crab'. It should be noted that some alternative dish pictures may have a long name of the dish, for example, "private room meat sliding section", and the character "meat sliding section" therein may already completely describe the dish included in the alternative dish picture, so when setting a keyword tag for the alternative dish picture, a keyword may be extracted from the name of the dish, and the keyword is used as the keyword tag, that is, "meat sliding section" is used as the keyword tag. The embodiment of the present invention does not specifically limit the way of extracting the keyword tag.
Because a large number of alternative dish pictures and corresponding keyword labels are stored in the bottom database of the server based on the picture database, when the server determines the dish pictures for the dishes to be uploaded, the name keywords of the names of the dishes to be uploaded can be obtained, the similarity between at least one keyword label and the name keywords is calculated, and at least one character similarity is obtained, so that the dish pictures are determined for the dishes to be uploaded according to the at least one character similarity in the subsequent process. The process of obtaining the name keyword is consistent with the process of obtaining the keyword of the alternative dish picture, and is not repeated here. Specifically, when calculating the similarity between at least one keyword tag and the name keyword, the following steps one and two may be performed.
Step one, for any keyword label in at least one keyword label, counting the number of target characters of coincident characters between the keyword label and the name keyword.
For any keyword label in at least one keyword label, after the name keyword is determined, the number of target characters of the coincident characters between the keyword label and the name keyword can be counted, so that the similarity between the keyword label and the name keyword can be calculated according to the number of the target characters of the coincident characters.
For example, if the name keyword is "fried rice flour", and the keyword tag is "fried rice flour", it is determined that the number of target characters of the coincident characters between the name keyword and the keyword tag is 3; if the name keyword is fried rice flour and the keyword label is fried rice, determining that the number of target characters of the superposed characters between the name keyword and the keyword label is 1; and if the name keyword is fried rice flour and the keyword tag is hairy crab, determining that the number of target characters of the superposed characters between the name keyword and the keyword tag is 0.
And step two, counting the total number of the characters of the name keyword, calculating the number ratio of the number of the target characters to the total number, and taking the number ratio as the character similarity of the keyword label and the name keyword.
By executing the process in the first step, the number of the target characters of the coincident characters between the keyword label and the name keyword can be determined, so that the total number of the characters of the name keyword is continuously counted, the number ratio of the number of the target characters to the total number is calculated, and the number ratio can be used as the character similarity of the keyword label and the name keyword. For example, if the name keyword is "fried rice flour", the keyword tag is "fried rice", and the number of target characters of the determined coincident characters between the name keyword and the keyword tag is 1, the total number of the characters of the name keyword is counted to be 3, and the calculated number ratio is 1/3, so that 1/3 can be used as the character similarity between the keyword "fried rice flour" and the keyword tag "fried rice" to be 1/3.
By repeatedly executing the process of calculating the character similarity between the keyword tag and the name keyword in the first step to the second step, at least one character similarity between the name keyword and at least one keyword tag can be calculated, and then the keyword tag which is closest to the name keyword can be determined for the name keyword based on the at least one character similarity.
211. The server compares the at least one character similarity with a similarity threshold, extracts a target similarity which is larger than the similarity threshold from the at least one character similarity, and extracts a keyword label indicated by the target similarity from the at least one keyword label as a target keyword label.
In the embodiment of the present invention, after at least one character similarity is generated, in order to determine a keyword tag that is most similar to a name keyword among at least one keyword tag according to the character similarity, a similarity threshold for screening the character similarity may be set in the server, the similarity threshold is compared with the at least one character similarity, the character similarity greater than the similarity threshold is extracted from the at least one character similarity as a target similarity, and then the keyword tag indicated by the target similarity is extracted from the at least one keyword tag as a target keyword tag. For example, if the similarity threshold is 90%, and the obtained character similarities are 33.3%, 25%, 50% and 100%, respectively, then the 100% character similarity may be used as the target similarity.
In the process of practical application, in order to simplify the process of determining the target similarity, at least one character similarity can be sequenced, and the maximum character similarity is directly used as the target similarity, so that the process of comparing at least one character similarity with a similarity threshold is omitted. For example, the description is continued by taking the acquired character similarities of 33.3%, 25%, 50%, and 100% as an example, and the ordering results obtained by ordering the acquired character similarities from large to small are 100%, 50%, 33.3%, and 25%, so that the character similarity of 100% can be directly taken as the target similarity. The embodiment of the present invention does not specifically limit the method for determining the target similarity. After the target similarity is determined, the keyword tag indicated by the target similarity can be used as the target keyword tag, so that the dish pictures needing to be uploaded can be determined according to the target keyword tag.
212. The server acquires a picture address corresponding to the target keyword tag, extracts a target picture from the picture address, determines a target position indicated by the dish identification, and transmits the target picture to the target position.
In the embodiment of the invention, after the server determines the target keyword tag, the target picture can be obtained according to the target keyword tag, so that the target picture is uploaded. In order to save the storage space in the bottom database of the server, only the picture address of the picture may be stored in the picture library of the bottom database, and the real picture is not stored, so that the server may obtain the picture address corresponding to the target keyword tag and extract the target picture from the picture address. In the process of practical application, if the pictures are directly stored in the picture library of the bottom database, the target picture can also be directly extracted from the picture library of the bottom database.
After the target picture is acquired, as the number of the dishes to be uploaded, which are required by the user to match the picture, is possibly multiple, in order to ensure that the uploaded position of the target picture is correct, the server determines the target position indicated by the dish identification and transmits the target picture to the target position, so that the target picture is uploaded.
213. And the terminal receives a target picture of a target position indicated by the dish identification uploaded by the server and displays the target picture at the target position.
In the embodiment of the invention, the terminal is based on the pictures of the dishes displayed by the client, and the positions of the dishes in the client are different, so that the terminal receives the target picture of the target position indicated by the dish identification uploaded by the server, displays the target picture at the target position, and uploads the pictures of the dishes to be uploaded.
Through the process, all the pictures of the dishes needing to be uploaded can be matched at one time, and the time for matching the pictures is shortened to about 5 seconds through batch interactive operation. It should be noted that, after the target picture is successfully displayed at the target position, if the terminal detects that the user requests to upload the picture again, which indicates that the user may not be satisfied with the currently displayed target picture, the terminal sends a picture upload instruction to the server again, and the server re-executes the process shown in the above step 206 to step 209, determines a new batch of target pictures different from the previous target pictures for the dish to be uploaded again to upload, and displays the target pictures to the user based on the terminal, so as to provide more choices for the user.
According to the method provided by the embodiment of the invention, when the picture uploading instruction is received, the dish information of the dish to be uploaded carried by the picture uploading instruction is acquired, the target keyword tag corresponding to the dish name is determined in at least one keyword tag, the target picture corresponding to the target keyword tag is extracted, and the target picture is uploaded to the target position indicated by the dish identification, so that the server can acquire the target picture according to the dish information and upload the target picture, and a worker does not need to upload the picture of the dish manually, therefore, the picture uploading efficiency is improved, the picture uploading success rate is higher, and the influence on the sales volume of the dish is avoided.
Further, as a specific implementation of the method shown in fig. 1A, an embodiment of the present invention provides a device for uploading a menu picture, where as shown in fig. 3A, the device includes: an obtaining module 301, a comparing module 302, a generating module 303 and a displaying module 304.
The obtaining module 301 is configured to, when it is detected that a to-be-uploaded dish display page is triggered, obtain an operation gesture for triggering the to-be-uploaded dish display page, where the to-be-uploaded dish display page displays dish information of at least one to-be-uploaded dish, where the dish information at least includes a dish identifier and a dish name;
the comparison module 302 is configured to determine a preset gesture, and compare the operation gesture with the preset gesture, where the preset gesture is at least a pull-down gesture, a shake gesture, and a slide gesture;
the generating module 303 is configured to generate a picture uploading instruction carrying the dish information if the operation gesture is consistent with the preset gesture, and transmit the picture uploading instruction;
the display module 304 is configured to receive a target picture uploaded to a target position indicated by the dish identifier, display the target picture at the target position, and determine and extract the target picture according to the name of the dish.
In a specific application scenario, as shown in fig. 3B, the apparatus includes a transmitting module 305 and a receiving module 306.
The transmission module 305 is configured to generate a to-be-uploaded dish display request when it is detected that a user requests to display the to-be-uploaded dish, and transmit the to-be-uploaded dish display request, where the to-be-uploaded dish display request carries a store identifier;
the receiving module 306 is configured to receive the returned dish information of the dish to be uploaded, determine a preset display mode, and generate the dish display page to be uploaded including the dish information according to the preset display mode.
In a specific application scenario, as shown in fig. 3C, the comparing module 302 includes an identifying unit 3021 and a comparing unit 3022.
The recognition unit 3021 is configured to recognize the operation gesture and determine a moving direction of the operation gesture;
the comparison unit 3022 is configured to obtain a preset direction of the preset gesture, and compare the moving direction with the preset direction.
According to the device provided by the embodiment of the invention, when the dish display page to be uploaded is detected to be triggered, the operation gesture for triggering the dish display page to be uploaded is obtained, when the operation gesture is consistent with the preset gesture, the picture uploading instruction carrying dish information is generated and transmitted, the target picture received after the picture uploading instruction is transmitted is received, and the target picture is displayed at the target position, so that the terminal can directly receive the target picture automatically obtained by the server according to the dish information after the operation gesture is detected, the target picture is uploaded without a worker manually uploading the picture of the dish, the picture uploading efficiency is improved, the picture uploading success rate is higher, and the influence on the sales volume of the dish is avoided.
Further, as a specific implementation of the method shown in fig. 1B, an embodiment of the present invention provides a device for uploading a menu picture, where as shown in fig. 4A, the device includes: an acquisition module 401, a determination module 402 and an upload module 403.
The obtaining module 401 is configured to obtain, when a picture uploading instruction is received, dish information of a dish to be uploaded, which is carried by the picture uploading instruction, where the dish information at least includes a dish identifier and a dish name;
the determining module 402 is configured to obtain at least one keyword tag, and determine a target keyword tag corresponding to the dish name from the at least one keyword tag, where a target similarity between the target keyword tag and the dish name meets a requirement of a similarity threshold;
the uploading module 403 is configured to extract a target picture corresponding to the target keyword tag, and upload the target picture to a target position indicated by the dish identifier.
In a specific application scenario, as shown in fig. 4B, the apparatus further includes an extracting module 404, a querying module 405, a detecting module 406, and a returning module 407.
The extracting module 404 is configured to, when receiving a to-be-uploaded dish display request, extract information of the to-be-uploaded dish display request, and obtain a store identifier in the to-be-uploaded dish display request;
the query module 405 is configured to perform data query based on the store identifier, and acquire a plurality of dish data corresponding to the store identifier, where the dish data at least includes a dish identifier, a dish name, and a dish picture;
the detection module 406 is configured to detect the plurality of dish data, and extract target dish data with a null dish picture from the plurality of dish data;
the returning module 407 is configured to obtain a dish identifier and a dish name of the target dish data, call the dish identifier and the dish name of the target dish data as the dish information of the dish to be uploaded, and return the dish information of the dish to be uploaded.
In a specific application scenario, as shown in fig. 4C, the determining module 402 includes an extracting unit 4021, a calculating unit 4022, a comparing unit 4023, and a determining unit 4024.
The extracting unit 4021 is configured to perform keyword extraction on the name of the dish to obtain a name keyword of the name of the dish;
the calculating unit 4022 is configured to calculate a similarity between the at least one keyword tag and the name keyword to obtain at least one character similarity;
the comparing unit 4023 is configured to compare the at least one character similarity with the similarity threshold, and extract a target similarity greater than the similarity threshold from the at least one character similarity;
the determining unit 4024 is configured to extract a keyword tag indicated by the target similarity from at least one keyword tag as the target keyword tag.
In a specific application scenario, the calculating unit 4022 is configured to count, for any keyword tag of the at least one keyword tag, a target character number of a coincident character between the keyword tag and the name keyword; counting the total number of the characters of the name keyword, calculating the number ratio of the number of the target characters to the total number, and taking the number ratio as the character similarity of the keyword label and the name keyword; and repeatedly executing the process of calculating the character similarity between the keyword label and the name keyword to obtain the at least one character similarity.
In a specific application scenario, as shown in fig. 4D, the upload module 403 includes an extraction unit 4031 and a transmission unit 4032.
The extracting unit 4031 is configured to acquire a picture address corresponding to the target keyword tag, and extract the target picture at the picture address;
the transmitting unit 4032 is configured to determine the target location indicated by the dish identifier, and transmit the target picture to the target location.
According to the device provided by the embodiment of the invention, when the picture uploading instruction is received, the dish information of the dish to be uploaded carried by the picture uploading instruction is acquired, the target keyword tag corresponding to the dish name is determined in at least one keyword tag, the target picture corresponding to the target keyword tag is extracted, and the target picture is uploaded to the target position indicated by the dish identification, so that the server can acquire the target picture according to the dish information and upload the target picture, and a worker does not need to upload the picture of the dish manually, therefore, the picture uploading efficiency is improved, the picture uploading success rate is higher, and the influence on the sales volume of the dish is avoided.
In an exemplary embodiment, referring to fig. 5, there is further provided a device 500, which includes a communication bus, a processor, a memory, and a communication interface, and may further include an input/output interface and a display device, wherein the functional units may communicate with each other through the bus. The memory stores computer programs, and the processor is used for executing the programs stored in the memory and executing the dish picture uploading method in the embodiment.
A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the dish picture uploading method.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by hardware, and also by software plus a necessary general hardware platform. 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.
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 (18)

1. A method for uploading a menu picture is applied to a terminal and comprises the following steps:
when detecting that a to-be-uploaded dish display page is triggered, acquiring an operation gesture for triggering the to-be-uploaded dish display page, wherein the to-be-uploaded dish display page displays dish information of at least one to-be-uploaded dish, and the dish information at least comprises a dish name;
determining a preset gesture, and comparing the operation gesture with the preset gesture, wherein the preset gesture is at least a pull-down gesture, a shaking gesture and a sliding gesture;
if the operation gesture is consistent with the preset gesture, generating a picture uploading instruction carrying the dish information, and transmitting the picture uploading instruction, wherein the picture uploading instruction is used for instructing a server to select a matched picture for the dish to be uploaded from alternative dish pictures for matching pictures based on the dish information;
and receiving a target picture uploaded to a target position corresponding to the dish information, and displaying the target picture at the target position, wherein the target picture is determined according to the dish name and is extracted from a picture library, and a plurality of alternative dish pictures or picture addresses are stored in the picture library.
2. The method of claim 1, wherein when it is detected that the to-be-uploaded dish display page is triggered, before the operation gesture for triggering the to-be-uploaded dish display page is acquired, the method comprises:
when detecting that a user requests to display the dish to be uploaded, generating a dish display request to be uploaded, and transmitting the dish display request to be uploaded, wherein the dish display request to be uploaded carries a store identifier;
and receiving returned dish information of the dish to be uploaded, determining a preset display mode, and generating the dish display page to be uploaded comprising the dish information according to the preset display mode.
3. The method according to claim 1, wherein the determining a preset gesture, and the comparing the operation gesture with the preset gesture comprise:
identifying the operation gesture, and determining the moving direction of the operation gesture;
and acquiring a preset direction of the preset gesture, and comparing the moving direction with the preset direction.
4. A method for uploading a dish picture, the method comprising:
when a picture uploading instruction is received, acquiring the dish information of a dish to be uploaded carried by the picture uploading instruction, wherein the dish information at least comprises a dish name, and the picture uploading instruction is transmitted to a server by a terminal and is used for instructing the server to select a matched picture for the dish to be uploaded in alternative dish pictures based on the dish information to match a picture;
acquiring at least one keyword tag, and determining a target keyword tag corresponding to the dish name in the at least one keyword tag, wherein the target similarity between the target keyword tag and the dish name meets the requirement of a similarity threshold;
and extracting a target picture corresponding to the target keyword tag, uploading the target picture to a target position corresponding to the dish information, wherein the target picture is from a picture library, and a plurality of alternative dish pictures or picture addresses are stored in the picture library.
5. The method of claim 4, wherein when the picture uploading instruction is received, before the obtaining of the dish information of the dish to be uploaded, which is indicated by the picture uploading instruction, comprises:
when a to-be-uploaded dish display request is received, extracting information of the to-be-uploaded dish display request, and acquiring a store identifier in the to-be-uploaded dish display request;
performing data query based on the store identification to obtain a plurality of dish data corresponding to the store identification, wherein the dish data at least comprises a dish identification, a dish name and a dish picture;
detecting the plurality of dish data, and extracting target dish data with empty dish pictures from the plurality of dish data;
and acquiring a dish identifier and a dish name of the target dish data, calling the dish identifier and the dish name of the target dish data as the dish information of the dish to be uploaded, and returning the dish information of the dish to be uploaded.
6. The method of claim 4, wherein the obtaining at least one keyword tag and determining a target keyword tag corresponding to the dish name in the at least one keyword tag comprises:
extracting keywords from the dish name to obtain name keywords of the dish name;
calculating the similarity between the at least one keyword label and the name keyword to obtain at least one character similarity;
comparing the at least one character similarity with the similarity threshold, and extracting a target similarity larger than the similarity threshold from the at least one character similarity;
and extracting the keyword label indicated by the target similarity from at least one keyword label as the target keyword label.
7. The method of claim 6, wherein the calculating the similarity between the at least one keyword tag and the name keyword to obtain at least one character similarity comprises:
for any keyword label in the at least one keyword label, counting the number of target characters of coincident characters between the keyword label and the name keyword;
counting the total number of the characters of the name keyword, calculating the number ratio of the number of the target characters to the total number, and taking the number ratio as the character similarity of the keyword label and the name keyword;
and repeatedly executing the process of calculating the character similarity between the keyword label and the name keyword to obtain the at least one character similarity.
8. The method of claim 4, wherein the extracting a target picture corresponding to the target keyword tag and uploading the target picture to a target position corresponding to the dish information comprises:
acquiring a picture address corresponding to the target keyword tag, and extracting the target picture at the picture address;
and determining the target position indicated by the dish identification included in the dish information, and transmitting the target picture to the target position.
9. The utility model provides a dish picture upload device which characterized in that, the device is applied to the terminal, includes:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an operation gesture for triggering a to-be-uploaded dish display page when detecting that the to-be-uploaded dish display page is triggered, the to-be-uploaded dish display page displays dish information of at least one to-be-uploaded dish, and the dish information at least comprises a dish name;
the comparison module is used for determining a preset gesture and comparing the operation gesture with the preset gesture, wherein the preset gesture is at least a pull-down gesture, a shaking gesture and a sliding gesture;
the generating module is used for generating a picture uploading instruction carrying the dish information if the operation gesture is consistent with the preset gesture, and transmitting the picture uploading instruction, wherein the picture uploading instruction is used for instructing a server to select a matched picture for the dish to be uploaded in alternative dish pictures based on the dish information to match the pictures;
and the display module is used for receiving a target picture uploaded to a target position corresponding to the dish information and displaying the target picture at the target position, the target picture is determined according to the dish name and is extracted from a picture library, and a plurality of alternative dish pictures or picture addresses are stored in the picture library.
10. The apparatus of claim 9, wherein the apparatus comprises:
the transmission module is used for generating a to-be-uploaded dish display request when detecting that a user requests to display the to-be-uploaded dish, and transmitting the to-be-uploaded dish display request, wherein the to-be-uploaded dish display request carries a store identifier;
and the receiving module is used for receiving the returned dish information of the dish to be uploaded, determining a preset display mode and generating the dish display page to be uploaded comprising the dish information according to the preset display mode.
11. The apparatus of claim 9, wherein the alignment module comprises:
the recognition unit is used for recognizing the operation gesture and determining the moving direction of the operation gesture;
and the comparison unit is used for acquiring the preset direction of the preset gesture and comparing the moving direction with the preset direction.
12. A dish picture uploading device, comprising:
the acquisition module is used for acquiring the dish information of the dish to be uploaded carried by the picture uploading instruction when the picture uploading instruction is received, wherein the dish information at least comprises a dish name, and the picture uploading instruction is transmitted to the server by the terminal and is used for instructing the server to select a matched picture for the dish to be uploaded from alternative dish pictures based on the dish information to match the picture;
the determining module is used for acquiring at least one keyword tag, and determining a target keyword tag corresponding to the dish name in the at least one keyword tag, wherein the target similarity between the target keyword tag and the dish name meets the requirement of a similarity threshold;
and the uploading module is used for extracting a target picture corresponding to the target keyword tag and uploading the target picture to a target position corresponding to the dish information, wherein the target picture is from a picture library, and a plurality of alternative dish pictures or picture addresses are stored in the picture library.
13. The apparatus of claim 12, wherein the apparatus comprises:
the device comprises an extraction module, a storage module and a display module, wherein the extraction module is used for extracting information of a to-be-uploaded dish display request when the to-be-uploaded dish display request is received, and acquiring a store identifier in the to-be-uploaded dish display request;
the query module is used for performing data query based on the store identification to obtain a plurality of dish data corresponding to the store identification, wherein the dish data at least comprises a dish identification, a dish name and a dish picture;
the detection module is used for detecting the plurality of dish data and extracting target dish data with empty dish pictures from the plurality of dish data;
and the returning module is used for acquiring the dish identification and the dish name of the target dish data, calling the dish identification and the dish name of the target dish data as the dish information of the dish to be uploaded, and returning the dish information of the dish to be uploaded.
14. The apparatus of claim 12, wherein the determining module comprises:
the extraction unit is used for extracting keywords of the dish names to obtain name keywords of the dish names;
the calculation unit is used for calculating the similarity between the at least one keyword label and the name keyword to obtain at least one character similarity;
the comparison unit is used for comparing the at least one character similarity with the similarity threshold value and extracting the target similarity which is greater than the similarity threshold value from the at least one character similarity;
a determining unit, configured to extract a keyword tag indicated by the target similarity from at least one keyword tag as the target keyword tag.
15. The apparatus according to claim 14, wherein the computing unit is configured to count, for any keyword tag in the at least one keyword tag, a target character number of a coincident character between the keyword tag and the name keyword; counting the total number of the characters of the name keyword, calculating the number ratio of the number of the target characters to the total number, and taking the number ratio as the character similarity of the keyword label and the name keyword; and repeatedly executing the process of calculating the character similarity between the keyword label and the name keyword to obtain the at least one character similarity.
16. The apparatus of claim 12, wherein the upload module comprises:
the extracting unit is used for acquiring a picture address corresponding to the target keyword tag and extracting the target picture at the picture address;
and the transmission unit is used for determining the target position indicated by the dish identification included in the dish information and transmitting the target picture to the target position.
17. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
18. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN201811427279.6A 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium Active CN109766052B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811427279.6A CN109766052B (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium
CN202110765267.XA CN113296680A (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811427279.6A CN109766052B (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110765267.XA Division CN113296680A (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109766052A CN109766052A (en) 2019-05-17
CN109766052B true CN109766052B (en) 2021-06-25

Family

ID=66449610

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110765267.XA Pending CN113296680A (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium
CN201811427279.6A Active CN109766052B (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110765267.XA Pending CN113296680A (en) 2018-11-27 2018-11-27 Dish picture uploading method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (2) CN113296680A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442743A (en) * 2019-08-05 2019-11-12 中山职业技术学院 A kind of dish information dissemination method turning text based on picture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5080524B2 (en) * 2008-03-26 2012-11-21 富士フイルム株式会社 Storage device for image sharing, image sharing and method
CN105278860B (en) * 2015-10-30 2018-11-20 努比亚技术有限公司 Mobile terminal picture uploads device and method
CN105653636B (en) * 2015-12-25 2020-07-28 北京搜狗科技发展有限公司 Information processing method and device for information processing
CN106445995A (en) * 2016-07-18 2017-02-22 腾讯科技(深圳)有限公司 Picture classification method and apparatus

Also Published As

Publication number Publication date
CN113296680A (en) 2021-08-24
CN109766052A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109086394B (en) Search ranking method and device, computer equipment and storage medium
CN105518678B (en) Searching method, searcher and user equipment
CN111782977B (en) Point-of-interest processing method, device, equipment and computer readable storage medium
CN105574089B (en) Knowledge graph generation method and device, and object comparison method and device
JP6986187B2 (en) Person identification methods, devices, electronic devices, storage media, and programs
CN111767396B (en) Data processing method, device, equipment and computer readable storage medium
WO2018120425A1 (en) Personal property status assessing method, apparatus, device, and storage medium
CN111143543A (en) Object recommendation method, device, equipment and medium
US20140052585A1 (en) Information processing system, information processing method, program, and information recording medium
CN109189960A (en) Information acquisition method, information acquisition device and computer storage medium
CN111026853A (en) Target problem determination method and device, server and customer service robot
US9569465B2 (en) Image processing
CN109213397B (en) Data processing method and device and user side
CN109766052B (en) Dish picture uploading method and device, computer equipment and readable storage medium
KR100985949B1 (en) System and method for providing product information service by mobile network system
CA2850883A1 (en) Image processing
CN108170688B (en) Method and device for automatically inputting data
CN113868453B (en) Object recommendation method and device
CN113378005B (en) Event processing method, device, electronic equipment and storage medium
CN115618109A (en) Content recommendation method and device, electronic equipment and computer-readable storage medium
EP4060521A1 (en) Method for providing tag, and electronic device for supporting same
CN109084750B (en) Navigation method and electronic equipment
CN110487016B (en) Method, device and system for precisely pushing information to intelligent refrigerator
KR20150101846A (en) Image classification service system based on a sketch user equipment, service equipment, service method based on sketch and computer readable medium having computer program recorded therefor
CN113362543B (en) Settlement method, settlement device, electronic 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