WO2025060915A1 - Information exchange method and apparatus - Google Patents
Information exchange method and apparatus Download PDFInfo
- Publication number
- WO2025060915A1 WO2025060915A1 PCT/CN2024/117723 CN2024117723W WO2025060915A1 WO 2025060915 A1 WO2025060915 A1 WO 2025060915A1 CN 2024117723 W CN2024117723 W CN 2024117723W WO 2025060915 A1 WO2025060915 A1 WO 2025060915A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- recommended
- locker
- opening code
- cabinet
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/10—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property
- G07F17/12—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned
- G07F17/13—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned the containers being a postal pick-up locker
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
- G06V30/153—Segmentation of character regions using recognition of characters or words
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/02—Devices for alarm or indication, e.g. when empty; Advertising arrangements in coin-freed apparatus
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/02—Devices for alarm or indication, e.g. when empty; Advertising arrangements in coin-freed apparatus
- G07F9/023—Arrangements for display, data presentation or advertising
Definitions
- the present invention relates to the technical field of logistics management, and in particular to an information interaction method and device for logistics distribution information management.
- the emergence of delivery cabinets solves the problem of the last 50 meters of logistics and distribution services.
- the delivery personnel deposit the items to be delivered into the delivery cabinet, they manually enter the last four digits of the user's mobile phone number as the cabinet opening code to complete the storage operation.
- the delivery personnel need to wake up the digital input panel and then manually enter the valid digits of the mobile phone number into the digital input panel digit by digit, which increases the time and complexity of the delivery personnel's operation process.
- the delivery personnel enter the wrong cabinet opening code, the customer will not be able to take out the items normally.
- an information interaction method comprising:
- a calling module used to call the optical character recognition camera plug-in provided by the mini-program platform to obtain the image information to be recognized in real time after the storage process based on the mini-program is started, wherein the image information to be recognized includes the image frame to be recognized and the corresponding recognition string;
- a second display module configured to display the recommended cabinet opening code in response to identifying the recommended cabinet opening code
- an electronic device comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect above.
- the embodiment of the present invention is applicable to the storage process based on the applet.
- the optical character recognition camera plug-in provided by the applet platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience.
- the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed.
- the recommended cabinet opening code is sent to the food storage cabinet server to control the food storage cabinet to open the target cabinet compartment, and the target cabinet compartment is opened when the pickup code is received as the recommended cabinet opening code.
- the embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the food storage process. By calling the optical character recognition camera plug-in provided by the mini program platform, optical character recognition can be implemented in the terminal, saving data transmission time.
- FIG1 is a flow chart of an information interaction method according to an embodiment of the present invention.
- FIG. 2 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention
- FIG3 is a schematic diagram of a first stored meal page according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of the first meal storage page after the recommended locker opening code confirmation control is triggered according to an embodiment of the present invention
- FIG. 5 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention
- FIG6 is a schematic diagram of a second stored meal page according to an embodiment of the present invention.
- FIG7 is a schematic diagram of a camera page according to an embodiment of the present invention.
- FIG8 is a schematic diagram of a second meal storage page after the recommended locker opening code is identified and obtained according to an embodiment of the present invention.
- FIG9 is a flow chart of an information interaction method according to an embodiment of the present invention.
- FIG10 is a flow chart of an information interaction method according to an embodiment of the present invention.
- FIG11 is a schematic diagram of an information interaction system according to an embodiment of the present invention.
- FIG12 is a schematic diagram of an information interaction device according to an embodiment of the present invention.
- FIG. 13 is a schematic diagram of an electronic device according to an embodiment of the present invention.
- the terms “first”, “second” and the like are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
- the meaning of “multiple” is two or more.
- the user information and terminal information obtained are obtained under the premise of user authorization and knowledge, and the user information obtained will only be applied to the methods described in various embodiments of the present invention.
- FIG1 is a flow chart of an information interaction method according to an embodiment of the present invention. As shown in FIG1 , the information interaction method includes the following steps:
- step S101 after the storage process based on the mini-program is started, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string.
- the mini program is an application that can be used without downloading and installing. Users can open the corresponding application by scanning or searching.
- the mini program is available at any time and does not need to be installed or uninstalled, which embodies the concept of "use it and go", so that users do not have to worry about whether installing too many applications takes up too much terminal memory.
- the mini program platform can provide a variety of plug-ins for mini programs running on the mini program platform, such as optical character recognition (OCR) camera plug-ins, program code generation plug-ins, and one-way video plug-ins.
- OCR optical character recognition
- the mini program of this embodiment is a logistics management mini program that includes a cabinet code intelligent recognition service.
- the logistics management mini program is configured to use the optical character recognition camera plug-in provided by the mini program platform to obtain the image information to be recognized.
- Optical character recognition refers to the process of analyzing and identifying image files containing text materials to obtain text information. In other words, character recognition of image files using OCR technology can return corresponding characters.
- the optical character recognition camera plug-in uses the computing resources of the terminal running the mini-program platform to determine the image information to be recognized. There is no need to upload the image frames to be recognized collected by the terminal to the server for OCR recognition and then return the recognition results to the terminal, which saves data transmission time and makes the OCR recognition process faster.
- the stored meal page includes a first stored meal page and a second stored meal page. Different stored meal pages use different amounts of computing resources when calling the optical character recognition camera plug-in. Specifically, after receiving a request to start the stored meal process, the computing resources of the terminal running the mini-program platform are detected. Based on the available computing resources of the terminal, determine the page to be jumped to.
- step S105 in response to identifying the recommended locker opening code, the recommended locker opening code is displayed.
- FIG2 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention.
- the method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time includes the following steps:
- step S202 in response to detecting that the computing resources are greater than a predetermined computing resource threshold, the process jumps to a first stored meal page, where the first stored meal page is provided with a camera image display frame and a recommended locker code display control.
- the predetermined computing resource threshold is not less than the minimum computing resource required to simultaneously realize the recognition of the recommended cabinet opening code and the drawing and rendering of the real-time video.
- Fig. 3 is a schematic diagram of the first meal storage page of an embodiment of the present invention.
- the first meal storage page 30 includes a recommended locker opening code identification container 31, a question answering control 35, a locker opening mode switching control 36, a main page switching container 37 and a navigation switching control 38.
- the recommended cabinet code recognition container 31 is used to display prompt information and recommended cabinet code recognition related controls.
- the prompt information is used to prompt the user to scan a specific area to obtain a valid image frame to be identified.
- the specific area refers to the customer information area in the takeaway receipt, and the valid image frame to be identified is an image frame containing the customer's mobile phone number.
- the prompt information can specifically be "Please scan the customer information on the receipt to store the meal” or "Please aim at the customer's mobile phone number", etc.
- the recommended cabinet code recognition related controls include a camera screen display frame 32, a recommended cabinet code display control 33, and a recommended cabinet code confirmation control 34.
- the question answering control 35 is used to display the most common user questions and to display question answering information when triggered. For example, the question answering control 35 is used to display "How to find the last 4 digits of a customer's mobile phone number?" and to display question answering information when triggered to guide the user to successfully find a specific area containing the customer's mobile phone number.
- the locker opening mode switching control 36 is used to switch the locker opening code mode.
- the current default locker opening mode is to call the optical character recognition plug-in to identify and determine the recommended locker opening code.
- the locker opening mode also includes receiving the mobile phone code input by the user. After the locker opening mode switching control 36 is triggered, the current locker opening mode is switched from the mode of calling the optical character recognition plug-in to identify and determine the recommended locker opening code to the mode of receiving the mobile phone number input by the user as the locker opening code.
- the main page switching container 37 is used to switch the main page.
- the main page may include a stored meal page, a stored meal record display page, and a user personal information page.
- the main page switching container 37 may include a corresponding switching control for each page, such as a stored meal page switching control, a stored meal record display page switching control, and a user personal information page switching control.
- the page switching control When the page switching control is triggered, it jumps to the main page corresponding to the page switching control.
- the page shown in FIG3 is the first stored meal page displayed after the stored meal page switching control is triggered.
- the navigation switch control 38 is used to display the delivery address, and when triggered, requests the navigation service and jumps to the corresponding navigation interface.
- the time for calling the optical character recognition camera plug-in is the time from the successful loading of the first stored meal page to the time from leaving the first stored meal page, such as jumping to the stored meal record display page after the stored meal record display page switch control in the main page switch container 37 is triggered, or the time for calling the optical character recognition camera plug-in is the time from the successful loading of the first stored meal page to the time when the locker opening mode switch control 36 is triggered and the calling of the optical character recognition camera plug-in is stopped.
- the recommended locker code can be confirmed twice. Specifically, in response to the recommended locker code confirmation control 34 in FIG. 3 being triggered, the recommended locker code secondary confirmation control is displayed on the first meal storage page 30.
- FIG4 is a schematic diagram of the first meal storage page after the recommended locker code confirmation control of the embodiment of the present invention is triggered.
- the recommended locker code secondary confirmation container 41 is displayed in the first meal storage page 30.
- the recommended locker code secondary confirmation container 41 can be displayed in the form of a pop-up window, that is, a recommended locker code secondary confirmation pop-up window.
- the recommended locker code secondary confirmation container 41 includes a secondary confirmation prompt information display control 42, a secondary confirmation recommended locker code display control 43, a recommended locker code modification control 44 and a recommended locker code secondary confirmation control 45.
- the secondary confirmation prompt information display control 42 is used to display prompt information for prompting the user to manually check the recommended cabinet opening code displayed in the secondary confirmation recommended cabinet opening code display control 43.
- the prompt information may be "Please confirm that the customer's last digit input is correct" and/or "Intelligent recognition may be wrong, please check carefully.”
- the accuracy of the currently displayed recommended cabinet opening code can also be calculated, and the corresponding prompt information content can be determined according to the accuracy level. If the accuracy level is low, the corresponding prompt information content can be "The accuracy of the cabinet opening code obtained by the current intelligent recognition is low, please check carefully.” Different prompt information can also be set for different accuracy levels.
- the prompt information is displayed in red color to prompt the user. For example, when the accuracy level is low, the prompt information is displayed in red color, and when the accuracy level is high, the prompt information is displayed in green color.
- the secondary confirmation recommended locker code display control 43 is used to display the recommended locker code.
- the recommended locker code modification control 44 is used to change the editing state of the secondary confirmation recommended locker code display control 43 to an editable state after being triggered, or to jump to the recommended locker code modification container or page after being triggered.
- the user-modified recommended locker code is obtained.
- the recommended cabinet opening code secondary confirmation control 45 is used for secondary confirmation of the recommended cabinet opening code. After being triggered, the recommended cabinet opening code is sent to the food storage cabinet server so that the food storage cabinet server controls the food storage cabinet to open the target cabinet.
- the stored meal page layout is a second stored meal page.
- step S101 is specifically the method shown in FIG5 .
- step S501 the computing resources of the terminal running the mini-program platform are detected.
- the cabinet opening code receiving container 61 is used to display prompt information and recommended cabinet opening code receiving related controls.
- the prompt information is used to prompt the user to enter the cabinet opening code.
- the prompt information can be "Please enter the last 4 digits of the customer's mobile phone number to store meals.”
- Recommended cabinet opening code receiving related controls include a cabinet opening code receiving control 62 and a second camera jump control 63.
- the cabinet opening code receiving control 62 is used to receive the cabinet opening code entered by the user.
- the second camera jump control 63 is used to jump to the camera page after being triggered to call the optical character recognition camera plug-in provided by the mini program platform to obtain the image information to be recognized in real time.
- the second camera jump control 63 is located below the cabinet opening code receiving control 62 so that when the user wants to enter the cabinet opening code, the user is prompted to use the optical character recognition method to automatically obtain the recommended cabinet opening code.
- the question answering control 64 is used to display the most common user questions and to display question answering information after being triggered.
- the specific usage is the same as the question answering control 26 shown in FIG. 2 , and will not be described in detail here.
- the first camera jump control 65 is used in the same manner as the second camera jump control 63.
- the first camera jump control 65 is located at the center of the second stored meal page 60, making it easier for the user to see and click the control.
- the main page switching container 66 is used to switch the main page.
- the specific usage is the same as that of the main page switching container 27 shown in FIG. 2 , and will not be described in detail here.
- the navigation switch control 67 is used to display the delivery address.
- the specific usage is the same as the navigation switch control 28 shown in Figure 2, which will not be repeated here.
- step S503 in response to the camera jump control being triggered, the control jumps to the camera page, where a camera image display frame is provided.
- step S504 in response to the completion of loading the camera page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time.
- Fig. 7 is a schematic diagram of a camera page according to an embodiment of the present invention.
- the camera page 70 includes a prompt information display control 71, a camera image display frame 72 and a second stored meal page return control 73.
- the prompt information display control 71 is used to display information prompting the user to scan a specific area to obtain a valid image frame to be identified.
- the prompt information may specifically be "Please scan the [customer information] on the receipt” or the like.
- the camera screen display frame 72 is used to display real-time video so that the user can know the current scanning range and determine the correct scanning direction according to the prompt information and the current scanning range.
- the second stored meal page return control 73 is used to jump from the camera page 70 to the second stored meal page 60. Specifically, when the scanning time is too long but the recommended locker opening code is not recognized, the user can choose to trigger the second stored meal page return control 73 to return to the second stored meal page to rescan or manually enter the locker opening code.
- the terminal determines the recommended locker opening code based on the recognition character string, and in response to identifying the recommended locker opening code, returns from the camera page 70 to the second stored meal page 60, and displays the recommended locker opening code in the recommended locker opening code display control in the second stored meal page 60.
- FIG8 is a schematic diagram of the second meal storage page after the recommended locker opening code is identified in an embodiment of the present invention.
- the second meal storage page 60 displays the recommended locker opening code confirmation container 81.
- the recommended locker opening code confirmation container 81 can be displayed in the form of a pop-up window, that is, the recommended locker opening code display pop-up window.
- the recommended locker opening code confirmation container 81 includes a confirmation prompt information control 82, a recommended locker opening code display control 83, a recommended locker opening code modification control 84 and a recommended locker opening code confirmation control 85.
- the confirmation prompt information control 82 is used to display prompt information prompting the user to manually check the recommended locker opening code displayed in the confirmation recommended locker opening code display control 83.
- the specific usage is the same as the usage of the secondary confirmation prompt information display control 42 shown in Figure 4, which will not be repeated here.
- the recommended locker opening code display control 83 is used to display the recommended locker opening code obtained by identification.
- the recommended locker opening code modification control 84 is used to modify the recommended locker opening code displayed by the recommended locker opening code display control 83.
- the specific usage is the same as that of the recommended locker opening code modification control 44 shown in FIG.
- the recommended locker opening code confirmation control 85 is used to send the recommended locker opening code to the food storage cabinet server after being triggered so that the food storage cabinet server controls the food storage cabinet to open the target cabinet.
- the specific usage is the same as the usage of the recommended locker opening code confirmation control 34 shown in Figure 3, which will not be repeated here.
- the recommended cabinet opening code obtained by identification can also be reconfirmed.
- the recommended cabinet opening code confirmation control 85 in FIG8 is triggered, the recommended cabinet opening code secondary confirmation container 41 shown in FIG4 is displayed on the second meal storage page 60.
- the secondary confirmation method is the same as the method of using the recommended cabinet opening code secondary confirmation container 41 shown in FIG4. Since the present embodiment is designed for terminals with relatively scarce computing resources and general rendering capabilities, the calling condition of the optical character recognition camera plug-in is that the camera jump control in the second meal storage page is triggered.
- the time for calling the optical character recognition camera plug-in is the time from when the camera jump control in the second meal storage page is triggered to when the second meal storage page is returned.
- the calling time is short.
- the method of the embodiment of the present invention is applicable to the storage process based on the applet.
- the optical character recognition camera plug-in provided by the applet platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience.
- the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed.
- the recommended cabinet opening code is sent to the food storage cabinet server to control the food storage cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code.
- the embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the meal storage process. By calling the optical character recognition camera plug-in provided by the applet platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
- FIG9 is a flow chart of an information interaction method according to an embodiment of the present invention. As shown in FIG9 , the method comprises the following steps:
- step S901 in response to the completion of loading of the first stored meal page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain image information to be recognized in real time, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string.
- step S902 the corresponding real-time video is determined according to the image frame to be identified, and the real-time video is displayed in the camera image display frame in the first stored meal page.
- step S903 a recommended locker opening code is determined according to the recognition character string.
- step S904 in response to identifying the recommended locker opening code, the recommended locker opening code is displayed.
- step S905 in response to the recommended cabinet opening code confirmation control being triggered, a recommended cabinet opening code secondary confirmation container, that is, a recommended cabinet opening code secondary confirmation pop-up window is displayed, and the recommended cabinet opening code secondary confirmation container includes the recommended cabinet opening code secondary confirmation control.
- step S906 in response to the recommended locker opening code secondary confirmation control being triggered, the recommended locker opening code is sent to the food storage cabinet server so that the food storage cabinet server controls the food storage cabinet to open the target cabinet.
- the computing resources of the terminal running the applet platform can also be detected. If it is detected that the computing resources are greater than the predetermined computing resource threshold, the meal storage page is determined to be the first meal storage page. Thereafter, when the logistics management applet is started again on the same terminal, the default meal storage page is the first meal storage page.
- the method of the embodiment of the present invention is applicable to a terminal with sufficient available computing resources.
- the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience.
- the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed on the first stored meal page.
- the recommended cabinet opening code is sent to the cabinet server to control the cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code.
- the embodiment of the present invention successfully loads the first stored meal page, which means that the optical character recognition camera plug-in is automatically called, and no other operations are required by the user.
- the process is simple and the user experience is good.
- the cabinet opening code can be automatically analyzed from the image frame to be recognized, simplifying the meal storage process.
- character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
- FIG10 is a flow chart of an information interaction method according to an embodiment of the present invention. As shown in FIG10 , the method includes the following steps:
- step S1001 in response to the camera jump control in the second stored meal page being triggered, the page jumps to the camera page, which is provided with a camera image display frame.
- the layout of the second stored meal page and the controls included are shown in FIG6 , which will not be described in detail here.
- step S1002 in response to the completion of loading the camera page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time.
- the layout of the camera page and the controls included are shown in FIG7 , which will not be described in detail here.
- step S1003 the corresponding real-time video is determined according to the image frame to be identified, and the real-time video is displayed in the camera screen display box in the camera page.
- step S1004 a recommended locker opening code is determined according to the recognition character string.
- step S1006 the recommended locker opening code is displayed in the recommended locker opening code confirmation container, which at least includes a recommended locker opening code display control and a recommended locker opening code confirmation control. That is, the recommended locker opening code is displayed in the recommended locker opening code display pop-up window.
- step S1007 in response to the recommended cabinet opening code confirmation control being triggered, a recommended cabinet opening code secondary confirmation container is displayed, and the recommended cabinet opening code secondary confirmation container includes the recommended cabinet opening code secondary confirmation control.
- the recommended locker opening code confirmation container is the same as the recommended locker opening code secondary confirmation container 41 shown in FIG. 4 , and will not be described in detail herein.
- the computing resources of the terminal running the applet platform can also be detected. If it is detected that the computing resources are not greater than the predetermined computing resource threshold, the stored meal page is determined to be the second stored meal page. Thereafter, when the logistics management applet is started again on the same terminal, the default stored meal page is the second stored meal page.
- the method of the embodiment of the present invention is applicable to terminals with scarce available computing resources.
- the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display box in the camera page, so that the user can know the real-time scanning range and improve the user experience.
- the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed on the second meal storage page.
- the recommended cabinet opening code is sent to the meal storage cabinet server to control the meal storage cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code.
- the camera jump control is clicked to start recognition and draw real-time video, and character recognition and real-time video drawing are stopped after the recommended cabinet opening code is recognized.
- the requirements for terminal performance and computing resources are low, and it can be applied to more terminals.
- optical character recognition the cabinet opening code can be automatically analyzed from the image frame to be recognized, simplifying the meal storage process.
- character recognition camera plug-in provided by the mini-program platform, character recognition can be realized on the terminal without interacting with the server, saving data transmission time and improving recognition speed.
- Fig. 11 is a schematic diagram of an information interaction system according to an embodiment of the present invention.
- the information interaction system includes: a delivery terminal 1101 (hereinafter referred to as terminal), a food storage cabinet server 1102 and a food storage cabinet 1103.
- a pickup terminal 1104 may also be included.
- the delivery terminal 1101 or the pickup terminal 1104 can also be a dedicated terminal with an application program solidified in a dedicated integrated circuit.
- the open platform enables third-party developers to develop their own applet based on the open platform by providing an application programming interface (Application Programming Interface, API) to third-party developers.
- the mini program can be a program developed on the basis of the application in the platform and used to perform corresponding operations.
- the delivery terminal 1101 is the terminal device of the delivery resource for the platform to perform the delivery task.
- the delivery resource can be personnel or various unmanned equipment, such as delivery unmanned vehicles, delivery robots, delivery drones, etc.
- the pickup terminal 1104 is a terminal device used or held by platform consumers.
- the food storage cabinet server 1102 completes the order processing by interacting with the delivery terminal 1101, the food storage cabinet 1103 and/or the pickup terminal 1104.
- the delivery terminal 1101 completes the recommended cabinet opening code recognition through human-computer interaction. Specifically, after the storage process based on the mini program is started, the delivery terminal 1101 calls the optical character recognition camera plug-in provided by the mini program platform to obtain the image information to be recognized in real time.
- the image information to be recognized includes the image frame to be recognized. and the corresponding identification string, and then determine the corresponding real-time video according to the image frame to be identified, and display the real-time video in the camera screen display frame.
- the distribution terminal 1101 connects to the food storage cabinet server 1102 through the Internet to complete the cabinet storage task. Specifically, the distribution terminal 1101 sends the recommended cabinet opening code to the food storage cabinet server 1102, wherein the recommended cabinet opening code is also associated with the order identifier and the cabinet compartment identifier representing the cabinet compartment size.
- the food storage cabinet server 1102 searches for the order information according to the order identifier, and searches for all the digits of the customer's mobile phone number and/or part of the last four digits of the mobile phone number from the order information.
- the food storage cabinet server 1102 sends a food storage cabinet opening instruction associated with the target cabinet identifier to the food storage cabinet 1103. After receiving the food storage cabinet opening instruction, the food storage cabinet 1103 opens the target cabinet corresponding to the target cabinet identifier to complete the food storage. After the food storage cabinet 1103 detects that the target cabinet is closed, it sends a food storage success feedback message to the food storage cabinet server 1102.
- the food storage cabinet server 1102 After receiving the food storage success feedback message, the food storage cabinet server 1102 changes the order information status to waiting for food pickup, and sends a food pickup notification to the pickup terminal 1104.
- the meal storage cabinet server 1102 in response to receiving the pickup cabinet opening request sent by the meal storage cabinet 1103 or the pickup terminal 1104, determines the meal storage cabinet pointed to by the pickup cabinet opening request, and then searches for the recommended cabinet opening code that is the same as the pickup cabinet opening code from the recommended cabinet opening codes corresponding to the meal storage cabinet.
- the cabinet corresponding to the recommended cabinet opening code is determined as the target cabinet, or the pickup cabinet opening code associated with the pickup cabinet opening request is compared with all the digits of the customer's mobile phone number and/or part of the last four digits of the mobile phone number in the order information corresponding to each cabinet. If the comparison result indicates that the pickup cabinet opening code is the same as all the digits of the mobile phone number and/or part of the last four digits of the mobile phone number, the cabinet corresponding to the order information is determined to be the target cabinet.
- the meal storage cabinet server 1102 sends a meal pickup cabinet opening instruction to the meal storage cabinet 1103, and the meal pickup cabinet opening instruction is associated with the target cabinet identifier.
- the food storage cabinet 1103 After receiving the order to open the cabinet for meal pickup, the food storage cabinet 1103 controls the target cabinet corresponding to the target cabinet identifier to open the cabinet so that the customer can pick up the meal. After detecting that the target cabinet is closed, the food storage cabinet 1103 sends a feedback message of successful meal pickup to the food storage cabinet server 1102. The food storage cabinet server 1102 updates the order status to completed.
- FIG12 is a schematic diagram of an information interaction device according to an embodiment of the present invention. As shown in FIG12 , the device comprises:
- the calling module 1201 is used to call the optical character recognition camera plug-in provided by the mini-program platform to obtain the image information to be recognized in real time after the storage process based on the mini-program is started, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string;
- a first determination module 1202 is used to determine a corresponding real-time video according to the image frame to be identified;
- the first display module 1203 is used to display real-time video in the camera screen display frame
- the second determination module 1204 is used to determine the recommended locker opening code according to the recognition character string
- the second display module 1205 is used to display the recommended locker opening code in response to identifying the recommended locker opening code
- the sending module 1206 is used for sending the recommended locker opening code in response to the recommended locker opening code confirmation control being triggered so that the food storage cabinet server controls the food storage cabinet to open the first cabinet compartment and to open the first cabinet compartment when the pickup code received is the recommended locker opening code.
- the device of the embodiment of the present invention is suitable for the cabinet storage process implemented based on the mini program.
- the optical character recognition camera plug-in provided by the mini program platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience.
- the recommended cabinet opening code is determined according to the recognition string.
- the recommended cabinet opening code When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed to control the food storage cabinet to open the target cabinet, and open the target cabinet when the pickup code is received as the recommended cabinet opening code.
- the embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the meal storage process. By calling the optical character recognition camera plug-in provided by the mini program platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
- FIG13 is a schematic diagram of an electronic device of an embodiment of the present invention.
- the electronic device 1300 includes a server, a terminal, etc.
- the electronic device 1300 includes at least one processor 1301; and a memory 1302 connected to the at least one processor 1301 in communication; and a communication component 1303 connected to the scanning device in communication, and the communication component 1303 receives and sends data under the control of the processor 1301; wherein the memory 1302 stores instructions that can be executed by at least one processor 1301, and the instructions are executed by at least one processor 1301 to implement the above-mentioned information interaction method.
- the electronic device includes: one or more processors 1301 and a memory 1302, and FIG13 takes a processor 1301 as an example.
- the processor 1301 and the memory 1302 can be connected via a bus or other means, and FIG13 takes the connection via a bus as an example.
- the memory 1302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules.
- the processor 1301 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory 1302, that is, realizing the above-mentioned information interaction method.
- the memory 1302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store a list of options, etc.
- the memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device.
- the memory 1302 may optionally include a memory remotely arranged relative to the processor 1301, and these remote memories may be connected to an external device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- One or more modules are stored in the memory 1302, and when executed by one or more processors 1301, the information interaction method in any of the above method embodiments is executed.
- the above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method.
- the method provided in the embodiment of the present application please refer to the method provided in the embodiment of the present application.
- the embodiment of the present invention is applicable to the storage process based on the applet.
- the optical character recognition camera plug-in provided by the applet platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience.
- the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed.
- the recommended cabinet opening code is sent to the food storage cabinet server to control the food storage cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code.
- the embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the food storage process. By calling the optical character recognition camera plug-in provided by the applet platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
- Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, which is used for a computer to execute some or all of the above-mentioned method embodiments. That is, it can be understood by those skilled in the art that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application.
- a device which can be a single-chip microcomputer, chip, etc.
- a processor processor
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
- U disk mobile hard disk
- read-only memory ROM, Read-Only Memory
- RAM random access memory
- disk or optical disk and other media that can store program code.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本申请要求于2023年09月21日提交中国专利局、申请号为202311229275.8,发明名称为“一种信息交互方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the China Patent Office on September 21, 2023, with application number 202311229275.8, and invention name “A method and device for information interaction”, the entire contents of which are incorporated by reference in this application.
本发明涉及物流管理技术领域,具体而言,涉及一种用于物流配送信息管理的信息交互方法和装置。The present invention relates to the technical field of logistics management, and in particular to an information interaction method and device for logistics distribution information management.
在物流配送场景中,配送柜的出现解决了最后50米的物流配送服务难题。配送人员将需要配送的物品存入配送柜时,通过手动输入用户手机号后四位作为开柜码完成存物操作。在这个过程中,需要配送人员唤醒数字输入面板,再将手机号有效数字逐位手工录入数字输入面板,这增加了配送人员在的操作流程时间、复杂度,同时配送人员如果输入了错误的开柜码,会导致顾客无法正常取出物品。In the logistics and distribution scenario, the emergence of delivery cabinets solves the problem of the last 50 meters of logistics and distribution services. When the delivery personnel deposit the items to be delivered into the delivery cabinet, they manually enter the last four digits of the user's mobile phone number as the cabinet opening code to complete the storage operation. In this process, the delivery personnel need to wake up the digital input panel and then manually enter the valid digits of the mobile phone number into the digital input panel digit by digit, which increases the time and complexity of the delivery personnel's operation process. At the same time, if the delivery personnel enter the wrong cabinet opening code, the customer will not be able to take out the items normally.
申请内容Application Contents
有鉴于此,本发明实施例提供了一种信息交互方法和装置,以根据标签小票自动分析得到开柜码,简化存物流程。In view of this, an embodiment of the present invention provides an information interaction method and device to automatically analyze the label receipt to obtain the locker opening code, thereby simplifying the deposit process.
第一方面,提供了一种信息交互方法,所述方法包括:In a first aspect, an information interaction method is provided, the method comprising:
在基于小程序的存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息,所述待识别图像信息包括待识别图像帧和对应的识别字符串;根据所述待识别图像帧确定对应的实时视频;在相机画面显示框显示所述实时视频;根据所述识别字符串确定推荐开柜码;响应于识别到所述推荐开柜码,显示所述推荐开柜码;响应于推荐开柜码确认控件被触发,发送所述推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格以及在接收到取件码为所述推荐开柜码时开启所述目标柜格。After the mini-program-based cabinet storage process is started, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string; the corresponding real-time video is determined according to the image frame to be recognized; the real-time video is displayed in the camera screen display box; the recommended cabinet opening code is determined according to the recognition string; in response to the recognition of the recommended cabinet opening code, the recommended cabinet opening code is displayed; in response to the recommended cabinet opening code confirmation control being triggered, the recommended cabinet opening code is sent to enable the cabinet server to control the cabinet to open the target cabinet and open the target cabinet when the pickup code received is the recommended cabinet opening code.
第二方面,提供了一种信息交互装置,所述装置包括:In a second aspect, an information interaction device is provided, the device comprising:
调用模块,用于在基于小程序的存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息,所述待识别图像信息包括待识别图像帧和对应的识别字符串;A calling module, used to call the optical character recognition camera plug-in provided by the mini-program platform to obtain the image information to be recognized in real time after the storage process based on the mini-program is started, wherein the image information to be recognized includes the image frame to be recognized and the corresponding recognition string;
第一确定模块,用于根据所述待识别图像帧确定对应的实时视频;A first determination module, used to determine the corresponding real-time video according to the image frame to be identified;
第一显示模块,用于在相机画面显示框显示所述实时视频;A first display module, used for displaying the real-time video in a camera screen display frame;
第二确定模块,用于根据所述识别字符串确定推荐开柜码;A second determination module, configured to determine a recommended cabinet opening code according to the identification character string;
第二显示模块,用于响应于识别到所述推荐开柜码,显示所述推荐开柜码;A second display module, configured to display the recommended cabinet opening code in response to identifying the recommended cabinet opening code;
发送模块,用于发送所述推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格以及在接收到取件码为所述推荐开柜码时开启所述目标柜格。The sending module is used to send the recommended cabinet opening code so that the food storage cabinet server controls the food storage cabinet to open the target cabinet compartment and opens the target cabinet compartment when the pickup code received is the recommended cabinet opening code.
第三方面,提供一种电子设备,包括存储器和处理器,所述存储器用于存储一条或多条计算机程序指令,其中,所述一条或多条计算机程序指令被所述处理器执行以实现如上述第一方面所述的方法。According to a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect above.
第四方面,提供一种计算机可读存储介质,其上存储计算机程序指令,所述计算机程序指令在被处理器执行时实现如上述第一方面所述的方法。According to a fourth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in the first aspect is implemented.
本发明实施例适用于基于小程序实现的存柜流程。在存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像帧和待识别图像帧对应的识别字符串,然后将实时获取的待识别图像帧绘制渲染成实时视频,并将实时视频显示在相机画面显示框中,以使用户得知实时扫描范围,提高用户的体验感。 同时根据识别字符串确定推荐开柜码,当推荐开柜码识别成功后,显示推荐开柜码,检测到用户触发推荐开柜码,向存餐柜服务器发送推荐开柜码,以控制存餐柜开启目标柜格,并在接收到取件码为推荐开柜码时开启目标柜格。本发明实施例通过使用光学字符识别可从待识别图像帧中自动分析得到开柜码,简化存餐流程。调用小程序平台提供的光学字符识别相机插件,可以在终端实现光学字符识别,节省数据传输时间。The embodiment of the present invention is applicable to the storage process based on the applet. After the storage process is started, the optical character recognition camera plug-in provided by the applet platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience. At the same time, the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed. When it is detected that the user triggers the recommended cabinet opening code, the recommended cabinet opening code is sent to the food storage cabinet server to control the food storage cabinet to open the target cabinet compartment, and the target cabinet compartment is opened when the pickup code is received as the recommended cabinet opening code. The embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the food storage process. By calling the optical character recognition camera plug-in provided by the mini program platform, optical character recognition can be implemented in the terminal, saving data transmission time.
通过以下参照附图对本发明实施例的描述,本发明的上述以及其它目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
图1为本发明实施例的信息交互方法的流程图;FIG1 is a flow chart of an information interaction method according to an embodiment of the present invention;
图2为本发明实施例的调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法流程图;2 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention;
图3为本发明实施例的第一存餐页面的示意图;FIG3 is a schematic diagram of a first stored meal page according to an embodiment of the present invention;
图4为本发明实施例的推荐开柜码确认控件被触发后的第一存餐页面的示意图;4 is a schematic diagram of the first meal storage page after the recommended locker opening code confirmation control is triggered according to an embodiment of the present invention;
图5为本发明实施例的调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法流程图;5 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention;
图6为本发明实施例的第二存餐页面的示意图;FIG6 is a schematic diagram of a second stored meal page according to an embodiment of the present invention;
图7为本发明实施例的相机页面的示意图;FIG7 is a schematic diagram of a camera page according to an embodiment of the present invention;
图8为本发明实施例的识别得到推荐开柜码后第二存餐页面的示意图;FIG8 is a schematic diagram of a second meal storage page after the recommended locker opening code is identified and obtained according to an embodiment of the present invention;
图9为本发明实施例的信息交互方法的流程图;FIG9 is a flow chart of an information interaction method according to an embodiment of the present invention;
图10为本发明实施例的信息交互方法的流程图;FIG10 is a flow chart of an information interaction method according to an embodiment of the present invention;
图11为本发明实施例的信息交互系统的示意图;FIG11 is a schematic diagram of an information interaction system according to an embodiment of the present invention;
图12为本发明实施例的信息交互装置的示意图;FIG12 is a schematic diagram of an information interaction device according to an embodiment of the present invention;
图13是本发明实施例的电子设备的示意图。FIG. 13 is a schematic diagram of an electronic device according to an embodiment of the present invention.
以下基于实施例对本申请进行描述,但是本申请并不仅仅限于这些实施例。在下文对本申请的细节描述中,详尽描述了一些特定的细节部分。对本领域技术人员来说没有这些细节部分的描述也可以完全理解本申请。为了避免混淆本申请的实质,公知的方法、过程、流程、元件和电路并没有详细叙述。此外,本领域普通技术人员应当理解,在此提供的附图都是为了说明的目的,并且附图不一定是按比例绘制的。除非上下文明确要求,否则整个申请文件中的“包括”、“包含”等类似词语应当解释为包含的含义而不是排他或穷举的含义;也就是说,是“包括但不限于”的含义。在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。在本发明的各个实施例中,出于对用户隐私权的保护,所获取的用户信息以及终端信息均在用户授权以及知情的前提下获取的,所获取的用户信息仅会应用于本发明的各实施例中所述方法。The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. For those skilled in the art, the present application can be fully understood without the description of these details. In order to avoid confusing the essence of the present application, the known methods, processes, procedures, components and circuits are not described in detail. In addition, it should be understood by those of ordinary skill in the art that the drawings provided herein are for illustrative purposes and the drawings are not necessarily drawn to scale. Unless the context clearly requires, the words "including", "comprising" and the like in the entire application document should be interpreted as including rather than exclusive or exhaustive meanings; that is, the meaning of "including but not limited to". In the description of the present application, it should be understood that the terms "first", "second" and the like are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "multiple" is two or more. In various embodiments of the present invention, for the protection of user privacy, the user information and terminal information obtained are obtained under the premise of user authorization and knowledge, and the user information obtained will only be applied to the methods described in various embodiments of the present invention.
在如下的描述中,以外卖柜存餐为例进行说明,应理解,本发明实施例并不对应用场景进行限定,可以应用于其它任何具有存物需求的平台,如配置有快递柜存物的快递派送平台、配置有物流中转装置的物流配送平台等。In the following description, the example of storing meals in take-out cabinets is used for explanation. It should be understood that the embodiments of the present invention are not limited to the application scenarios and can be applied to any other platform with storage needs, such as express delivery platforms equipped with express cabinets for storage, logistics distribution platforms equipped with logistics transfer devices, etc.
图1为本发明实施例的信息交互方法的流程图。如图1所示,信息交互方法包括如下步骤:FIG1 is a flow chart of an information interaction method according to an embodiment of the present invention. As shown in FIG1 , the information interaction method includes the following steps:
在步骤S101中,在基于小程序的存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息,待识别图像信息包括待识别图像帧和对应的识别字符串。 In step S101, after the storage process based on the mini-program is started, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string.
其中,小程序是一种不需要下载安装即可使用的应用,用户扫一扫或者搜一下即可打开对应应用。小程序随时可用,又无需安装卸载,体现了“用完即走”的理念,使用户不用关心是否安装太多应用占用太多终端内存的问题。小程序平台可提供多种插件以供基于该小程序平台运行的小程序使用,如光学字符识别(Optical Character Recognition,OCR)相机插件、程序码生成插件和单向视频插件等。本实施例的小程序为包含开柜码智能识别服务的物流管理小程序。物流管理小程序被配置为使用小程序平台提供的光学字符识别相机插件来获取待识别图像信息。光学字符识别是指对包含文本资料的图像文件进行分析识别处理以获取文本信息的过程。也就是说,使用OCR技术对图像文件进行字符识别可返回对应字符。光学字符识别相机插件使用运行小程序平台的终端的计算资源确定待识别图像信息,不需要将终端采集到的待识别图像帧上传至服务器进行OCR识别,再将识别结果返回终端,省去了数据传输时间,使OCR识别过程更快。Among them, the mini program is an application that can be used without downloading and installing. Users can open the corresponding application by scanning or searching. The mini program is available at any time and does not need to be installed or uninstalled, which embodies the concept of "use it and go", so that users do not have to worry about whether installing too many applications takes up too much terminal memory. The mini program platform can provide a variety of plug-ins for mini programs running on the mini program platform, such as optical character recognition (OCR) camera plug-ins, program code generation plug-ins, and one-way video plug-ins. The mini program of this embodiment is a logistics management mini program that includes a cabinet code intelligent recognition service. The logistics management mini program is configured to use the optical character recognition camera plug-in provided by the mini program platform to obtain the image information to be recognized. Optical character recognition refers to the process of analyzing and identifying image files containing text materials to obtain text information. In other words, character recognition of image files using OCR technology can return corresponding characters. The optical character recognition camera plug-in uses the computing resources of the terminal running the mini-program platform to determine the image information to be recognized. There is no need to upload the image frames to be recognized collected by the terminal to the server for OCR recognition and then return the recognition results to the terminal, which saves data transmission time and makes the OCR recognition process faster.
在一种可能的实施方式中,在调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息之前,需要根据终端的计算资源确定即将跳转的存餐页面,存餐页面包括第一存餐页面和第二存餐页面,不同的存餐页面在调用光学字符识别相机插件时使用的计算资源量不同。具体的,接收到开始存餐流程的请求后,检测运行小程序平台的终端的计算资源。根据终端的可用计算资源量,确定即将跳转的页面。具体的,响应于检测到计算资源大于预定计算资源阈值,跳转至第一存餐页面,第一存餐页面设置有相机画面显示框和推荐开柜码显示控件。响应于检测到计算资源不大于预定计算资源阈值,跳转至第二存餐页面,第二存餐页面设置有相机跳转控件。In a possible implementation, before calling the optical character recognition camera plug-in provided by the mini-program platform to obtain the image information to be recognized in real time, it is necessary to determine the stored meal page to be jumped to based on the computing resources of the terminal. The stored meal page includes a first stored meal page and a second stored meal page. Different stored meal pages use different amounts of computing resources when calling the optical character recognition camera plug-in. Specifically, after receiving a request to start the stored meal process, the computing resources of the terminal running the mini-program platform are detected. Based on the available computing resources of the terminal, determine the page to be jumped to. Specifically, in response to detecting that the computing resources are greater than a predetermined computing resource threshold, jump to the first stored meal page, and the first stored meal page is provided with a camera screen display box and a recommended cabinet opening code display control. In response to detecting that the computing resources are not greater than a predetermined computing resource threshold, jump to the second stored meal page, and the second stored meal page is provided with a camera jump control.
响应于接收到存柜流程启动请求,确定目标接口信息,然后根据目标接口信息调用目标接口以使用光学字符识别相机插件。其中,目标接口为光学字符识别相机插件对应接口,目标接口信息至少包括目标接口标识和目标接口调用凭证。示例性地,目标接口标识可以为printedTextOCR,目标接口调用凭证为统一资源定位符(Uniform Resource Locator,URL)参数,如access_token或cloudbase_access_token,access_token可通过getAccessToken接口获得,cloudbase_access_token可通过getOpenData接口获得。通过目标接口成功调用光学字符识别相机插件后,光学字符识别相机插件控制终端的摄像部件实时采集待识别图像帧,并对待识别图像帧进行OCR识别,得到每张待识别图像帧对应的识别字符串。将得到的待识别图像帧和对应的识别字符串返回至物流管理小程序。In response to receiving a locker process start request, the target interface information is determined, and then the target interface is called according to the target interface information to use the optical character recognition camera plug-in. Among them, the target interface is the interface corresponding to the optical character recognition camera plug-in, and the target interface information at least includes a target interface identifier and a target interface call credential. Exemplarily, the target interface identifier can be printedTextOCR, and the target interface call credential is a uniform resource locator (Uniform Resource Locator, URL) parameter, such as access_token or cloudbase_access_token, access_token can be obtained through the getAccessToken interface, and cloudbase_access_token can be obtained through the getOpenData interface. After successfully calling the optical character recognition camera plug-in through the target interface, the optical character recognition camera plug-in controls the camera component of the terminal to collect the image frame to be recognized in real time, and performs OCR recognition on the image frame to be recognized to obtain the recognition string corresponding to each image frame to be recognized. The obtained image frame to be recognized and the corresponding recognition string are returned to the logistics management applet.
在步骤S102中,根据待识别图像帧确定对应的实时视频。In step S102, the corresponding real-time video is determined according to the image frame to be identified.
在获取待识别图像帧时,需要引导用户对准特定区域,比如小票中的顾客信息区域或收件人手机号区域,以便能采集到包含开柜码的待识别图像帧,开柜码一般为顾客手机号的全部数字位或部分数字位,如手机号后4位。但由于终端当前的摄像部件已被光学字符识别相机插件占用,且光学字符识别相机插件仅返回待识别图像帧,若是直接显示待识别图像帧以提示用户当前拍摄范围,在待识别图像帧不断切换时,用户会感觉画面卡顿,视觉体验较差。因此,需要基于待识别图像帧,绘制渲染成实时视频并显示给用户,使用户感觉正在打开摄像头进行扫描。When acquiring the image frame to be recognized, the user needs to be guided to aim at a specific area, such as the customer information area or the recipient's mobile phone number area in the receipt, so that the image frame to be recognized containing the cabinet opening code can be collected. The cabinet opening code is generally all or part of the digits of the customer's mobile phone number, such as the last 4 digits of the mobile phone number. However, since the current camera component of the terminal has been occupied by the optical character recognition camera plug-in, and the optical character recognition camera plug-in only returns the image frame to be recognized, if the image frame to be recognized is directly displayed to prompt the user of the current shooting range, when the image frame to be recognized is constantly switched, the user will feel that the picture is stuck and the visual experience is poor. Therefore, it is necessary to draw and render it into a real-time video based on the image frame to be recognized and display it to the user, so that the user feels that the camera is being turned on for scanning.
示例性地,可以使用网络图形库(Web Graphics Library,WebGL)技术将待识别图像帧绘制渲染成实时视频流。WebGL是一种将Javasrcipt和OpenGL结合在一起的绘图技术标准,目的是将底层绘图能力开放给web应用层。WebGL技术标准免去了开发网页专用渲染插件的麻烦,可被用于创建具有复杂3D结构的图像或视频。For example, the Web Graphics Library (WebGL) technology can be used to render the image frame to be recognized into a real-time video stream. WebGL is a drawing technology standard that combines JavaScript and OpenGL, with the goal of opening the underlying drawing capabilities to the web application layer. The WebGL technology standard eliminates the trouble of developing dedicated rendering plug-ins for web pages and can be used to create images or videos with complex 3D structures.
在步骤S103中,在相机画面显示框显示实时视频。In step S103, the real-time video is displayed in the camera screen display frame.
在步骤S104中,根据识别字符串确定推荐开柜码。 In step S104, a recommended locker opening code is determined according to the recognition character string.
具体的,根据预设的正则匹配式,从识别字符串中筛选出推荐开柜码,预设的正则匹配式可以为正则匹配式组,包含多个正则匹配式。预设的正则匹配式根据实际情况确定,也即根据外卖平台使用的小票的实际打印内容确定。比如,推荐开柜码可以为顾客的手机号的全部数字位或部分数字位。Specifically, the recommended counter opening code is screened out from the recognition string according to a preset regular matching formula, and the preset regular matching formula may be a regular matching formula group, including multiple regular matching formulas. The preset regular matching formula is determined according to the actual situation, that is, according to the actual printed content of the receipt used by the food delivery platform. For example, the recommended counter opening code may be all or part of the digits of the customer's mobile phone number.
示例性地,若小票上显示顾客的手机号的全部数字位,且推荐开柜码也是手机号的全部数字位,则预设的正则匹配式组可以包括第一正则匹配式,也即,/^1(?:3\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\d|9\d)\d{8}$/,其中,^表示匹配字符串的开始,\d表示匹配数字,$表示匹配字符串的结束,n[a-b]表示第n位字符可取a-b之间的任一数字,\S表示匹配空白符。第一正则匹配式用于从识别字符串中查找顾客的手机号,通过该式得到的结果即为推荐开柜码。若小票上显示顾客的手机号的全部数字位,且推荐开柜码为手机号的部分数字位,如手机号后4位,则预设的正则匹配式组除了第一正则匹配式还包括第二正则匹配式,也即,replace(/(\d{7}(\d{4})/,'\S{7}$1')。该式表示将手机号(包括手机号的前7位和后4位),替换为前7位空白,只显示后4位。第二正则匹配式用于从顾客的手机号中提取后4位作为推荐开柜码。若为保护用户隐私,小票上的手机号隐去部分内容,比如为“131****0000”,则预设正则匹配式组还可以为/^1(?:3\d|4[*]|5[*]|6[*]|7[*]|8\d|9\d)\d{8}$/和replace(/(\d{7}(\d{4})/,'\S{7}$1')。Exemplarily, if the receipt shows all the digits of the customer's mobile phone number, and the recommended counter code is also all the digits of the mobile phone number, the preset regular matching group can include the first regular matching, that is, /^1(?:3\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\d|9\d)\d{8}$/, where ^ indicates the beginning of the matching string, \d indicates the matching number, $ indicates the end of the matching string, n[a-b] indicates that the nth character can be any number between a-b, and \S indicates the matching space character. The first regular matching is used to find the customer's mobile phone number from the recognition string, and the result obtained by this formula is the recommended counter code. If the receipt shows all the digits of the customer's mobile phone number, and the recommended locker code is part of the mobile phone number, such as the last 4 digits of the mobile phone number, the preset regular matching group includes a second regular matching formula in addition to the first regular matching formula, that is, replace(/(\d{7}(\d{4})/,'\S{7}$1'). This formula means that the mobile phone number (including the first 7 digits and the last 4 digits of the mobile phone number) is replaced with the first 7 digits blank, and only the last 4 digits are displayed. The second regular matching formula The formula is used to extract the last 4 digits from the customer's mobile phone number as the recommended locker code. If the mobile phone number on the receipt is partially hidden to protect user privacy, such as "131****0000", the preset regular matching group can also be /^1(?:3\d|4[*]|5[*]|6[*]|7[*]|8\d|9\d)\d{8}$/ and replace(/(\d{7}(\d{4})/,'\S{7}$1').
上述步骤S102-S103和步骤S104可同时进行,顺序不分先后,也就是说,光学字符识别相机插件返回待识别图像帧和对应的识别字符串后,同时对待识别图像帧和识别字符串分别进行处理,根据待识别图像帧制成并显示实时视频的同时,也在对识别字符串进行正则匹配以确定推荐开柜码。The above steps S102-S103 and step S104 can be performed simultaneously in any order. That is to say, after the optical character recognition camera plug-in returns the image frame to be recognized and the corresponding recognition string, the image frame to be recognized and the recognition string are processed separately. While the real-time video is generated and displayed based on the image frame to be recognized, the recognition string is also regularly matched to determine the recommended cabinet opening code.
在步骤S105中,响应于识别到推荐开柜码,显示推荐开柜码。In step S105, in response to identifying the recommended locker opening code, the recommended locker opening code is displayed.
在步骤S106中,响应于推荐开柜码确认控件被触发,发送推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格以及在接收到取件码为推荐开柜码时开启目标柜格。其中,推荐开柜码确认控件用于被触发后,向存餐柜服务器发送推荐开柜码。In step S106, in response to the recommended locker opening code confirmation control being triggered, the recommended locker opening code is sent to enable the food storage cabinet server to control the food storage cabinet to open the target cabinet compartment and to open the target cabinet compartment when the pickup code received is the recommended locker opening code. The recommended locker opening code confirmation control is used to send the recommended locker opening code to the food storage cabinet server after being triggered.
在一种可能的实施方式中,推荐开柜码确认控件可以包括多个推荐开柜码确认子控件,不同开柜码确认子控件对应不同的柜体规格,如“大柜”、“中柜”或“小柜”等。触发不同规格对应的推荐开柜码确认子控件可在发送推荐开柜码的同时,选择适合餐品大小的柜体柜格标识。具体的,向存餐柜服务器发送推荐开柜码,推荐开柜码应携带柜体柜格标识,存餐柜服务器根据订单信息验证推荐开柜码后,根据柜体柜格标识从空闲的柜格中确定大小合适的目标柜格,然后向存餐柜发送携带柜格编号的开柜指令,控制存餐柜打开目标柜格。配送人员将待存物品放入目标柜格后关闭目标柜格。In a possible implementation, the recommended cabinet opening code confirmation control may include multiple recommended cabinet opening code confirmation sub-controls, and different cabinet opening code confirmation sub-controls correspond to different cabinet specifications, such as "large cabinet", "medium cabinet" or "small cabinet". Triggering the recommended cabinet opening code confirmation sub-controls corresponding to different specifications can select a cabinet compartment identifier suitable for the size of the food while sending the recommended cabinet opening code. Specifically, the recommended cabinet opening code is sent to the food storage cabinet server, and the recommended cabinet opening code should carry the cabinet compartment identifier. After the food storage cabinet server verifies the recommended cabinet opening code according to the order information, it determines the target cabinet compartment of the appropriate size from the free cabinet compartments according to the cabinet compartment identifier, and then sends an opening instruction carrying the cabinet compartment number to the food storage cabinet to control the food storage cabinet to open the target cabinet compartment. The delivery personnel puts the items to be stored into the target cabinet compartment and closes the target cabinet compartment.
在一种可能的实施方式中,存餐柜服务器响应于接收到取件开柜请求,获取取件开柜请求关联的取件开柜码。存餐柜服务器响应于检测到取件开柜请求指向的存餐柜与取件开柜请求关联的取件开柜码相同的推荐开柜码,发送开柜指令以控制存餐柜开启与相同的推荐开柜码关联的格口。具体的,存餐柜服务器在接收到顾客终端或存餐柜发送的取件开柜请求后,确定取件开柜请求指向的存餐柜,然后从该存餐柜对应的多个推荐开柜码中查找与取件开柜请求关联的取件开柜码相同的推荐开柜码,响应于存在与取件开柜码相同的推荐开柜码,向指向的存餐柜发送开柜指令,开柜指令关联推荐开柜码对应的目标柜格标识。存餐柜接收到开柜指令后,开启与推荐开柜码关联的目标柜格。In a possible implementation, the food storage cabinet server, in response to receiving a pickup locker opening request, obtains a pickup locker opening code associated with the pickup locker opening request. In response to detecting that the food storage cabinet pointed to by the pickup locker opening request has a recommended locker opening code that is the same as the pickup locker opening code associated with the pickup locker opening request, the food storage cabinet server sends a locker opening instruction to control the food storage cabinet to open the compartment associated with the same recommended locker opening code. Specifically, after receiving the pickup locker opening request sent by the customer terminal or the food storage cabinet, the food storage cabinet server determines the food storage cabinet pointed to by the pickup locker opening request, and then searches for the recommended locker opening code that is the same as the pickup locker opening code associated with the pickup locker opening request from the multiple recommended locker opening codes corresponding to the food storage cabinet. In response to the existence of the recommended locker opening code that is the same as the pickup locker opening code, the locker opening instruction is sent to the pointed food storage cabinet, and the locker opening instruction is associated with the target locker compartment identifier corresponding to the recommended locker opening code. After receiving the locker opening instruction, the food storage cabinet opens the target locker compartment associated with the recommended locker opening code.
以下针对上述步骤S101-S105进行详细说明。针对步骤S101,物流管理小程序存柜流程的启动方式可以有多种。比如点击存餐页面跳转控件、成功加载存餐页面或接收到存餐指令等。由于在步骤S102-S104中,在识别推荐开柜码的同时需要绘 制渲染并显示实时视频,对终端的渲染能力要求较高。因此针对不同性能的终端,光学字符识别相机插件的调用条件和使用时间不同,在具体实施时,可通过设置不同的存餐页面布局实现对不同性能终端的个性化处理,在保证推荐开柜码识别功能的前提下,根据终端性能,尽可能为用户提供更加流畅的使用体验。The following is a detailed description of the above steps S101-S105. For step S101, there are many ways to start the storage process of the logistics management applet. For example, click the jump control of the storage page, successfully load the storage page, or receive the storage instruction. Rendering and displaying real-time video requires high rendering capabilities of the terminal. Therefore, for terminals with different performance, the calling conditions and usage time of the optical character recognition camera plug-in are different. In specific implementation, different meal storage page layouts can be set to achieve personalized processing for terminals with different performance. Under the premise of ensuring the recommended cabinet opening code recognition function, according to the terminal performance, a smoother user experience can be provided to users as much as possible.
在一种可能的实施方式中,针对计算资源比较丰富、渲染能力较高的终端,存餐页面布局为第一存餐页面。此时步骤S101具体为图2所示方法。In a possible implementation, for a terminal with abundant computing resources and high rendering capability, the stored meal page layout is the first stored meal page. In this case, step S101 is specifically the method shown in FIG.
图2为本发明实施例的调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法流程图。如图2所示,基于存餐页面为第一存餐页面时,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法包括如下步骤:FIG2 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention. As shown in FIG2 , based on the fact that the stored meal page is the first stored meal page, the method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time includes the following steps:
在步骤S201中,检测运行小程序平台的终端的计算资源。In step S201, the computing resources of the terminal running the mini-program platform are detected.
其中,运行小程序平台的终端为配送人员持有的终端。计算资源是指用终端本身的算力和内存,或者为终端划分给物流管理小程序的可用算力和可用内存。The terminal running the mini program platform is the terminal held by the delivery personnel. Computing resources refer to the computing power and memory of the terminal itself, or the available computing power and available memory allocated by the terminal to the logistics management mini program.
在步骤S202中,响应于检测到计算资源大于预定计算资源阈值,跳转至第一存餐页面,第一存餐页面设置有相机画面显示框和推荐开柜码显示控件。In step S202, in response to detecting that the computing resources are greater than a predetermined computing resource threshold, the process jumps to a first stored meal page, where the first stored meal page is provided with a camera image display frame and a recommended locker code display control.
其中,预定计算资源阈值不小于可同时实现识别推荐开柜码和绘制渲染实时视频所需的最小计算资源。The predetermined computing resource threshold is not less than the minimum computing resource required to simultaneously realize the recognition of the recommended cabinet opening code and the drawing and rendering of the real-time video.
图3为本发明实施例的第一存餐页面的示意图。如图3所示,第一存餐页面30中包括推荐开柜码识别容器31、疑问解答控件35、开柜方式切换控件36、主页面切换容器37和导航切换控件38。Fig. 3 is a schematic diagram of the first meal storage page of an embodiment of the present invention. As shown in Fig. 3, the first meal storage page 30 includes a recommended locker opening code identification container 31, a question answering control 35, a locker opening mode switching control 36, a main page switching container 37 and a navigation switching control 38.
其中,推荐开柜码识别容器31用于显示提示信息和推荐开柜码识别相关控件。提示信息用于提示用户扫描特定区域以获取有效待识别图像帧。特定区域是指外卖小票中的顾客信息区域,有效待识别图像帧为包含顾客手机号的图像帧。提示信息具体可以为“存餐请扫描小票顾客信息”或“请对准顾客手机号”等。推荐开柜码识别相关控件包括相机画面显示框32、推荐开柜码显示控件33和推荐开柜码确认控件34。相机画面显示框32用于显示实时视频,以使用户知晓当前的扫描范围,从而根据提示信息和当前扫描范围确定正确扫描方向。推荐开柜码显示控件33用于显示识别得到的推荐开柜码,可选的,推荐开柜码显示控件33为可编辑控件。开柜码显示控件33被触发后,显示的推荐开柜码可以被编辑修改,也就是说,当开柜码显示控件33显示推荐开柜码后,若用户通过人工核对发现识别到的推荐开柜码有错误,可通过点击推荐开柜码显示控件33使其变更为可编辑状态,从而对推荐开柜码进行编辑修改。进一步地,推荐开柜码显示控件33可以包括预定数量个推荐开柜码显示子控件,推荐开柜码显示子控件数量与推荐开柜码的数量相同,每个推荐开柜码显示子控件显示一位推荐开柜码。哪一位推荐开柜码识别错误,点击对应的推荐开柜码显示子控件进行修改即可。推荐开柜码确认控件34用于被触发后向存餐柜服务器发送推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格。可选的,推荐开柜码确认控件34还可用于确定柜体规格,具体的,推荐开柜码确认控件34可以包括多个推荐开柜码确认子控件,不同开柜码确认子控件对应不同的柜体规格,如“大柜”、“中柜”或“小柜”等。点击不同规格对应的推荐开柜码确认子控件可在发送推荐开柜码时,关联该推荐开柜码确认子控件对应的柜体柜格标识。Among them, the recommended cabinet code recognition container 31 is used to display prompt information and recommended cabinet code recognition related controls. The prompt information is used to prompt the user to scan a specific area to obtain a valid image frame to be identified. The specific area refers to the customer information area in the takeaway receipt, and the valid image frame to be identified is an image frame containing the customer's mobile phone number. The prompt information can specifically be "Please scan the customer information on the receipt to store the meal" or "Please aim at the customer's mobile phone number", etc. The recommended cabinet code recognition related controls include a camera screen display frame 32, a recommended cabinet code display control 33, and a recommended cabinet code confirmation control 34. The camera screen display frame 32 is used to display real-time video so that the user knows the current scanning range, so as to determine the correct scanning direction according to the prompt information and the current scanning range. The recommended cabinet code display control 33 is used to display the recommended cabinet code obtained by identification. Optionally, the recommended cabinet code display control 33 is an editable control. After the cabinet opening code display control 33 is triggered, the displayed recommended cabinet opening code can be edited and modified. That is to say, when the cabinet opening code display control 33 displays the recommended cabinet opening code, if the user finds that the recognized recommended cabinet opening code is wrong through manual verification, the recommended cabinet opening code display control 33 can be changed to an editable state by clicking on it, so as to edit and modify the recommended cabinet opening code. Furthermore, the recommended cabinet opening code display control 33 may include a predetermined number of recommended cabinet opening code display sub-controls, the number of recommended cabinet opening code display sub-controls is the same as the number of recommended cabinet opening codes, and each recommended cabinet opening code display sub-control displays a recommended cabinet opening code. If any recommended cabinet opening code is recognized incorrectly, click the corresponding recommended cabinet opening code display sub-control to modify it. The recommended cabinet opening code confirmation control 34 is used to send the recommended cabinet opening code to the food storage cabinet server after being triggered so that the food storage cabinet server controls the food storage cabinet to open the target cabinet. Optionally, the recommended cabinet opening code confirmation control 34 can also be used to determine the cabinet specifications. Specifically, the recommended cabinet opening code confirmation control 34 can include multiple recommended cabinet opening code confirmation sub-controls, and different cabinet opening code confirmation sub-controls correspond to different cabinet specifications, such as "large cabinet", "medium cabinet" or "small cabinet", etc. Clicking the recommended cabinet opening code confirmation sub-control corresponding to different specifications can associate the cabinet compartment identifier corresponding to the recommended cabinet opening code confirmation sub-control when sending the recommended cabinet opening code.
疑问解答控件35用于显示最常见的用户疑问,以及被触发后显示疑问解答信息。比如,疑问解答控件35用于显示“如何查找顾客手机号后4位?”,被触发后显示疑问解答信息以引导用户顺利找到包含顾客手机号的特定区域。The question answering control 35 is used to display the most common user questions and to display question answering information when triggered. For example, the question answering control 35 is used to display "How to find the last 4 digits of a customer's mobile phone number?" and to display question answering information when triggered to guide the user to successfully find a specific area containing the customer's mobile phone number.
开柜方式切换控件36用于切换开柜码方式。当前默认开柜方式为调用光学字符识别插件识别确定推荐开柜码。除此之外,开柜方式还包括接收用户输入的手机 号作为开柜码。开柜方式切换控件36被触发后,将当前开柜方式由调用光学字符识别插件识别确定推荐开柜码的方式切换为接收用户输入的手机号作为开柜码的方式。The locker opening mode switching control 36 is used to switch the locker opening code mode. The current default locker opening mode is to call the optical character recognition plug-in to identify and determine the recommended locker opening code. In addition, the locker opening mode also includes receiving the mobile phone code input by the user. After the locker opening mode switching control 36 is triggered, the current locker opening mode is switched from the mode of calling the optical character recognition plug-in to identify and determine the recommended locker opening code to the mode of receiving the mobile phone number input by the user as the locker opening code.
主页面切换容器37用于切换主页面。具体的,主页面可包括存餐页面、存餐记录显示页面以及用户个人信息页面。主页面切换容器37可包括各页面对应切换控件,如存餐页面切换控件、存餐记录显示页面切换控件和用户个人信息页面切换控件,页面切换控件被触发,即跳转至该页面切换控件对应主页面。图3所示页面为存餐页面切换控件被触发后显示的第一存餐页面。The main page switching container 37 is used to switch the main page. Specifically, the main page may include a stored meal page, a stored meal record display page, and a user personal information page. The main page switching container 37 may include a corresponding switching control for each page, such as a stored meal page switching control, a stored meal record display page switching control, and a user personal information page switching control. When the page switching control is triggered, it jumps to the main page corresponding to the page switching control. The page shown in FIG3 is the first stored meal page displayed after the stored meal page switching control is triggered.
导航切换控件38用于显示送货地址,并在被触发后请求导航服务,并跳转到对应的导航界面。The navigation switch control 38 is used to display the delivery address, and when triggered, requests the navigation service and jumps to the corresponding navigation interface.
在步骤S203中,响应于第一存餐页面加载完成,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息。In step S203, in response to the completion of loading of the first stored meal page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time.
以下结合图2所示调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法流程图和图3所示第一存餐页面的示意图进行说明。由于本实施例是针对计算资源比较丰富、渲染能力较高的终端设计的,因此,光学字符识别相机插件的调用条件为成功加载第一存餐页面。成功加载第一存餐页面即表征开始自动调用光学字符识别相机插件,无需用户进行其他操作,流程简单,用户体验感好。第一存餐页面30加载成功后,开始调用光学字符识别相机插件以获取待识别图像信息,根据待识别图像信息中的待识别图像帧绘制实时视频,并在图3所示的相机画面显示框32中显示该实时视频。同时,根据待识别图像信息中的识别字符串确定的推荐开柜码。响应于识别到推荐开柜码,在第一存餐页面30中的推荐开柜码显示控件33显示推荐开柜码。值得注意的是,当推荐开柜码显示控件33中显示推荐开柜码时,相机画面显示框32仍显示实时视频,因此,使用第一存餐页面时,调用光学字符识别相机插件的时间为第一存餐页面加载成功到离开第一存餐页面的时间,如主页面切换容器37中的存餐记录显示页面切换控件被触发后跳转至存餐记录显示页面,或者,调用光学字符识别相机插件的时间为第一存餐页面加载成功到开柜方式切换控件36被触发后停止调用光学字符识别相机插件的时间。在调用光学字符识别相机插件的时间内,需要不断将光学字符识别相机插件返回的待识别图像帧绘制成实时视频,并对识别字符串进行正则匹配以确定推荐开柜码,对终端性能和计算资源的要求高。因此,图3所示方法适用于可用计算资源充足的终端。The following is a flowchart of a method for calling an optical character recognition camera plug-in provided by the mini-program platform to obtain image information to be recognized in real time, as shown in FIG2, and a schematic diagram of the first stored meal page shown in FIG3. Since this embodiment is designed for terminals with relatively rich computing resources and high rendering capabilities, the calling condition of the optical character recognition camera plug-in is to successfully load the first stored meal page. Successfully loading the first stored meal page indicates that the optical character recognition camera plug-in starts to be automatically called, and no other operations are required by the user. The process is simple and the user experience is good. After the first stored meal page 30 is successfully loaded, the optical character recognition camera plug-in starts to be called to obtain the image information to be recognized, and a real-time video is drawn according to the image frame to be recognized in the image information to be recognized, and the real-time video is displayed in the camera screen display frame 32 shown in FIG3. At the same time, the recommended locker code is determined according to the recognition string in the image information to be recognized. In response to identifying the recommended locker code, the recommended locker code display control 33 in the first stored meal page 30 displays the recommended locker code. It is worth noting that when the recommended locker opening code is displayed in the recommended locker opening code display control 33, the camera screen display frame 32 still displays the real-time video. Therefore, when using the first stored meal page, the time for calling the optical character recognition camera plug-in is the time from the successful loading of the first stored meal page to the time from leaving the first stored meal page, such as jumping to the stored meal record display page after the stored meal record display page switch control in the main page switch container 37 is triggered, or the time for calling the optical character recognition camera plug-in is the time from the successful loading of the first stored meal page to the time when the locker opening mode switch control 36 is triggered and the calling of the optical character recognition camera plug-in is stopped. During the time of calling the optical character recognition camera plug-in, it is necessary to continuously draw the image frames to be recognized returned by the optical character recognition camera plug-in into real-time video, and perform regular matching on the recognition string to determine the recommended locker opening code, which has high requirements on terminal performance and computing resources. Therefore, the method shown in Figure 3 is suitable for terminals with sufficient available computing resources.
进一步地,为确保推荐开柜码的准确性,还可对识别得到的推荐开柜码进行二次确认。具体的,响应于图3中的推荐开柜码确认控件34被触发,在第一存餐页面30显示推荐开柜码二次确认控件。Furthermore, to ensure the accuracy of the recommended locker code, the recommended locker code can be confirmed twice. Specifically, in response to the recommended locker code confirmation control 34 in FIG. 3 being triggered, the recommended locker code secondary confirmation control is displayed on the first meal storage page 30.
图4为本发明实施例的推荐开柜码确认控件被触发后的第一存餐页面的示意图。如图4所示,推荐开柜码确认控件24被触发后,第一存餐页面30中显示推荐开柜码二次确认容器41。其中,推荐开柜码二次确认容器41可以弹窗形式显示,也即推荐开柜码二次确认弹窗。推荐开柜码二次确认容器41包括二次确认提示信息显示控件42、二次确认推荐开柜码显示控件43、推荐开柜码修改控件44和推荐开柜码二次确认控件45。FIG4 is a schematic diagram of the first meal storage page after the recommended locker code confirmation control of the embodiment of the present invention is triggered. As shown in FIG4, after the recommended locker code confirmation control 24 is triggered, the recommended locker code secondary confirmation container 41 is displayed in the first meal storage page 30. Among them, the recommended locker code secondary confirmation container 41 can be displayed in the form of a pop-up window, that is, a recommended locker code secondary confirmation pop-up window. The recommended locker code secondary confirmation container 41 includes a secondary confirmation prompt information display control 42, a secondary confirmation recommended locker code display control 43, a recommended locker code modification control 44 and a recommended locker code secondary confirmation control 45.
二次确认提示信息显示控件42用于显示提示用户对二次确认推荐开柜码显示控件43中显示的推荐开柜码进行人工核对的提示信息,比如,提示信息可以为“请确认顾客尾号输入无误”和/或“智能识别有概率出错,请仔细核对”。进一步地,还可以计算当前显示的推荐开柜码的准确率,根据准确率的等级,确定对应提示信息内容,若准确率等级较低,则对应提示信息内容可以为“当前智能识别得到的开柜码准确率较低,请您仔细核对”。还可以通过为不同的准确率等级设定不同的提 示信息显示颜色以提示用户,比如,准确率等级低时,提示信息显示颜色为红色,准确率等级高时,提示信息显示颜色为绿色。The secondary confirmation prompt information display control 42 is used to display prompt information for prompting the user to manually check the recommended cabinet opening code displayed in the secondary confirmation recommended cabinet opening code display control 43. For example, the prompt information may be "Please confirm that the customer's last digit input is correct" and/or "Intelligent recognition may be wrong, please check carefully." Furthermore, the accuracy of the currently displayed recommended cabinet opening code can also be calculated, and the corresponding prompt information content can be determined according to the accuracy level. If the accuracy level is low, the corresponding prompt information content can be "The accuracy of the cabinet opening code obtained by the current intelligent recognition is low, please check carefully." Different prompt information can also be set for different accuracy levels. The prompt information is displayed in red color to prompt the user. For example, when the accuracy level is low, the prompt information is displayed in red color, and when the accuracy level is high, the prompt information is displayed in green color.
二次确认推荐开柜码显示控件43用于显示推荐开柜码。推荐开柜码修改控件44用于被触发后将二次确认推荐开柜码显示控件43的编辑状态修改为可编辑状态,或用于被触发后跳转至推荐开柜码修改容器或页面。得到用户修改后的推荐开柜码。The secondary confirmation recommended locker code display control 43 is used to display the recommended locker code. The recommended locker code modification control 44 is used to change the editing state of the secondary confirmation recommended locker code display control 43 to an editable state after being triggered, or to jump to the recommended locker code modification container or page after being triggered. The user-modified recommended locker code is obtained.
推荐开柜码二次确认控件45用于二次确认推荐开柜码,被触发后向存餐柜服务器发送推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格。The recommended cabinet opening code secondary confirmation control 45 is used for secondary confirmation of the recommended cabinet opening code. After being triggered, the recommended cabinet opening code is sent to the food storage cabinet server so that the food storage cabinet server controls the food storage cabinet to open the target cabinet.
在一种可能的实施方式中,针对计算资源比较紧缺、渲染能力一般的终端,存餐页面布局为第二存餐页面。此时步骤S101具体为图5所示方法。In a possible implementation, for terminals with scarce computing resources and average rendering capabilities, the stored meal page layout is a second stored meal page. In this case, step S101 is specifically the method shown in FIG5 .
图5为本发明实施例的调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法流程图。如图5所示,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息的方法包括如下步骤:FIG5 is a flow chart of a method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time according to an embodiment of the present invention. As shown in FIG5 , the method for calling an optical character recognition camera plug-in provided by a mini-program platform to obtain image information to be recognized in real time includes the following steps:
在步骤S501中,检测运行小程序平台的终端的计算资源。In step S501, the computing resources of the terminal running the mini-program platform are detected.
在步骤S502中,响应于检测到计算资源不大于预定计算资源阈值,跳转至第二存餐页面,第二存餐页面设置有相机跳转控件和推荐开柜码显示控件。In step S502, in response to detecting that the computing resources are not greater than a predetermined computing resource threshold, the page jumps to a second stored meal page, where the second stored meal page is provided with a camera jump control and a recommended locker code display control.
图6为本发明实施例的第二存餐页面的示意图。如图6所示,第二存餐页面60中包括开柜码接收容器61、疑问解答控件64、第一相机跳转控件65、主页面切换容器66和导航切换控件67。Fig. 6 is a schematic diagram of the second meal storage page of an embodiment of the present invention. As shown in Fig. 6, the second meal storage page 60 includes a locker code receiving container 61, a question answering control 64, a first camera jump control 65, a main page switching container 66 and a navigation switching control 67.
其中,开柜码接收容器61用于显示提示信息和推荐开柜码接收相关控件。提示信息用于提示用户输入开柜码,比如提示信息可以为“存餐请输入顾客手机号后4位”。推荐开柜码接收相关控件包括开柜码接收控件62和第二相机跳转控件63。开柜码接收控件62用于接收用户输入的开柜码。第二相机跳转控件63用于被触发后跳转至相机页面以调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息。第二相机跳转控件63位于开柜码接收控件62下方以便在用户想要输入开柜码时,提示用户使用光学字符识别方法以自动获取推荐开柜码。Among them, the cabinet opening code receiving container 61 is used to display prompt information and recommended cabinet opening code receiving related controls. The prompt information is used to prompt the user to enter the cabinet opening code. For example, the prompt information can be "Please enter the last 4 digits of the customer's mobile phone number to store meals." Recommended cabinet opening code receiving related controls include a cabinet opening code receiving control 62 and a second camera jump control 63. The cabinet opening code receiving control 62 is used to receive the cabinet opening code entered by the user. The second camera jump control 63 is used to jump to the camera page after being triggered to call the optical character recognition camera plug-in provided by the mini program platform to obtain the image information to be recognized in real time. The second camera jump control 63 is located below the cabinet opening code receiving control 62 so that when the user wants to enter the cabinet opening code, the user is prompted to use the optical character recognition method to automatically obtain the recommended cabinet opening code.
疑问解答控件64用于显示最常见的用户疑问,以及被触发后显示疑问解答信息。具体用法和图2所示疑问解答控件26相同,在此不再赘述。The question answering control 64 is used to display the most common user questions and to display question answering information after being triggered. The specific usage is the same as the question answering control 26 shown in FIG. 2 , and will not be described in detail here.
第一相机跳转控件65与第二相机跳转控件63用法相同。第一相机跳转控件65位于第二存餐页面60的中心位置,使用户更容易看到和点击该控件。The first camera jump control 65 is used in the same manner as the second camera jump control 63. The first camera jump control 65 is located at the center of the second stored meal page 60, making it easier for the user to see and click the control.
主页面切换容器66,用于切换主页面。具体用法和图2所示主页面切换容器27相同,在此不再赘述。The main page switching container 66 is used to switch the main page. The specific usage is the same as that of the main page switching container 27 shown in FIG. 2 , and will not be described in detail here.
导航切换控件67用于显示送货地址,具体用法和图2所示导航切换控件28相同,在此不再赘述。The navigation switch control 67 is used to display the delivery address. The specific usage is the same as the navigation switch control 28 shown in Figure 2, which will not be repeated here.
在步骤S503中,响应于相机跳转控件被触发,跳转至相机页面,相机页面设置有相机画面显示框。In step S503, in response to the camera jump control being triggered, the control jumps to the camera page, where a camera image display frame is provided.
在步骤S504中,响应于相机页面加载完成,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息。In step S504, in response to the completion of loading the camera page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time.
图7为本发明实施例的相机页面的示意图。如图7所示,相机页面70中包括提示信息显示控件71、相机画面显示框72和第二存餐页面返回控件73。Fig. 7 is a schematic diagram of a camera page according to an embodiment of the present invention. As shown in Fig. 7, the camera page 70 includes a prompt information display control 71, a camera image display frame 72 and a second stored meal page return control 73.
其中,提示信息显示控件71用于显示提示用户扫描特定区域以获取有效待识别图像帧的信息。提示信息具体可以为“请对小票上的【顾客信息】扫描”等。The prompt information display control 71 is used to display information prompting the user to scan a specific area to obtain a valid image frame to be identified. The prompt information may specifically be "Please scan the [customer information] on the receipt" or the like.
相机画面显示框72用于显示实时视频,以使用户知晓当前的扫描范围,从而根据提示信息和当前扫描范围确定正确扫描方向。 The camera screen display frame 72 is used to display real-time video so that the user can know the current scanning range and determine the correct scanning direction according to the prompt information and the current scanning range.
第二存餐页面返回控件73用于从相机页面70跳转至第二存餐页面60。具体的,当扫描时间过长却未识别得到推荐开柜码时,用户可以选择触发第二存餐页面返回控件73返回第二存餐页面重新扫描或手动输入开柜码。The second stored meal page return control 73 is used to jump from the camera page 70 to the second stored meal page 60. Specifically, when the scanning time is too long but the recommended locker opening code is not recognized, the user can choose to trigger the second stored meal page return control 73 to return to the second stored meal page to rescan or manually enter the locker opening code.
在相机画面显示框72显示实时视频的同时,终端根据识别字符串确定推荐开柜码,响应于识别到推荐开柜码,从相机页面70返回第二存餐页面60,并在第二存餐页面60中的推荐开柜码显示控件显示推荐开柜码。While the camera screen display frame 72 displays real-time video, the terminal determines the recommended locker opening code based on the recognition character string, and in response to identifying the recommended locker opening code, returns from the camera page 70 to the second stored meal page 60, and displays the recommended locker opening code in the recommended locker opening code display control in the second stored meal page 60.
图8为本发明实施例的识别得到推荐开柜码后第二存餐页面的示意图。如图8所示,当在相机页面显示时识别得到推荐开柜码后,从相机页面重新跳转至第二存餐页面60时,第二存餐页面60显示推荐开柜码确认容器81。其中,推荐开柜码确认容器81可以弹窗形式显示,也即推荐开柜码显示弹窗。推荐开柜码确认容器81包括确认提示信息控件82、推荐开柜码显示控件83、推荐开柜码修改控件84和推荐开柜码确认控件85。FIG8 is a schematic diagram of the second meal storage page after the recommended locker opening code is identified in an embodiment of the present invention. As shown in FIG8, when the recommended locker opening code is identified when the camera page is displayed, when the camera page is redirected to the second meal storage page 60, the second meal storage page 60 displays the recommended locker opening code confirmation container 81. Among them, the recommended locker opening code confirmation container 81 can be displayed in the form of a pop-up window, that is, the recommended locker opening code display pop-up window. The recommended locker opening code confirmation container 81 includes a confirmation prompt information control 82, a recommended locker opening code display control 83, a recommended locker opening code modification control 84 and a recommended locker opening code confirmation control 85.
确认提示信息控件82用于显示提示用户对确认推荐开柜码显示控件83中显示的推荐开柜码进行人工核对的提示信息。具体用法和图4所示二次确认提示信息显示控件42的用法相同,在此不再赘述。The confirmation prompt information control 82 is used to display prompt information prompting the user to manually check the recommended locker opening code displayed in the confirmation recommended locker opening code display control 83. The specific usage is the same as the usage of the secondary confirmation prompt information display control 42 shown in Figure 4, which will not be repeated here.
推荐开柜码显示控件83用于显示识别得到的推荐开柜码。The recommended locker opening code display control 83 is used to display the recommended locker opening code obtained by identification.
推荐开柜码修改控件84用于修改推荐开柜码显示控件83显示的推荐开柜码。具体用法和图4所示推荐开柜码修改控件44的用法相同,在此不再赘述。The recommended locker opening code modification control 84 is used to modify the recommended locker opening code displayed by the recommended locker opening code display control 83. The specific usage is the same as that of the recommended locker opening code modification control 44 shown in FIG.
推荐开柜码确认控件85用于被触发后向存餐柜服务器发送推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格。具体用法和图3所示推荐开柜码确认控件34的用法相同,在此不再赘述。The recommended locker opening code confirmation control 85 is used to send the recommended locker opening code to the food storage cabinet server after being triggered so that the food storage cabinet server controls the food storage cabinet to open the target cabinet. The specific usage is the same as the usage of the recommended locker opening code confirmation control 34 shown in Figure 3, which will not be repeated here.
进一步地,为确保推荐开柜码的准确性,还可对识别得到的推荐开柜码进行二次确认。具体的,当图8中的推荐开柜码确认控件85被触发,在第二存餐页面60显示如图4所示的推荐开柜码二次确认容器41。二次确认方法和图4所示推荐开柜码二次确认容器41使用方法相同。由于本实施例是针对计算资源比较紧缺、渲染能力一般的终端设计的,因此,光学字符识别相机插件的调用条件为第二存餐页面中的相机跳转控件被触发。当识别得到推荐开柜码后,即从相机页面退回至第二存餐页面后,无需再调用光学字符识别相机插件,也不用再绘制实时视频和识别推荐开柜码。因此,使用第二存餐页面进行字符识别时,调用光学字符识别相机插件的时间为第二存餐页面中的相机跳转控件被触发到返回第二存餐页面的时间。调用时间较短,需要进行识别时点击相机跳转控件开始识别并绘制实时视频,识别得到推荐开柜码后停止字符识别和实时视频绘制,对终端性能和计算资源的要求较低。因此,图5所示方法适用于可用计算资源紧缺的终端。Furthermore, in order to ensure the accuracy of the recommended cabinet opening code, the recommended cabinet opening code obtained by identification can also be reconfirmed. Specifically, when the recommended cabinet opening code confirmation control 85 in FIG8 is triggered, the recommended cabinet opening code secondary confirmation container 41 shown in FIG4 is displayed on the second meal storage page 60. The secondary confirmation method is the same as the method of using the recommended cabinet opening code secondary confirmation container 41 shown in FIG4. Since the present embodiment is designed for terminals with relatively scarce computing resources and general rendering capabilities, the calling condition of the optical character recognition camera plug-in is that the camera jump control in the second meal storage page is triggered. After the recommended cabinet opening code is identified, that is, after returning from the camera page to the second meal storage page, there is no need to call the optical character recognition camera plug-in, nor is it necessary to draw real-time video and identify the recommended cabinet opening code. Therefore, when using the second meal storage page for character recognition, the time for calling the optical character recognition camera plug-in is the time from when the camera jump control in the second meal storage page is triggered to when the second meal storage page is returned. The calling time is short. When recognition is needed, click the camera jump control to start recognition and draw real-time video. After the recommended cabinet opening code is recognized, character recognition and real-time video drawing are stopped. The requirements for terminal performance and computing resources are low. Therefore, the method shown in Figure 5 is suitable for terminals with limited available computing resources.
本发明实施例的方法适用于基于小程序实现的存柜流程。在存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像帧和待识别图像帧对应的识别字符串,然后将实时获取的待识别图像帧绘制渲染成实时视频,并将实时视频显示在相机画面显示框中,以使用户得知实时扫描范围,提高用户的体验感。同时根据识别字符串确定推荐开柜码,当推荐开柜码识别成功后,显示推荐开柜码,检测到用户触发推荐开柜码,向存餐柜服务器发送推荐开柜码,以控制存餐柜开启目标柜格,并在接收到取件码为推荐开柜码时开启目标柜格。本发明实施例通过使用光学字符识别可从待识别图像帧中自动分析得到开柜码,简化存餐流程。调用小程序平台提供的光学字符识别相机插件,可以在终端实现字符识别,无需与服务器进行交互,节省了数据传输时间,提高了识别速度。The method of the embodiment of the present invention is applicable to the storage process based on the applet. After the storage process is started, the optical character recognition camera plug-in provided by the applet platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience. At the same time, the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed. When it is detected that the user triggers the recommended cabinet opening code, the recommended cabinet opening code is sent to the food storage cabinet server to control the food storage cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code. The embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the meal storage process. By calling the optical character recognition camera plug-in provided by the applet platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
图9为本发明实施例的信息交互方法的流程图。如图9所示,包括如下步骤: FIG9 is a flow chart of an information interaction method according to an embodiment of the present invention. As shown in FIG9 , the method comprises the following steps:
在步骤S901中,响应于第一存餐页面加载完成,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息,待识别图像信息包括待识别图像帧和对应的识别字符串。In step S901, in response to the completion of loading of the first stored meal page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain image information to be recognized in real time, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string.
其中,第一存餐页面的布局和包含的控件如图3所示,在此不再赘述。Among them, the layout of the first stored meal page and the controls included are shown in Figure 3, which will not be repeated here.
在步骤S902中,根据待识别图像帧确定对应的实时视频,并在第一存餐页面中的相机画面显示框显示实时视频。In step S902, the corresponding real-time video is determined according to the image frame to be identified, and the real-time video is displayed in the camera image display frame in the first stored meal page.
在步骤S903中,根据识别字符串确定推荐开柜码。In step S903, a recommended locker opening code is determined according to the recognition character string.
在步骤S904中,响应于识别到推荐开柜码,显示推荐开柜码。In step S904, in response to identifying the recommended locker opening code, the recommended locker opening code is displayed.
在步骤S905中,响应于推荐开柜码确认控件被触发,显示推荐开柜码二次确认容器,也即推荐开柜码二次确认弹窗,推荐开柜码二次确认容器包括推荐开柜码二次确认控件。In step S905, in response to the recommended cabinet opening code confirmation control being triggered, a recommended cabinet opening code secondary confirmation container, that is, a recommended cabinet opening code secondary confirmation pop-up window is displayed, and the recommended cabinet opening code secondary confirmation container includes the recommended cabinet opening code secondary confirmation control.
其中,包含推荐开柜码二次确认容器的第一存餐页面的布局如图4所示,在此不再赘述。Among them, the layout of the first meal storage page including the recommended cabinet opening code and the secondary confirmation container is shown in Figure 4, which will not be repeated here.
在步骤S906中,响应于推荐开柜码二次确认控件被触发后向存餐柜服务器发送推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格。在物流管理小程序第一次启动时,还可以检测运行小程序平台的终端的计算资源,若检测到计算资源大于预定计算资源阈值,确定存餐页面为第一存餐页面。此后,在相同终端上再次启动物流管理小程序时,默认存餐页面为第一存餐页面。In step S906, in response to the recommended locker opening code secondary confirmation control being triggered, the recommended locker opening code is sent to the food storage cabinet server so that the food storage cabinet server controls the food storage cabinet to open the target cabinet. When the logistics management applet is started for the first time, the computing resources of the terminal running the applet platform can also be detected. If it is detected that the computing resources are greater than the predetermined computing resource threshold, the meal storage page is determined to be the first meal storage page. Thereafter, when the logistics management applet is started again on the same terminal, the default meal storage page is the first meal storage page.
本发明实施例的方法适用于可用计算资源充足的终端。在第一存餐页面加载成功后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像帧和待识别图像帧对应的识别字符串,然后将实时获取的待识别图像帧绘制渲染成实时视频,并将实时视频显示在相机画面显示框中,以使用户得知实时扫描范围,提高用户的体验感。同时根据识别字符串确定推荐开柜码,当推荐开柜码识别成功后,在第一存餐页面显示推荐开柜码,检测到用户触发推荐开柜码,向存餐柜服务器发送推荐开柜码,以控制存餐柜开启目标柜格,并在接收到取件码为推荐开柜码时开启目标柜格。本发明实施例成功加载第一存餐页面即表征开始自动调用光学字符识别相机插件,无需用户进行其他操作,流程简单,用户体验感好。通过使用光学字符识别可从待识别图像帧中自动分析得到开柜码,简化存餐流程。调用小程序平台提供的光学字符识别相机插件,可以在终端实现字符识别,无需与服务器进行交互,节省了数据传输时间,提高了识别速度。The method of the embodiment of the present invention is applicable to a terminal with sufficient available computing resources. After the first stored meal page is loaded successfully, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience. At the same time, the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed on the first stored meal page. When it is detected that the user triggers the recommended cabinet opening code, the recommended cabinet opening code is sent to the cabinet server to control the cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code. The embodiment of the present invention successfully loads the first stored meal page, which means that the optical character recognition camera plug-in is automatically called, and no other operations are required by the user. The process is simple and the user experience is good. By using optical character recognition, the cabinet opening code can be automatically analyzed from the image frame to be recognized, simplifying the meal storage process. By calling the optical character recognition camera plug-in provided by the mini-program platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
图10为本发明实施例的信息交互方法的流程图。如图10所示,包括如下步骤:FIG10 is a flow chart of an information interaction method according to an embodiment of the present invention. As shown in FIG10 , the method includes the following steps:
在步骤S1001中,响应于第二存餐页面中的相机跳转控件被触发,跳转至相机页面,相机页面设置有相机画面显示框。其中,第二存餐页面的布局和包含的控件如图6所示,在此不再赘述。In step S1001, in response to the camera jump control in the second stored meal page being triggered, the page jumps to the camera page, which is provided with a camera image display frame. The layout of the second stored meal page and the controls included are shown in FIG6 , which will not be described in detail here.
在步骤S1002中,响应于相机页面加载完成,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息。其中,相机页面的布局和包含的控件如图7所示,在此不再赘述。In step S1002, in response to the completion of loading the camera page, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image information to be recognized in real time. The layout of the camera page and the controls included are shown in FIG7 , which will not be described in detail here.
在步骤S1003中,根据待识别图像帧确定对应的实时视频,并在相机页面中的相机画面显示框显示实时视频。In step S1003, the corresponding real-time video is determined according to the image frame to be identified, and the real-time video is displayed in the camera screen display box in the camera page.
在步骤S1004中,根据识别字符串确定推荐开柜码。In step S1004, a recommended locker opening code is determined according to the recognition character string.
在步骤S1005中,响应于识别到推荐开柜码,从相机页面返回第二存餐页面。In step S1005, in response to identifying the recommended locker opening code, the camera page returns to the second stored meal page.
其中,从相机页面返回第二存餐页面后,第二存餐页面布局和包含的控件如图8所示,在此不再赘述。 Among them, after returning to the second stored meal page from the camera page, the layout of the second stored meal page and the controls included are shown in Figure 8, which will not be repeated here.
在步骤S1006中,在推荐开柜码确认容器显示推荐开柜码,推荐开柜码确认容器至少包括推荐开柜码显示控件和推荐开柜码确认控件。也即在推荐开柜码显示弹窗显示推荐开柜码。In step S1006, the recommended locker opening code is displayed in the recommended locker opening code confirmation container, which at least includes a recommended locker opening code display control and a recommended locker opening code confirmation control. That is, the recommended locker opening code is displayed in the recommended locker opening code display pop-up window.
在步骤S1007中,响应于推荐开柜码确认控件被触发,显示推荐开柜码二次确认容器,推荐开柜码二次确认容器包括推荐开柜码二次确认控件。In step S1007, in response to the recommended cabinet opening code confirmation control being triggered, a recommended cabinet opening code secondary confirmation container is displayed, and the recommended cabinet opening code secondary confirmation container includes the recommended cabinet opening code secondary confirmation control.
其中,推荐开柜码确认容器与图4所示的推荐开柜码二次确认容器41相同,在此不再赘述。The recommended locker opening code confirmation container is the same as the recommended locker opening code secondary confirmation container 41 shown in FIG. 4 , and will not be described in detail herein.
在步骤S1008中,响应于推荐开柜码二次确认控件被触发后向存餐柜服务器发送推荐开柜码以使存餐柜服务器控制存餐柜开启目标柜格。In step S1008, in response to the recommended locker opening code secondary confirmation control being triggered, the recommended locker opening code is sent to the food locker server so that the food locker server controls the food locker to open the target compartment.
在物流管理小程序第一次启动时,还可以检测运行小程序平台的终端的计算资源,若检测到计算资源不大于预定计算资源阈值,确定存餐页面为第二存餐页面。此后,在相同终端上再次启动物流管理小程序时,默认存餐页面为第二存餐页面。When the logistics management applet is started for the first time, the computing resources of the terminal running the applet platform can also be detected. If it is detected that the computing resources are not greater than the predetermined computing resource threshold, the stored meal page is determined to be the second stored meal page. Thereafter, when the logistics management applet is started again on the same terminal, the default stored meal page is the second stored meal page.
本发明实施例的方法适用于可用计算资源紧缺的终端。在第二存餐页面中的相机跳转控件被触发后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像帧和待识别图像帧对应的识别字符串,然后将实时获取的待识别图像帧绘制渲染成实时视频,并将实时视频显示在相机页面中的相机画面显示框中,以使用户得知实时扫描范围,提高用户的体验感。同时根据识别字符串确定推荐开柜码,当推荐开柜码识别成功后,在第二存餐页面显示推荐开柜码,检测到用户触发推荐开柜码,向存餐柜服务器发送推荐开柜码,以控制存餐柜开启目标柜格,并在接收到取件码为推荐开柜码时开启目标柜格。本发明实施例在需要进行识别时点击相机跳转控件开始识别并绘制实时视频,识别得到推荐开柜码后停止字符识别和实时视频绘制,对终端性能和计算资源的要求较低,可适用于更多终端。通过使用光学字符识别可从待识别图像帧中自动分析得到开柜码,简化存餐流程。调用小程序平台提供的光学字符识别相机插件,可以在终端实现字符识别,无需与服务器进行交互,节省了数据传输时间,提高了识别速度。The method of the embodiment of the present invention is applicable to terminals with scarce available computing resources. After the camera jump control in the second meal storage page is triggered, the optical character recognition camera plug-in provided by the mini-program platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display box in the camera page, so that the user can know the real-time scanning range and improve the user experience. At the same time, the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed on the second meal storage page. When it is detected that the user triggers the recommended cabinet opening code, the recommended cabinet opening code is sent to the meal storage cabinet server to control the meal storage cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code. In the embodiment of the present invention, when recognition is required, the camera jump control is clicked to start recognition and draw real-time video, and character recognition and real-time video drawing are stopped after the recommended cabinet opening code is recognized. The requirements for terminal performance and computing resources are low, and it can be applied to more terminals. By using optical character recognition, the cabinet opening code can be automatically analyzed from the image frame to be recognized, simplifying the meal storage process. By calling the optical character recognition camera plug-in provided by the mini-program platform, character recognition can be realized on the terminal without interacting with the server, saving data transmission time and improving recognition speed.
图11为本发明实施例的信息交互系统的示意图。如图11所示,信息交互系统包括:配送终端1101(以上内容简称终端)、存餐柜服务器1102和存餐柜1103。除此之外,还可能包括取件终端1104。Fig. 11 is a schematic diagram of an information interaction system according to an embodiment of the present invention. As shown in Fig. 11, the information interaction system includes: a delivery terminal 1101 (hereinafter referred to as terminal), a food storage cabinet server 1102 and a food storage cabinet 1103. In addition, a pickup terminal 1104 may also be included.
在本实施例中,配送终端1101用于确定推荐开柜码并向存餐柜服务器1102请求开柜以存放餐品。存餐柜1103用于接收开柜指令后开柜,以及接收顾客输入的取件开柜码后向存餐柜服务器1102发送取件开柜请求。取件终端1104也可用于接收顾客输入的取件开柜码或从订单信息中自动识别取件开柜码,并向存餐柜服务器1102发送取件开柜请求。配送终端1101和取件终端1104为可以运行外卖平台客户端应用程序或小程序的通用终端,例如终端可以为手机、电脑或平板电脑等终端设备。在某些实施方式中,配送终端1101或取件终端1104也可以是具有固化于专用集成电路中应用程序的专用终端。其中,开放平台通过向第三方开发者提供应用程序编程接口(Application Programming Interface,API)的方式,使第三方开发者可以基于开放平台开发自己的小程序。小程序具体可以为在平台内应用的基础上进行开发并用于执行相应操作的程序。其中,配送终端1101为平台执行配送任务的配送资源的终端设备。配送资源可以为人员,也可以为各类无人设备,例如配送无人车、配送机器人、配送无人机等。取件终端1104为平台消费者使用或持有的终端设备。In this embodiment, the delivery terminal 1101 is used to determine the recommended cabinet opening code and request the cabinet opening to store food from the food storage cabinet server 1102. The food storage cabinet 1103 is used to open the cabinet after receiving the cabinet opening instruction, and send a cabinet opening request to the food storage cabinet server 1102 after receiving the cabinet opening code input by the customer. The pickup terminal 1104 can also be used to receive the cabinet opening code input by the customer or automatically identify the cabinet opening code from the order information, and send a cabinet opening request to the food storage cabinet server 1102. The delivery terminal 1101 and the pickup terminal 1104 are general terminals that can run the client application or applet of the food delivery platform. For example, the terminal can be a terminal device such as a mobile phone, a computer or a tablet computer. In some embodiments, the delivery terminal 1101 or the pickup terminal 1104 can also be a dedicated terminal with an application program solidified in a dedicated integrated circuit. Among them, the open platform enables third-party developers to develop their own applet based on the open platform by providing an application programming interface (Application Programming Interface, API) to third-party developers. The mini program can be a program developed on the basis of the application in the platform and used to perform corresponding operations. Among them, the delivery terminal 1101 is the terminal device of the delivery resource for the platform to perform the delivery task. The delivery resource can be personnel or various unmanned equipment, such as delivery unmanned vehicles, delivery robots, delivery drones, etc. The pickup terminal 1104 is a terminal device used or held by platform consumers.
存餐柜服务器1102通过与配送终端1101、存餐柜1103和/或取件终端1104交互完成订单处理。存餐阶段,配送终端1101通过人机交互完成推荐开柜码识别。具体的,配送终端1101在基于小程序的存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息,待识别图像信息包括待识别图像帧 和对应的识别字符串,然后根据待识别图像帧确定对应的实时视频,并在相机画面显示框显示实时视频。同时,根据识别字符串确定推荐开柜码,响应于识别到推荐开柜码,显示推荐开柜码。配送终端1101在确定推荐开柜码后,通过互联网连接到存餐柜服务器1102,完成存柜任务。具体的,配送终端1101向存餐柜服务器1102发送推荐开柜码,其中,推荐开柜码还关联订单标识和表征柜格大小的柜体柜格标识。存餐柜服务器1102接收到开柜码后,根据订单标识查找订单信息,并从订单信息中查找顾客的手机号的全部数字位和/或手机号后四位的部分数字位。将推荐开柜码与手机号的全部数字位和/或手机号后四位的部分数字位进行对比,若对比结果为匹配,从存餐柜空闲的规格中确定符合柜体大小要求的目标柜格,并建立目标柜格标识与订单信息的映射关系。存餐柜服务器1102向存餐柜1103发送关联目标柜格标识的存餐开柜指令。存餐柜1103接收到存餐开柜指令后,将目标柜格标识对应的目标柜格开启以使完成存餐。存餐柜1103检测到目标柜格关闭后,向存餐柜服务器1102发送存餐成功反馈信息。存餐柜服务器1102接收到存餐成功反馈信息后,更改订单信息状态为待取餐,并向取件终端1104发送取餐通知。在取餐阶段,存餐柜服务器1102响应于接收到存餐柜1103或取件终端1104发送的取件开柜请求后,确定取件开柜请求指向的存餐柜,然后从存餐柜对应的推荐开柜码中查找与取件开柜码相同的推荐开柜码,若存在与取件开柜码相同的推荐开柜码,将该推荐开柜码对应的柜格确定为目标柜格,或者,将取件开柜请求关联的取件开柜码与各柜格对应的订单信息中顾客手机号的全部数字位和/或手机号后四位的部分数字位进行对比,若对比结果表征取件开柜码与手机号的全部数字位和/或手机号后四位的部分数字位相同,确定该订单信息对应的柜格为目标柜格。存餐柜服务器1102向存餐柜1103发送取餐开柜指令,取餐开柜指令关联目标柜格标识。存餐柜1103接收到取餐开柜指令后,控制目标柜格标识对应的目标柜格开柜以使顾客取餐。存餐柜1103检测到目标柜格关闭后,向存餐柜服务器1102发送取餐成功反馈信息。存餐柜服务器1102更新订单状态为已完成。The food storage cabinet server 1102 completes the order processing by interacting with the delivery terminal 1101, the food storage cabinet 1103 and/or the pickup terminal 1104. During the food storage stage, the delivery terminal 1101 completes the recommended cabinet opening code recognition through human-computer interaction. Specifically, after the storage process based on the mini program is started, the delivery terminal 1101 calls the optical character recognition camera plug-in provided by the mini program platform to obtain the image information to be recognized in real time. The image information to be recognized includes the image frame to be recognized. and the corresponding identification string, and then determine the corresponding real-time video according to the image frame to be identified, and display the real-time video in the camera screen display frame. At the same time, determine the recommended cabinet opening code according to the identification string, and display the recommended cabinet opening code in response to identifying the recommended cabinet opening code. After determining the recommended cabinet opening code, the distribution terminal 1101 connects to the food storage cabinet server 1102 through the Internet to complete the cabinet storage task. Specifically, the distribution terminal 1101 sends the recommended cabinet opening code to the food storage cabinet server 1102, wherein the recommended cabinet opening code is also associated with the order identifier and the cabinet compartment identifier representing the cabinet compartment size. After receiving the cabinet opening code, the food storage cabinet server 1102 searches for the order information according to the order identifier, and searches for all the digits of the customer's mobile phone number and/or part of the last four digits of the mobile phone number from the order information. Compare the recommended cabinet opening code with all the digits of the mobile phone number and/or part of the last four digits of the mobile phone number. If the comparison result is a match, determine the target cabinet compartment that meets the cabinet size requirements from the specifications of the food storage cabinet, and establish a mapping relationship between the target cabinet compartment identifier and the order information. The food storage cabinet server 1102 sends a food storage cabinet opening instruction associated with the target cabinet identifier to the food storage cabinet 1103. After receiving the food storage cabinet opening instruction, the food storage cabinet 1103 opens the target cabinet corresponding to the target cabinet identifier to complete the food storage. After the food storage cabinet 1103 detects that the target cabinet is closed, it sends a food storage success feedback message to the food storage cabinet server 1102. After receiving the food storage success feedback message, the food storage cabinet server 1102 changes the order information status to waiting for food pickup, and sends a food pickup notification to the pickup terminal 1104. In the meal pickup phase, the meal storage cabinet server 1102, in response to receiving the pickup cabinet opening request sent by the meal storage cabinet 1103 or the pickup terminal 1104, determines the meal storage cabinet pointed to by the pickup cabinet opening request, and then searches for the recommended cabinet opening code that is the same as the pickup cabinet opening code from the recommended cabinet opening codes corresponding to the meal storage cabinet. If there is a recommended cabinet opening code that is the same as the pickup cabinet opening code, the cabinet corresponding to the recommended cabinet opening code is determined as the target cabinet, or the pickup cabinet opening code associated with the pickup cabinet opening request is compared with all the digits of the customer's mobile phone number and/or part of the last four digits of the mobile phone number in the order information corresponding to each cabinet. If the comparison result indicates that the pickup cabinet opening code is the same as all the digits of the mobile phone number and/or part of the last four digits of the mobile phone number, the cabinet corresponding to the order information is determined to be the target cabinet. The meal storage cabinet server 1102 sends a meal pickup cabinet opening instruction to the meal storage cabinet 1103, and the meal pickup cabinet opening instruction is associated with the target cabinet identifier. After receiving the order to open the cabinet for meal pickup, the food storage cabinet 1103 controls the target cabinet corresponding to the target cabinet identifier to open the cabinet so that the customer can pick up the meal. After detecting that the target cabinet is closed, the food storage cabinet 1103 sends a feedback message of successful meal pickup to the food storage cabinet server 1102. The food storage cabinet server 1102 updates the order status to completed.
图12为本发明实施例的信息交互装置的示意图。如图12所示,包括:FIG12 is a schematic diagram of an information interaction device according to an embodiment of the present invention. As shown in FIG12 , the device comprises:
调用模块1201,用于在基于小程序的存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像信息,待识别图像信息包括待识别图像帧和对应的识别字符串;The calling module 1201 is used to call the optical character recognition camera plug-in provided by the mini-program platform to obtain the image information to be recognized in real time after the storage process based on the mini-program is started, and the image information to be recognized includes the image frame to be recognized and the corresponding recognition string;
第一确定模块1202,用于根据待识别图像帧确定对应的实时视频;A first determination module 1202 is used to determine a corresponding real-time video according to the image frame to be identified;
第一显示模块1203,用于在相机画面显示框显示实时视频;The first display module 1203 is used to display real-time video in the camera screen display frame;
第二确定模块1204,用于根据识别字符串确定推荐开柜码;The second determination module 1204 is used to determine the recommended locker opening code according to the recognition character string;
第二显示模块1205,用于响应于识别到推荐开柜码,显示推荐开柜码;The second display module 1205 is used to display the recommended locker opening code in response to identifying the recommended locker opening code;
发送模块1206,用于响应于推荐开柜码确认控件被触发,发送推荐开柜码以使存餐柜服务器控制存餐柜开启第一柜格以及在接收到取件码为推荐开柜码时开启第一柜格推。The sending module 1206 is used for sending the recommended locker opening code in response to the recommended locker opening code confirmation control being triggered so that the food storage cabinet server controls the food storage cabinet to open the first cabinet compartment and to open the first cabinet compartment when the pickup code received is the recommended locker opening code.
本发明实施例的装置适用于基于小程序实现的存柜流程。在存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像帧和待识别图像帧对应的识别字符串,然后将实时获取的待识别图像帧绘制渲染成实时视频,并将实时视频显示在相机画面显示框中,以使用户得知实时扫描范围,提高用户的体验感。同时根据识别字符串确定推荐开柜码,当推荐开柜码识别成功后,显示推荐开柜码,以控制存餐柜开启目标柜格,并在接收到取件码为推荐开柜码时开启目标柜格。本发明实施例通过使用光学字符识别可从待识别图像帧中自动分析得到开柜码,简化存餐流程。调用小程序平台提供的光学字符识别相机插件,可以在终端实现字符识别,无需与服务器进行交互,节省了数据传输时间,提高了识别速度。 The device of the embodiment of the present invention is suitable for the cabinet storage process implemented based on the mini program. After the cabinet storage process is started, the optical character recognition camera plug-in provided by the mini program platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience. At the same time, the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed to control the food storage cabinet to open the target cabinet, and open the target cabinet when the pickup code is received as the recommended cabinet opening code. The embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the meal storage process. By calling the optical character recognition camera plug-in provided by the mini program platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
图13是本发明实施例的电子设备的示意图。在本实施例中,电子设备1300包括服务器、终端等。如图13所示,该电子设备1300:至少包括一个处理器1301;以及,与至少一个处理器1301通信连接的存储器1302;以及,与扫描装置通信连接的通信组件1303,通信组件1303在处理器1301的控制下接收和发送数据;其中,存储器1302存储有可被至少一个处理器1301执行的指令,指令被至少一个处理器1301执行以实现上述信息交互方法。FIG13 is a schematic diagram of an electronic device of an embodiment of the present invention. In this embodiment, the electronic device 1300 includes a server, a terminal, etc. As shown in FIG13 , the electronic device 1300 includes at least one processor 1301; and a memory 1302 connected to the at least one processor 1301 in communication; and a communication component 1303 connected to the scanning device in communication, and the communication component 1303 receives and sends data under the control of the processor 1301; wherein the memory 1302 stores instructions that can be executed by at least one processor 1301, and the instructions are executed by at least one processor 1301 to implement the above-mentioned information interaction method.
具体地,该电子设备包括:一个或多个处理器1301以及存储器1302,图13中以一个处理器1301为例。处理器1301、存储器1302可以通过总线或者其他方式连接,图13中以通过总线连接为例。存储器1302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。处理器1301通过运行存储在存储器1302中的非易失性软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述信息交互方法。Specifically, the electronic device includes: one or more processors 1301 and a memory 1302, and FIG13 takes a processor 1301 as an example. The processor 1301 and the memory 1302 can be connected via a bus or other means, and FIG13 takes the connection via a bus as an example. The memory 1302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 1301 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory 1302, that is, realizing the above-mentioned information interaction method.
存储器1302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储选项列表等。此外,存储器1302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1302可选包括相对于处理器1301远程设置的存储器,这些远程存储器可以通过网络连接至外接设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store a list of options, etc. In addition, the memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1302 may optionally include a memory remotely arranged relative to the processor 1301, and these remote memories may be connected to an external device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
一个或者多个模块存储在存储器1302中,当被一个或者多个处理器1301执行时,执行上述任意方法实施例中的信息交互方法。One or more modules are stored in the memory 1302, and when executed by one or more processors 1301, the information interaction method in any of the above method embodiments is executed.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
本发明实施例适用于基于小程序实现的存柜流程。在存柜流程启动后,调用小程序平台提供的光学字符识别相机插件以实时获取待识别图像帧和待识别图像帧对应的识别字符串,然后将实时获取的待识别图像帧绘制渲染成实时视频,并将实时视频显示在相机画面显示框中,以使用户得知实时扫描范围,提高用户的体验感。同时根据识别字符串确定推荐开柜码,当推荐开柜码识别成功后,显示推荐开柜码,检测到用户触发推荐开柜码,向存餐柜服务器发送推荐开柜码,以控制存餐柜开启目标柜格,并在接收到取件码为推荐开柜码时开启目标柜格。本发明实施例通过使用光学字符识别可从待识别图像帧中自动分析得到开柜码,简化存餐流程。调用小程序平台提供的光学字符识别相机插件,可以在终端实现字符识别,无需与服务器进行交互,节省了数据传输时间,提高了识别速度。The embodiment of the present invention is applicable to the storage process based on the applet. After the storage process is started, the optical character recognition camera plug-in provided by the applet platform is called to obtain the image frame to be recognized and the recognition string corresponding to the image frame to be recognized in real time, and then the image frame to be recognized obtained in real time is drawn and rendered into a real-time video, and the real-time video is displayed in the camera screen display frame, so that the user can know the real-time scanning range and improve the user experience. At the same time, the recommended cabinet opening code is determined according to the recognition string. When the recommended cabinet opening code is successfully recognized, the recommended cabinet opening code is displayed. When it is detected that the user triggers the recommended cabinet opening code, the recommended cabinet opening code is sent to the food storage cabinet server to control the food storage cabinet to open the target cabinet, and the target cabinet is opened when the pickup code is received as the recommended cabinet opening code. The embodiment of the present invention can automatically analyze the cabinet opening code from the image frame to be recognized by using optical character recognition, thereby simplifying the food storage process. By calling the optical character recognition camera plug-in provided by the applet platform, character recognition can be realized in the terminal without interacting with the server, saving data transmission time and improving recognition speed.
本发明的另一个实施例涉及一种非易失性存储介质,用于存储计算机可读程序,计算机可读程序用于供计算机执行上述部分或全部的方法实施例。即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。以上仅为本申请的优选实施例,并不用于限制本申请,对于本领域技术人员而言,本申请可以有各种改动和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, which is used for a computer to execute some or all of the above-mentioned method embodiments. That is, it can be understood by those skilled in the art that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. The above is only a preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (17)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311229275.8A CN116994380B (en) | 2023-09-21 | 2023-09-21 | An information interaction method and device |
| CN202311229275.8 | 2023-09-21 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025060915A1 true WO2025060915A1 (en) | 2025-03-27 |
Family
ID=88521600
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/117723 Pending WO2025060915A1 (en) | 2023-09-21 | 2024-09-09 | Information exchange method and apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (2) | CN118097858A (en) |
| WO (1) | WO2025060915A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118097858A (en) * | 2023-09-21 | 2024-05-28 | 浙江口碑网络技术有限公司 | Information interaction method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114022257A (en) * | 2022-01-10 | 2022-02-08 | 北京三快在线科技有限公司 | Order processing system, method and device, storage medium and electronic equipment |
| CN114170594A (en) * | 2021-12-07 | 2022-03-11 | 奇安信科技集团股份有限公司 | Optical character recognition method, device, electronic device and storage medium |
| CN115357834A (en) * | 2022-09-06 | 2022-11-18 | 平安科技(深圳)有限公司 | Page jump method, device, equipment and storage medium |
| WO2023016354A1 (en) * | 2021-08-11 | 2023-02-16 | 北京字跳网络技术有限公司 | Data exchange method and apparatus, device, and storage medium |
| CN116994380A (en) * | 2023-09-21 | 2023-11-03 | 浙江口碑网络技术有限公司 | An information interaction method and device |
Family Cites Families (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102436668A (en) * | 2011-09-05 | 2012-05-02 | 上海大学 | Automatic Beijing Opera facial mask making-up method |
| US9433862B2 (en) * | 2013-02-12 | 2016-09-06 | Microsoft Technology Licensing, Llc | Dynamic allocation of computing resources in remote gaming environment |
| CN115620457B (en) * | 2018-08-27 | 2025-10-24 | 华为技术有限公司 | Method and electronic device for controlling express lockers based on express messages |
| CN109766507A (en) * | 2018-12-07 | 2019-05-17 | 珠海格力电器股份有限公司 | Page jump control method and device |
| CN110047187A (en) * | 2019-04-26 | 2019-07-23 | 深圳市丰巢科技有限公司 | A kind of method, apparatus, equipment and system for opening express delivery cabinet |
| CN111865644B (en) * | 2019-12-04 | 2023-04-07 | 北京小桔科技有限公司 | Recommendation method and device of computing resources, electronic equipment and storage medium |
| CN111563243A (en) * | 2020-04-29 | 2020-08-21 | 中国人民解放军海军航空大学 | A trusted identity authentication platform based on WeChat applet |
| CN113835789B (en) * | 2020-06-08 | 2025-05-02 | 阿里巴巴集团控股有限公司 | Rendering method, device, electronic device and computer storage medium |
| CN113408382A (en) * | 2020-07-13 | 2021-09-17 | 追创科技(苏州)有限公司 | Control method and device of self-moving equipment, storage medium and self-moving equipment |
| CN114429634B (en) * | 2020-10-15 | 2025-06-20 | 腾讯科技(深圳)有限公司 | Method, system, device and storage medium for filling in identity authentication information |
| CN112750256A (en) * | 2020-12-30 | 2021-05-04 | 江苏云柜网络技术有限公司 | Express delivery cabinet pickup method and system and storage medium |
| CN114627593A (en) * | 2022-05-13 | 2022-06-14 | 浙江口碑网络技术有限公司 | Information interaction method, terminal, server, system and device |
| CN115729415A (en) * | 2022-12-08 | 2023-03-03 | 浙江口碑网络技术有限公司 | Information interaction method and information interaction device |
| CN116048691A (en) * | 2022-12-20 | 2023-05-02 | 北京达佳互联信息技术有限公司 | Resource display method, device, electronic device and storage medium |
| CN116708516B (en) * | 2023-08-04 | 2023-11-03 | 北京三快在线科技有限公司 | Intelligent cabinet storage processing method, client and server |
-
2023
- 2023-09-21 CN CN202410224559.6A patent/CN118097858A/en active Pending
- 2023-09-21 CN CN202311229275.8A patent/CN116994380B/en active Active
-
2024
- 2024-09-09 WO PCT/CN2024/117723 patent/WO2025060915A1/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2023016354A1 (en) * | 2021-08-11 | 2023-02-16 | 北京字跳网络技术有限公司 | Data exchange method and apparatus, device, and storage medium |
| CN114170594A (en) * | 2021-12-07 | 2022-03-11 | 奇安信科技集团股份有限公司 | Optical character recognition method, device, electronic device and storage medium |
| CN114022257A (en) * | 2022-01-10 | 2022-02-08 | 北京三快在线科技有限公司 | Order processing system, method and device, storage medium and electronic equipment |
| CN115357834A (en) * | 2022-09-06 | 2022-11-18 | 平安科技(深圳)有限公司 | Page jump method, device, equipment and storage medium |
| CN116994380A (en) * | 2023-09-21 | 2023-11-03 | 浙江口碑网络技术有限公司 | An information interaction method and device |
| CN118097858A (en) * | 2023-09-21 | 2024-05-28 | 浙江口碑网络技术有限公司 | Information interaction method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118097858A (en) | 2024-05-28 |
| CN116994380A (en) | 2023-11-03 |
| CN116994380B (en) | 2024-01-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3567476B1 (en) | Application data processing method and apparatus, and storage medium | |
| CN111324535B (en) | Control abnormity detection method and device and computer equipment | |
| US10496696B2 (en) | Search method and apparatus | |
| CN108777806B (en) | User identity recognition method, device and storage medium | |
| US12299057B2 (en) | Method and apparatus for managing user profile | |
| CN111601012B (en) | Image processing method and device and electronic equipment | |
| CN112988185A (en) | Cloud application updating method, device and system, electronic equipment and storage medium | |
| CN101490657A (en) | service provider | |
| CN113794930A (en) | Video generation method, device, device and storage medium | |
| WO2025060915A1 (en) | Information exchange method and apparatus | |
| US12210561B2 (en) | Search processing method and apparatus, device, medium, and program product | |
| CN113297399A (en) | Personalized recommendation method, personalized recommendation device and electronic equipment | |
| CN112817782B (en) | Data acquisition reporting method and device, electronic equipment and storage medium | |
| CN117193593A (en) | Information display method and device, electronic equipment and computer readable memory | |
| CN113672135B (en) | Object control method, device and electronic equipment | |
| CN112015411B (en) | Education application interface configuration method and device based on SAAS and readable storage medium | |
| CN112395028B (en) | Page checking method, device, terminal and storage medium | |
| CN116225602A (en) | Jump management method and device for user interface, electronic equipment and storage medium | |
| CN113783770A (en) | Image sharing method, image sharing device and electronic device | |
| CN119397994B (en) | On-chip network verification method, device, electronic device and readable storage medium | |
| CN119248411B (en) | Database management interface operation method, device and electronic device | |
| CN114489796B (en) | Input interception method, device, electronic device and storage medium | |
| US20260029904A1 (en) | Information processing apparatus, information processing method, and storage medium | |
| CN117742866A (en) | UI layout acquisition method, control device and medium based on android system | |
| US20240419438A1 (en) | Program data package generation method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24867327 Country of ref document: EP Kind code of ref document: A1 |