Article resource information acquisition method and device, computer equipment, readable storage medium and program product
By detecting item images and container labels in the item collection, identifying and matching similarities, the problem of low efficiency in obtaining item resource information in the existing technology is solved, and automated and accurate resource information acquisition is achieved.
Patent Information
- Application Number
- CN202410692820.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, it is inefficient to obtain resource information about dishes and other items in the canteen through manual input, and it is easy to enter incorrect information, leading to re-entry, which reduces the acquisition efficiency.
By detecting the item image and position in the item collection, identifying the item label on the container, and obtaining the similarity between the preset item image and the container image, if the similarity is greater than the threshold, the resource information of the item is obtained based on the preset resource information, improving access efficiency.
It has improved the efficiency of automatically acquiring item resource information, reduced manual input time and errors, and improved the accuracy and efficiency of resource information acquisition.
Smart Images

Figure CN118537599A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a method, apparatus, computer equipment, computer-readable storage medium and computer program product for acquiring item resource information. Background Art
[0002] At present, large financial institutions have set up item acquisition services at the cost of resource information, such as the food acquisition service in the canteen. With the development of computer technology, it is now possible to obtain resource information of items such as dishes in the canteen through computers, for example, after manually inputting the food information, the computer outputs the total amount. However, it takes a long time to determine the resource information of the dishes in the canteen through manual input, and when the dish information is entered incorrectly, it needs to be re-entered and recalculated, resulting in a decrease in the efficiency of obtaining resource information of items such as dishes.
[0003] Therefore, the current method for obtaining resource information of items such as dishes has the defect of low acquisition efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for obtaining item resource information that can improve the acquisition efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for obtaining item resource information, the method comprising:
[0006] When it is detected that a set of objects to be detected is in a detection area, each object image corresponding to each object in the object set and each position of each object in the detection area are obtained; the objects are placed in corresponding containers, and the containers carry corresponding object labels;
[0007] According to each of the positions, identifying each of the item tags of each of the containers where each of the items is located, obtaining each of the preset item images corresponding to each of the item tags, and each of the preset resource information corresponding to each of the preset items;
[0008] The similarities between each of the preset object images and each of the object images of the corresponding container are obtained. If each of the similarities is greater than a preset similarity threshold, the resource information corresponding to each of the objects is obtained according to each of the preset resource information.
[0009] In one embodiment, obtaining each item image corresponding to each item in the item set includes:
[0010] Acquire an object set image corresponding to the object set; the object set image includes images of each of the objects in the detection area;
[0011] The edge information corresponding to each of the items in the item set image is identified, and the item set image is segmented according to the edge information to obtain the item images corresponding to each of the items.
[0012] In one of the embodiments, a plurality of label detection devices distributed in different positions are arranged in the detection area;
[0013] The step of identifying, according to the respective positions, the respective item labels of the respective containers where the respective items are located, comprises:
[0014] For the item at each position, start the target tag detection device corresponding to the position;
[0015] According to the target tag detection device, the item tag of the container where the item at the position is located is identified.
[0016] In one embodiment, after identifying the item tag of the container where the item at the location is located according to the target tag detection device, the method further includes:
[0017] When it is detected that there is no object at the location, the target tag detection device corresponding to the location is turned off.
[0018] In one embodiment, after obtaining the resource information corresponding to each of the items according to each of the preset resource information, the method further includes:
[0019] According to the resource information corresponding to each of the items, the total resource information corresponding to the item set is obtained;
[0020] Acquire a facial image of a user corresponding to the set of items, and determine a user account of the user according to the facial image;
[0021] The resources corresponding to the total resource information are deducted from the remaining resources of the user account.
[0022] In one embodiment, after obtaining the similarities between each of the preset object images and each of the object images of the corresponding container, the method further includes:
[0023] If there is an erroneous item image whose similarity is less than the preset similarity threshold among the item images, corresponding item error prompt information is output according to the erroneous item image.
[0024] In a second aspect, the present application provides a device for acquiring item resource information, the device comprising:
[0025] A detection module, configured to, when detecting that a set of objects to be detected is in a detection area, obtain images of each object corresponding to each object in the set of objects, as well as positions of each object in the detection area; the objects are placed in corresponding containers, and the containers carry corresponding object labels;
[0026] an identification module, for identifying, according to each of the positions, each of the item tags of each of the containers where each of the items is located, and obtaining each of the preset item images of each of the preset items corresponding to each of the item tags, and each of the preset resource information corresponding to each of the preset items;
[0027] The acquisition module is used to acquire the similarities between each of the preset object images and each of the object images of the corresponding container. If each of the similarities is greater than a preset similarity threshold, the resource information corresponding to each of the objects is obtained according to each of the preset resource information.
[0028] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0029] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0030] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.
[0031] The above-mentioned method, device, computer equipment, computer-readable storage medium and computer program product for obtaining item resource information obtain the images of each item in the item set in the detection area, identify the item labels of each item in each container based on the position of each item, obtain each preset item image and each preset resource information corresponding to each item label, obtain the similarity between the preset item image and each item image of the corresponding container, and obtain the resource information corresponding to the item according to the preset resource information when it is determined that the similarity is greater than the preset similarity threshold. Compared with the traditional method of obtaining item resource information by manually inputting information, this solution combines the item labels corresponding to the containers where each item is located, and the item images of the items in each container, and after determining that the items in the container match by similarity, determines the resource information corresponding to each item by using the preset resource information corresponding to the item label, thereby improving the efficiency of obtaining item resource information. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0033] FIG1 is a diagram showing an application environment of a method for acquiring item resource information in one embodiment;
[0034] FIG2 is a schematic diagram of a flow chart of a method for acquiring item resource information in one embodiment;
[0035] FIG3 is a schematic diagram of the structure of a resource information acquisition device in one embodiment;
[0036] FIG4 is a flow chart of a method for acquiring item resource information in another embodiment;
[0037] FIG5 is a structural block diagram of an apparatus for acquiring item resource information in one embodiment;
[0038] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0041] The method for obtaining resource information of items provided in the embodiment of the present application can be applied in the application environment shown in FIG. 1 . The resource information obtaining device communicates with the server through the network, and the resource information obtaining device can also communicate with the label in the container of the item through near field communication. When the resource information obtaining device detects the container through near field communication, it can obtain the image of each item, and after reading the label of the container through near field communication, it obtains the preset item image and preset resource information corresponding to the item label from the server, and determines the resource information corresponding to the item based on the similarity between the preset item image and the item image of the corresponding container using the preset resource information. The container can be a tableware with an NFC (Near Field Communication) chip, the server can be a canteen system server, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0042] In an exemplary embodiment, as shown in FIG2 , a method for obtaining item resource information is provided, which is described by taking the method applied to the resource information obtaining device in FIG1 as an example, and includes the following steps S202 to S206 . Among them:
[0043] Step S202, when it is detected that the set of objects to be detected is in the detection area, the image of each object corresponding to each object in the above object set and the position of each of the above objects in the above detection area are obtained; the above objects are placed in corresponding containers, and the above containers carry corresponding object labels.
[0044] The set of items to be detected may be a set of items for which resource information acquisition is required. The set of items may include multiple items, each of which is placed in a corresponding container, and the items correspond to the containers one by one. The above container carries a corresponding item tag. For example, a corresponding NFC tag is pre-installed in the container, indicating that the item corresponding to the NFC tag should be placed in the container.
[0045] Wherein, the above-mentioned detection area can be an area in the resource information acquisition device for detecting item tags and acquiring item images. When the above-mentioned item set to be detected is placed in the detection area, the resource information acquisition device can determine to start the resource information acquisition step for the items. Then the resource information acquisition device can obtain each item image corresponding to each item in the above-mentioned item set. Wherein, for each item image corresponding to each of the above-mentioned items, each item image can include an item, and the resource information acquisition device can obtain the image of the entire item set and then extract each item image corresponding to each item from the overall image. Wherein, the resource information acquisition device can obtain the above-mentioned individual item images through an image acquisition device. The above-mentioned image acquisition device can be set in the resource information acquisition device, and specifically can be a camera. The resource information acquisition device can use the camera to collect images corresponding to the item set including all items in the set in a bird's-eye view.
[0046] The resource information acquisition device may also determine the position of each item in the above-mentioned item set in the detection area. The resource information acquisition device may determine the position of the item in the detection area by image recognition. For example, the resource information acquisition device may acquire the detection area in the overall image of the collected item set, and construct a coordinate system in the detection area in the overall image, and determine the coordinates of the items in the above-mentioned detection area through the above-mentioned coordinate system, and then the resource information acquisition device may obtain the position of the item in the detection area based on the coordinates.
[0047] Step S204, identifying the item tags of the containers where the items are located according to the positions, obtaining the preset item images of the preset items corresponding to the item tags, and the preset resource information corresponding to the preset items.
[0048] After the resource information acquisition device determines the position of each item in the detection area, it can identify each item label corresponding to each container where each item is located based on each position. The resource information acquisition device can realize the identification of the item label of the container by performing near field communication reading at the position where the container is located. After the resource information acquisition device identifies the item label, it can obtain each preset item image of each preset item corresponding to the item label, and each preset resource information corresponding to each preset item. The preset item image represents the image of the item that should be placed in the container. The preset resource information represents the resource information corresponding to the item that should be placed in the container. The user can obtain the item corresponding to the resource information by transferring the resources corresponding to the above resource information from the account. The above preset item image and preset resource information can be stored in association with the information of the corresponding item label in advance. When the resource information acquisition device detects the corresponding item label, it can obtain the preset item information and preset resource information of the corresponding item label from the database.
[0049] Specifically, the above-mentioned items can be dishes, the container in which the items are placed can be tableware, and the item tag corresponding to the item can be an NFC chip, which is embedded in the bottom of the tableware for identification and reading by the NCF chip reading device set in the resource information acquisition device. Among them, the NFC chip at the bottom of each tableware can be associated with a specific dish, and the system can accurately identify the dish selected by the user to ensure the accuracy of billing. By maintaining the NFC chip-related content, the image, resource information, discount, interest rate and other information of the corresponding dish are maintained, and finally the dish information, such as resource information, ingredients, calories, etc., is displayed on the display screen of the resource information acquisition device according to the NFC chip recorded information.
[0050] Among them, the preset item images and preset resource information corresponding to the NFC chips associated with the above-mentioned dishes can be stored in the data of the server. The server stores the canteen's meal information, such as resource information, introduction, images, calories, discounts and other information, and has service functions such as configuring meals, querying meals, identifying meals, personal information query, and payment services.
[0051] Step S206, obtaining each similarity between each of the above-mentioned preset object images and each of the above-mentioned object images in the corresponding container, if each of the above-mentioned similarities is greater than a preset similarity threshold, obtaining resource information corresponding to each of the above-mentioned objects according to each of the above-mentioned preset resource information.
[0052] In order to determine whether the item placed in the container corresponds to the preset item image corresponding to the container, the resource information acquisition device may obtain the preset item image corresponding to the item label of the container from the database, and then compare the preset item image with the item image corresponding to the container to obtain the corresponding similarity. If the resource information acquisition device detects that the similarity corresponding to each item in the item set is greater than the preset similarity threshold, the resource information acquisition device may determine that each item in the item set matches each container in which it is located, and the resource information acquisition device may obtain the resource information corresponding to the items in each container according to the preset resource information corresponding to each container.
[0053] The resource information acquisition device can display the resource information corresponding to each determined item, so that the resource transfer step can be entered. Specifically, the above-mentioned items can be dishes. The resource information acquisition device interacts with the server through the network, configures the dish resource information, image, description and other information by configuring the meal service, queries the meal service to obtain the existing system dish information display, and the recognition service performs image recognition and similarity matching on the preset item images corresponding to the dishes stored in the server and the meal images captured and cut by the local camera to achieve the purpose of meal recognition to see if the tableware is placed in the wrong place. The personal information query service can query the user balance information under the face recognition or user account card, and deduct and transfer resources through the resource transfer service according to the total resource information of the dishes.
[0054] The resource information acquisition device is provided with a plurality of units for executing corresponding steps in the process of acquiring the resource information of the item. Specifically, as shown in FIG3 , FIG3 is a schematic diagram of the structure of the resource information acquisition device in one embodiment. The resource information acquisition device is provided with a control unit 21 , a communication unit 22 , a face recognition unit 23 , an image recognition unit 24 , an information prompt unit 25 , an NFC chip reading unit 26 , a memory unit 27 , an RFID (Radio Frequency Identification) chip reading unit 28 , and a power supply unit 29 .
[0055] Among them, the control unit 21 is used for overall process control and coordinated operation of each unit. The communication unit 22 is used to coordinate information exchange with the server through the network. The face recognition unit 23 is used to obtain the facial features of the current user and perform face recognition and deduction with the server through the communication unit. The image recognition unit 24 is used to obtain the image of the collection of items, perform image segmentation to identify the location of the items, and call the control unit to control the corresponding NFC chip reading device to start reading the corresponding dish information. Use the segmented image of the item to perform similarity matching with the preset item image corresponding to the NFC chip to achieve the function of identifying whether the item is placed in the wrong container.
[0056] The information prompt unit 25 is used to provide users with abnormal information such as items, resource information of items, and items placed in the wrong container. The NFC chip reading unit 26 is usually in a closed state. When the control unit sends an open signal, it turns on the NFC chip recognition and obtains the item tag information of the item. The memory unit 27 is used to store process data during the operation of the resource information acquisition device, such as the collection information of items in the current detection area, the information of each item recorded by the server system, etc. The power supply unit 28 is used to supply power to each component during the operation of the resource information acquisition device.
[0057] In the above-mentioned method for acquiring item resource information, by acquiring the images of each item in the item set in the detection area, identifying the item labels of each item in each container based on the position of each item, obtaining each preset item image and each preset resource information corresponding to each item label, obtaining the similarity between the preset item image and each item image of the corresponding container, and when it is determined that the above-mentioned similarity is greater than the preset similarity threshold, obtaining the resource information corresponding to the item according to the preset resource information. Compared with the traditional method of acquiring item resource information by manually inputting information, this solution combines the item labels corresponding to the containers where each item is located, and the item images of the items in each container, and after determining that the items in the container match by similarity, determines the resource information corresponding to each item by using the preset resource information corresponding to the item label, thereby improving the efficiency of acquiring item resource information.
[0058] In one embodiment, obtaining each item image corresponding to each item in the above-mentioned item set includes: obtaining the item set image corresponding to the above-mentioned item set; the above-mentioned item set image includes images of each of the above-mentioned items in the above-mentioned detection area; identifying each piece of edge information corresponding to each of the above-mentioned items in the above-mentioned item set image, performing image segmentation on the above-mentioned item set image according to each piece of the above-mentioned edge information, and obtaining each piece of the above-mentioned item image corresponding to each of the above-mentioned items.
[0059] In this embodiment, the resource information acquisition device can obtain the object images corresponding to each object image by image cutting. The object image represents the image corresponding to the minimum inclusion range of an object. For example, the resource information acquisition device can obtain the object collection image corresponding to the above-mentioned object combination. The object collection image includes the images of each object in the above-mentioned detection area. That is, the object combination image includes multiple objects. The resource information acquisition device can identify the edge information corresponding to each object in the object collection image, which can be the edge information of the container where each object is located, so that the resource information acquisition device can perform image segmentation on the object collection image based on each edge information, for example, it can be segmented by a preset image segmentation algorithm to obtain each object image corresponding to each object. That is, the above-mentioned object image can be a separate image of each object, so that the resource information acquisition device can use the separate image of each object to match with the corresponding preset object image.
[0060] Specifically, the above-mentioned items may be dishes. After the resource information acquisition device detects that a dish collection is placed in a marked detection area, the resource information acquisition device may acquire an image of the dish collection through a camera at the top of the detection area, obtain the specific position of each dish in the detection area, and segment the image of the dish collection through an image cutting algorithm to obtain a unique item image of each dish.
[0061] Through this embodiment, the resource information acquisition device can use the image segmentation algorithm to obtain the individual item images corresponding to each item in the item set, and then the resource information acquisition device can determine whether the items placed in each container are correct based on the similarity comparison between each item image and the corresponding preset item image, thereby improving the efficiency of acquiring item resource information.
[0062] In one embodiment, the item tags of the containers in which the items are located are identified according to the positions, including: for the items at each position, starting a target tag detection device corresponding to the position; and identifying the item tags of the containers in which the items at the positions are located according to the target tag detection device.
[0063] In this embodiment, a plurality of label detection devices are arranged in the detection area, and the plurality of label detection devices are distributed at different positions in the detection area. The position of the label detection device in the detection area may be known. The resource information acquisition device may identify the item label of the container where each item is located according to the position of each item in the above-mentioned item set. Wherein, the plurality of label detection devices in the above-mentioned detection area may be in a closed state by default in order to save energy if they do not receive the start signal sent by the resource information acquisition device. After the resource information acquisition device determines the various positions of the above-mentioned items in the detection area, for the items at each position, the resource information acquisition device may send a start signal to the label detection device corresponding to the position, thereby starting the target label detection device corresponding to the above-mentioned position. Wherein, the target label detection device corresponding to the above-mentioned position may be the label detection device closest to the position. If there are multiple label detection devices closest to the above-mentioned position, the resource information acquisition device may send a start signal to these nearest label detection devices at the same time, and obtain the above-mentioned target label detection device based on multiple label detection devices.
[0064] The resource information acquisition device can identify the item label of the container where the item at the above-mentioned position is located based on the above-mentioned target label detection device. That is, the resource information acquisition device can identify the item label of the container where the item is located by starting the target label detection device that is closest to the position of the above-mentioned item. Among them, the target label detection device can be a label detection device, or it can be composed of multiple label detection devices. If there is one target label detection device, the item label identified by the target label detection device represents the item label corresponding to the above-mentioned container; if there are multiple target label detection devices, the resource information acquisition device obtains the item label identified by each label detection device in the target label detection device, and uses the item label with the highest recognition completeness among the multiple item labels as the item label corresponding to the above-mentioned container.
[0065] Among them, when the resource information acquisition device uses the tag detection device to identify the object tag, when the tag detection device determines that there is no object at the corresponding position, for example, when the object is moved, the resource information acquisition device can turn off the power of the tag detection device at the location.
[0066] In one embodiment, after identifying the item tag of the container where the item at the position is located according to the target tag detection device, the method further includes: when it is detected that there is no item at the position, turning off the target tag detection device corresponding to the position.
[0067] In this embodiment, the resource information acquisition device can detect whether there are objects in the tag detection device at each location. If the resource information acquisition device detects that there are no objects at the location, for example, no objects are placed or the objects are moved out of the detection area, the resource information acquisition device can determine to turn off the target tag detection device at the corresponding location, thereby saving energy.
[0068] Specifically, the above-mentioned items may be dishes, the above-mentioned tag detection device may be an NFC chip reading device, and the above-mentioned item tag may be an NFC tag. The resource information acquisition device may drive the NFC chip reading device at the corresponding position at the bottom of the detection area to start working according to the position of the dishes in the detection area, and read the NFC tag of the container where the dishes at the corresponding position are located, so that the resource information acquisition device obtains the corresponding preset item information and preset resource information based on the NFC tag. In addition, when the resource information acquisition device detects through a camera that the dishes leave the detection area, the resource information acquisition device may control the NFC chip reading device at the corresponding position to stop working. When all dishes leave the detection area, the resource information acquisition device may disconnect the power supply of all NFC chip reading devices to achieve energy saving effect.
[0069] Through the above embodiments, the resource information acquisition device can only start the label detection device at the corresponding position for detection based on the position of the object in the detection area, and turn off the label detection device at the corresponding position after detecting that the object leaves the corresponding position, thereby improving the efficiency of obtaining object resource information while saving energy.
[0070] In one embodiment, after obtaining the resource information corresponding to each of the above-mentioned items according to each of the above-mentioned preset resource information, it also includes: obtaining the total resource information corresponding to the above-mentioned item set according to the respective resource information corresponding to each of the above-mentioned items; obtaining the face image of the user corresponding to the above-mentioned item set, and determining the user account of the above-mentioned user according to the above-mentioned face image; and deducting the resources corresponding to the above-mentioned total resource information from the remaining resources of the above-mentioned user account.
[0071] In this embodiment, after the resource information acquisition device determines the resource information corresponding to each item, it can start the process of deducting resources from the user, so that the user can obtain the corresponding item after the corresponding resource is deducted. Each item may have corresponding resource information, and the resource information of each item may be different. The resource information acquisition device can obtain the total resource information corresponding to the item set based on the resource information corresponding to each item determined above. For example, the resource information acquisition device can obtain the resource information corresponding to each item whose resource information has been determined, and add the resource information to obtain the sum of the resource information corresponding to each item as the total resource information corresponding to the item set. The item whose resource information has been determined can be an item that has been matched by the resource information acquisition device with a preset item image corresponding to the item label of the container where the item is located.
[0072] After the resource information acquisition device determines the total resource information of the item resources, it can determine the user's account and deduct the corresponding resources from the user's account, so that the user can obtain and use the items in the above-mentioned item set. The resource information acquisition device can determine the user account corresponding to the user by identifying the relevant characteristics of the user. For example, the resource information acquisition device can obtain the facial image of the user corresponding to the above-mentioned item set and determine the user account of the user according to the facial image. The resource information acquisition device can query the account matching the facial image in the database through the facial image as the user account corresponding to the above-mentioned user. The user account has a corresponding account balance. When the resource information acquisition device determines that the remaining resources in the account balance are greater than or equal to the resources corresponding to the above-mentioned total resource information, the resources corresponding to the total resource information can be deducted from the remaining resources of the user, so that the above-mentioned user can obtain and use the above-mentioned items.
[0073] Specifically, the above-mentioned items may be dishes. After the resource information acquisition device determines the resource information of each dish in the item set, the list information of the selected dishes, the total resource information of the dishes, etc. may be displayed on the display screen of the resource information acquisition device. The resource information acquisition device obtains the user account information of the user by identifying the user face, user account card or QR code through a face recognition camera or a user account card recognition device. The resource information acquisition device combines at least one of the user face feature, user account card information and QR code with the total resource information of the dishes through the unit network, calls the server to perform resource deduction service, and deducts the resources corresponding to the total resource information from the user account.
[0074] The resource information acquisition device can also display the corresponding resource deduction results through a display screen based on the deduction results returned by the server, so that the user can take away the above-mentioned settled dishes and end the process of obtaining dish resources.
[0075] Through this embodiment, the resource information acquisition device can combine the user's characteristic information to implement the process of deducting resources from the user's account, thereby improving the efficiency of resource settlement for items.
[0076] In one embodiment, after obtaining the similarities between each of the above-mentioned preset object images and each of the above-mentioned object images of the corresponding container, it also includes: if there is an erroneous object image whose similarity is less than the above-mentioned preset similarity threshold among the above-mentioned object images, then according to the above-mentioned erroneous object image, a corresponding object error prompt information is output.
[0077] In this embodiment, for each item image, after the resource information acquisition device compares the item image with the corresponding preset item image for similarity, if the resource information acquisition device detects that the similarity between the item image and the preset item image is less than the preset similarity, the resource information acquisition device may determine the item image as an incorrect item image. The incorrect item image means that the item corresponding to the item image does not match its container, that is, the item is installed in the wrong container. The resource information acquisition device may output the corresponding item error prompt information based on the incorrect item image. The error prompt information may include the output incorrect item image and the information of the preset item corresponding to the item label set in the container.
[0078] Specifically, the above-mentioned items may be dishes, and the above-mentioned containers may be tableware. If the resource information acquisition device determines that the tableware corresponding to the preset dish image does not match the above-mentioned dish based on the similarity between the dish and the corresponding preset dish image is less than a preset similarity threshold, the resource information acquisition device may not perform the total resource information determination step, and display the wrong dish information on the display screen, including the wrong dish image and the information of the preset dish corresponding to the tableware, etc., so as to prompt the user to go and replace it.
[0079] Through this embodiment, the resource information acquisition device can determine whether the object matches the container based on the similarity between the object and the preset object image, and when it is determined that there is no match, output a corresponding error prompt message so that the user can change it in time, thereby improving the efficiency of obtaining object resource information.
[0080] In an exemplary embodiment, as shown in FIG4 , FIG4 is a flow chart of a method for acquiring item resource information in another embodiment. The method includes the following steps:
[0081] Step S301: The user places dishes on a tray in a marked identifiable area and places the tray on a resource information acquisition device.
[0082] Step S302: The top camera of the resource information acquisition device can acquire the tray image to obtain the specific location of the dishes on the tray, and at the same time segment the tray image to form a unique dish image for each dish.
[0083] Step S303: The resource information acquisition device drives the NFC chip reading device at the corresponding position at the bottom of the resource information acquisition device to start working according to the position of the food on the tray, reads the NFC tag of the tableware, and obtains the corresponding dish information.
[0084] Step S304: The resource information acquisition device records the dish information according to the NFC tag, accesses the server to obtain the preset dish image (preset item image) configured by the system, and performs similarity matching with the dish image after the tray image is segmented to determine whether the dish is correctly placed in the bowl.
[0085] Step S305: If the dishes are loaded into the tableware correctly, continue to execute S307, otherwise go to S306.
[0086] Step S306: The resource information acquisition device does not calculate the total resource information of the dish, and displays the wrong meal information on the device display screen, prompting the customer to go and replace it.
[0087] Step S307: The resource information acquisition device calculates the total resource information of the dishes, and displays the selected dish list information and the total resource information of the dishes on the device display screen.
[0088] Step S308: The resource information acquisition device, face recognition camera or meal card recognition equipment, obtains user information by identifying the user's face, meal card (user account card), and QR code, and calls the payment service on the server with at least one of the user's face features, meal card information, and QR code and the total resource information of the dish through the communication unit network to achieve the purpose of deducting resources.
[0089] Step S309: the resource information acquisition device receives the resource result returned by the server, and drives the resource deduction result to be displayed on the resource information acquisition device through a display driving unit.
[0090] Step S310: After the resource deduction is completed, the user takes the dishes from the resource information acquisition device and the process ends.
[0091] In this embodiment, the above-mentioned object may be a dish, the above-mentioned container may be a tableware, and the above-mentioned detection area may be a tray. A plurality of units may be provided in the resource information acquisition device. For example, the resource information acquisition device may be provided with a camera, an NFC reading device, an RFID reading device, a display screen, and other devices.
[0092] Among them, the camera is responsible for capturing the image of the dishes on the tray. Through image recognition technology, the system can accurately identify the position of each dish on the tray, and drive the NFC chip reading device at the corresponding position to start reading the detailed dish information at the corresponding position. Then, the resource information acquisition device only needs to turn on the power of the NFC reading device under the corresponding tableware position. When the camera recognizes that each dish has left the billing device area, the resource information acquisition device can control all NFC reading devices to power off to achieve energy saving.
[0093] Among them, the resource information acquisition device can also cut the image of the dish corresponding to the tray through image recognition technology to form a separate image of each dish, and judge whether the dish is placed in the wrong tableware by matching the preset dish image recorded by the NFC chip binding system with the cut separate dish image. Among them, when the similarity match is inconsistent, the resource information acquisition device can output the wrong dish information through the display screen. When there is no wrong dish information, the resource information acquisition device calculates the price information of all NFC tags read to obtain the total resource information of the dish. The resource information acquisition device can read the user's meal card (user account card) information through the RFID reading device, and finally deduct resources through the meal card, face recognition device, QR code, etc.
[0094] Through this embodiment, the resource information acquisition device can determine the resource information corresponding to each item by combining the item labels corresponding to the containers where each item is located and the item images of the items in each container, and after using similarity to determine the matching of items in the container, use the preset resource information corresponding to the item labels to determine the resource information corresponding to each item, thereby improving the efficiency of acquiring item resource information.
[0095] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0096] Based on the same inventive concept, the embodiment of the present application also provides an item resource information acquisition device for implementing the item resource information acquisition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more item resource information acquisition device embodiments provided below can refer to the limitations of the item resource information acquisition method above, and will not be repeated here.
[0097] In an exemplary embodiment, as shown in FIG5 , a device for acquiring item resource information is provided, comprising: a detection module 500, an identification module 502 and an acquisition module 504, wherein:
[0098] The detection module 500 is used to obtain each item image corresponding to each item in the above-mentioned item set and each position of each of the above-mentioned items in the above-mentioned detection area when detecting that the set of items to be detected is in the detection area; the above-mentioned items are placed in corresponding containers, and the above-mentioned containers carry corresponding item labels.
[0099] The identification module 502 is used to identify the item labels of the containers where the items are located according to the positions, and obtain the preset item images of the preset items corresponding to the item labels, as well as the preset resource information corresponding to the preset items.
[0100] The acquisition module 504 is used to acquire the similarities between each of the preset object images and each of the object images of the corresponding container. If each of the similarities is greater than a preset similarity threshold, the resource information corresponding to each of the objects is obtained according to each of the preset resource information.
[0101] In one embodiment, the detection module 500 is used to obtain an item set image corresponding to the item set; the item set image includes images of each of the items in the detection area; identify edge information corresponding to each of the items in the item set image, perform image segmentation on the item set image according to the edge information, and obtain image images corresponding to each of the items.
[0102] In one embodiment, the identification module 502 is used to start the target tag detection device corresponding to each position of the object; and identify the object tag of the container where the object at the position is located according to the target tag detection device.
[0103] In one embodiment, the apparatus further includes: a closing module, configured to close a target tag detection device corresponding to the location when it is detected that no object exists at the location.
[0104] In one embodiment, the above-mentioned device also includes: a settlement module, which is used to obtain the total resource information corresponding to the above-mentioned item set based on the respective resource information corresponding to the above-mentioned items; obtain the facial image of the user corresponding to the above-mentioned item set, and determine the user account of the above-mentioned user based on the above-mentioned facial image; and deduct the resources corresponding to the above-mentioned total resource information from the remaining resources of the above-mentioned user account.
[0105] In one embodiment, the apparatus further comprises: a prompt module, configured to output corresponding item error prompt information according to the erroneous item image if there is an erroneous item image whose similarity is less than the preset similarity threshold among the item images.
[0106] Each module in the above-mentioned item resource information acquisition device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0107] In an exemplary embodiment, a computer device is provided, which may be a resource information acquisition device, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external resource information acquisition device in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for acquiring item resource information is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0108] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0109] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned method for acquiring item resource information when executing the computer program.
[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for obtaining item resource information is implemented.
[0111] In one embodiment, a computer program product is provided, including a computer program, which implements the above-mentioned method for obtaining item resource information when executed by a processor.
[0112] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0113] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0114] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0115] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for obtaining item resource information, It is characterized in that The method comprises: When it is detected that a set of objects to be detected is in a detection area, each object image corresponding to each object in the object set and each position of each object in the detection area are obtained; the objects are placed in corresponding containers, and the containers carry corresponding object labels; According to each of the positions, identifying each of the item tags of each of the containers where each of the items is located, obtaining each of the preset item images corresponding to each of the item tags, and each of the preset resource information corresponding to each of the preset items; The similarities between each of the preset object images and each of the object images of the corresponding container are obtained. If each of the similarities is greater than a preset similarity threshold, the resource information corresponding to each of the objects is obtained according to each of the preset resource information.
2. The method according to claim 1, It is characterized in that The obtaining of each item image corresponding to each item in the item set includes: Acquire an object set image corresponding to the object set; the object set image includes images of each of the objects in the detection area; The edge information corresponding to each of the items in the item set image is identified, and the item set image is segmented according to the edge information to obtain the item images corresponding to each of the items.
3. The method according to claim 1, It is characterized in that A plurality of label detection devices distributed at different positions are arranged in the detection area; The step of identifying, according to the respective positions, the respective item labels of the respective containers where the respective items are located, comprises: For the item at each position, start the target tag detection device corresponding to the position; According to the target tag detection device, the item tag of the container where the item at the position is located is identified.
4. The method according to claim 3, It is characterized in that After identifying the item tag of the container where the item at the position is located according to the target tag detection device, the method further includes: When it is detected that there is no object at the location, the target tag detection device corresponding to the location is turned off.
5. The method according to claim 1, It is characterized in that After obtaining the resource information corresponding to each of the items according to each of the preset resource information, the method further includes: According to the resource information corresponding to each of the items, the total resource information corresponding to the item set is obtained; Acquire a facial image of a user corresponding to the set of items, and determine a user account of the user according to the facial image; The resources corresponding to the total resource information are deducted from the remaining resources of the user account.
6. The method according to any one of claims 1 to 5, It is characterized in that After obtaining the similarities between each of the preset object images and each of the object images of the corresponding container, the method further includes: If there is an erroneous item image whose similarity is less than the preset similarity threshold among the item images, corresponding item error prompt information is output according to the erroneous item image.
7. A device for acquiring item resource information, It is characterized in that The device comprises: A detection module, configured to, when detecting that a set of objects to be detected is in a detection area, obtain images of each object corresponding to each object in the set of objects, as well as positions of each object in the detection area; the objects are placed in corresponding containers, and the containers carry corresponding object labels; an identification module, for identifying, according to each of the positions, each of the item tags of each of the containers where each of the items is located, and obtaining each of the preset item images corresponding to each of the item tags, and each of the preset resource information corresponding to each of the preset items; The acquisition module is used to acquire the similarities between each of the preset object images and each of the object images of the corresponding container, and if each of the similarities is greater than a preset similarity threshold, obtain the resource information corresponding to each of the objects according to each of the preset resource information.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Data processing method and device, computer system and readable storage medium
CN112329653A
Article monitoring method and device, computer equipment and storage medium
CN113255435A
Recognition method and device based on medical instrument intelligent cabinet and electronic equipment
CN117078973A
Restaurant rapid cashier system
CN203812276U
