A system and method for obtaining remaining amount prompt information of dishes on a plate
By installing an image acquisition device and processor on the dinner plate and using OpenCV technology to process the image, the problem of inaccurate acquisition of remaining dishes in the restaurant is solved, the accuracy and efficiency of dish storage and raw material deployment are improved, and the restaurant logistics management cost is reduced. .
Patent Information
- Application Number
- CN202110303192.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-03-22
AI Technical Summary
Existing technology makes it difficult to accurately obtain the remaining quantity of restaurant dishes, resulting in inaccurate kitchen dish reserves and raw material procurement guidance, which increases restaurant logistics management costs.
By installing an image acquisition device and processor on the dinner plate, the image of the dish area in the dinner plate is collected, and OpenCV technology is used for image processing to obtain the dish amount and remaining amount prompt information to ensure the accuracy and efficiency of the kitchen dish reserve and raw material deployment.
It achieves accurate acquisition of the remaining amount of dishes, improves the accuracy of food preparation and the efficiency of automatic allocation of raw materials, and reduces restaurant logistics management costs.
Smart Images

Figure CN113240727B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic measurement, and specifically to a system and method for obtaining remaining amount prompt information of dishes on a plate. Background Art
[0002] In order to improve the restaurant's automated management capabilities, the remaining food quantity data is obtained in a timely manner to facilitate the kitchen to replenish and reserve the food. In the prior art, the remaining food quantity can be inferred from the food sales data, but since it is difficult to standardize the quantity of each dish, the inferred data will be inaccurate. Therefore, it is not convenient to obtain the actual consumption of the food, and it is impossible to provide guidance for the subsequent replenishment of food quantity and the purchase of food ingredients. Summary of the invention
[0003] The purpose of the present invention is to provide a system for obtaining information about the remaining amount of food on a plate, which can timely obtain the remaining amount of food by collecting images in the plate, ensure the reserve of food in the kitchen, improve the preparation accuracy of food ingredients, reduce the restaurant's logistics management costs, and improve the restaurant's automatic allocation efficiency of raw materials.
[0004] The purpose of the present invention is to provide a method for obtaining remaining food prompt information in a plate, which can timely obtain the remaining food amount by collecting images in the plate, ensure the reserve of food in the kitchen, and improve the preparation accuracy of food ingredients and the efficiency of automatic mixing of raw materials.
[0005] In one aspect of the present invention, a system for obtaining information about the remaining amount of food in a plate is provided. The plate can be placed on a placement surface and has an upper surface that can be horizontal to the placement surface. The upper surface forms a recessed portion that can hold food. The recessed portion has a recessed opening that intersects with the upper surface.
[0006] The system for obtaining remaining food information in a plate includes an image acquisition device and a processor.
[0007] The image acquisition device has an image acquisition end. The image acquisition end faces the upper surface and is located in the middle of the concave opening. The image acquisition end can acquire an image of the interior of the concave portion. The image of the interior of the concave portion includes an image of the edge of the concave opening of the concave portion. The image acquisition device can output the image of the interior of the concave portion.
[0008] The processor is connected to the image acquisition device and can receive the image inside the recessed portion. The processor acquires the image of the dish area and the image of the recessed portion area according to the image inside the recessed portion. The processor acquires the amount of the dish according to the image of the dish area, the geometric features of the recessed portion area, and the distance between the image acquisition end and the upper surface. The remaining amount of the dish is prompted based on the amount of the dish and the set dish threshold.
[0009] In another embodiment of the system for obtaining the remaining amount prompt information of the dish in the dinner plate of the present invention, the step of the processor obtaining the dish area image and the depressed area image according to the internal image of the depressed portion includes:
[0010] The concave area image is converted into a grayscale image using the cvtColor function of OpenCV.
[0011] Eliminate the grayscale image by filtering and smoothing it through the GaussianBlur Gaussian filter function of OpenCV to remove image noise in the concave area.
[0012] Use OpenCV's Canny function to find the edge contour curve of the dish and the edge contour curve of the sunken area in the denoised sunken area image.
[0013] The image of the dish area is obtained according to the edge contour curve of the dish. The image of the depressed area is obtained according to the edge contour curve of the depressed area.
[0014] In another embodiment of the system for obtaining remaining food information in a dinner plate of the present invention, the recessed portion includes a square or circular recessed mouth boundary and a square or circular recessed bottom boundary.
[0015] The image acquisition device is also configured to obtain an initial boundary image of the recessed opening and an initial boundary image of the recessed bottom surface when no food is placed in the recessed portion of the dinner plate.
[0016] The step of the processor obtaining the amount of the dish according to the dish area image, the geometric features of the concave area, and the distance between the image acquisition end and the upper surface also includes:
[0017] The processor projects the initial boundary image of the recessed mouth and the initial boundary image of the recessed bottom surface into the area of the recessed portion region image so that the initial boundary image of the recessed mouth overlaps with the recessed mouth edge image of the recessed portion region image.
[0018] The processor generates a plurality of scale projections between the initial boundary image of the concave opening and the initial boundary image of the concave bottom surface. The plurality of scale projections are evenly arranged along the trajectory of the initial boundary image of the concave opening. A plurality of longitudinal projection points are evenly divided in the extension direction of the scale projections. Each longitudinal projection point has longitudinal scale identification information.
[0019] The processor obtains the depth of the depressed portion corresponding to each longitudinal scale identification information according to the position of the longitudinal projection point, the geometric features of the depressed portion area, and the distance between the depressed portion area image and the image acquisition end.
[0020] The processor obtains multiple intersection points of the edge contour curve of the dish and the multiple scale projections, and obtains longitudinal projection points corresponding to the multiple intersection points.
[0021] The processor obtains the calibration dish quantity according to the longitudinal scale identification information corresponding to the longitudinal projection points corresponding to the multiple intersection points, and the depth of the recessed portion corresponding to the longitudinal scale identification information.
[0022] In another embodiment of the system for obtaining information about the remaining amount of food on a plate of the present invention, the system further includes:
[0023] A support beam is located in the direction of the dinner plate away from the placement surface. The extension direction of the support beam is parallel to any length or width extension direction of the recessed opening.
[0024] The image acquisition device is slidably arranged on the support beam and can slide from a first position to a second position. In the first position, the image acquisition end is located in the middle of the recessed opening. In the second position, the image acquisition end is located at the upper part of the edge of one side of the recessed opening.
[0025] A driving mechanism can slide the image acquisition device from a first position to a second position according to driving information.
[0026] The processor determines the difference between the calibration dish quantity and the initial dish quantity, and outputs a dish remaining quantity prompt message if it does not exceed the set value. If it exceeds, a driving message is generated and sent to the driving mechanism to place the image acquisition device at the second position.
[0027] After the image acquisition device is located at the second position, the image acquisition device re-acquires the image inside the recessed portion, and the processor obtains the re-acquired calibration dish quantity according to the re-acquired image inside the recessed portion.
[0028] In another embodiment of the system for obtaining the remaining amount prompt information of dishes in a plate of the present invention, the processor determines the current dish amount and the re-obtained calibration dish amount of the dish amount. If the current difference amount is greater than the initial difference amount, the dish amount is obtained according to the middle value between the calibration dish amount and the dish amount, and the remaining amount prompt information of the dish is obtained according to the dish amount and the set dish threshold.
[0029] If the current difference is less than the initial difference, the remaining dish prompt information is obtained based on the current dish quantity and the set dish threshold.
[0030] Another aspect of the present invention provides a method for obtaining remaining food information in a plate, wherein the plate can be placed on a placement surface and has an upper surface that is horizontal to the placement surface. The upper surface forms a recessed portion that can hold food. The recessed portion has a recessed opening that intersects with the upper surface.
[0031] The method for obtaining the remaining amount prompt information of the dish on the plate includes:
[0032] Step S101, an image acquisition device is used to acquire an internal image of the concave portion. The image acquisition device has an image acquisition end. The image acquisition end faces the upper surface and is located in the middle of the concave opening. The image acquisition end can acquire an internal image of the concave portion. The internal image of the concave portion includes an image of the concave opening edge of the concave portion.
[0033] In step S102, the processor can receive an image of the interior of the recessed portion.
[0034] Step S103, the processor obtains the dish area image and the depressed portion area image according to the internal image of the depressed portion.
[0035] Step S104, the processor obtains the amount of the dish according to the dish area image, the geometric features of the recessed area, and the distance between the image acquisition end and the upper surface.
[0036] Step S105, obtaining dish remaining reminder information according to the dish quantity and the set dish threshold.
[0037] In another embodiment of the method for obtaining the remaining amount prompt information of the dish on the plate of the present invention, step S103 includes:
[0038] Step S1031, converting the depression area image into a grayscale image through the cvtColor function of OpenCV.
[0039] Step S1032, eliminating the grayscale image filtering and smoothing processing by using the GaussianBlur Gaussian filter function of OpenCV to remove the image noise in the concave area.
[0040] Step S1033, searching for the edge contour curve of the dish and the edge contour curve of the sunken portion in the denoised sunken portion area image through the Canny function of OpenCV.
[0041] Step S1034, obtaining a dish area image according to the dish edge contour curve. Obtaining a depressed portion area image according to the depressed portion edge contour curve.
[0042] In another embodiment of the method for obtaining remaining food prompt information in a dinner plate of the present invention, the recessed portion includes a square or circular recessed mouth boundary and a square or circular recessed bottom boundary.
[0043] The image acquisition device is also configured to obtain an initial boundary image of the recessed opening and an initial boundary image of the recessed bottom surface when no food is placed in the recessed portion of the dinner plate.
[0044] Step S104 also includes:
[0045] The processor projects the initial boundary image of the recessed mouth and the initial boundary image of the recessed bottom surface into the area of the recessed portion region image so that the initial boundary image of the recessed mouth overlaps with the recessed mouth edge image of the recessed portion region image.
[0046] The processor generates a plurality of scale projections between the initial boundary image of the concave opening and the initial boundary image of the concave bottom surface. The plurality of scale projections are evenly arranged along the trajectory of the initial boundary image of the concave opening. A plurality of longitudinal projection points are evenly divided in the extension direction of the scale projections. Each longitudinal projection point has longitudinal scale identification information.
[0047] The processor obtains the depth of the depressed portion corresponding to each longitudinal scale identification information according to the position of the longitudinal projection point, the geometric features of the depressed portion area, and the distance between the depressed portion area image and the image acquisition end.
[0048] The processor obtains multiple intersection points of the edge contour curve of the dish and the multiple scale projections, and obtains longitudinal projection points corresponding to the multiple intersection points.
[0049] The processor obtains the calibration dish quantity according to the longitudinal scale identification information corresponding to the longitudinal projection points corresponding to the multiple intersection points, and the depth of the recessed portion corresponding to the longitudinal scale identification information.
[0050] In another embodiment of the method for obtaining the remaining amount prompt information of dishes on the plate of the present invention, step S105 includes:
[0051] The processor determines the difference between the calibration dish quantity and the initial dish quantity, and outputs a dish remaining reminder message if it does not exceed the set value. If it exceeds, a drive message is generated and sent to the drive mechanism so that the image acquisition device is located in the second position. In the first position, the image acquisition end is located in the middle of the concave opening. In the second position, the image acquisition is located at the upper part of one side edge of the concave opening.
[0052] After the image acquisition device is located at the second position, the image acquisition device re-acquires the image inside the recessed portion, and the processor obtains the re-acquired calibration dish quantity according to the re-acquired image inside the recessed portion.
[0053] In another embodiment of the method for obtaining the remaining amount prompt information of dishes on the plate of the present invention, step S105 includes:
[0054] The processor determines the current difference between the current dish quantity and the dish quantity. If the current difference is greater than the initial difference, the dish quantity is obtained according to the intermediate value between the calibration dish quantity and the dish quantity, and the dish remaining quantity prompt information is obtained according to the dish quantity and the set dish threshold.
[0055] If the current difference is less than the initial difference, the remaining dish prompt information is obtained based on the current dish quantity and the set dish threshold.
[0056] The following will further explain the characteristics, technical features, advantages and implementation methods of the wireless terminal data monitoring method in a clear and understandable manner in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a schematic diagram for explaining the composition of a system for obtaining remaining food amount prompt information on a plate in one embodiment of the present invention.
[0058] Figure 2 It is a schematic diagram for explaining the shape of the recessed portion in the dinner plate captured when the image capture device is in one position in one embodiment of the present invention.
[0059] Figure 3 It is a schematic diagram for explaining the shape of the recessed portion in the dinner plate captured when the image acquisition device is in one position in another embodiment of the present invention.
[0060] Figure 4 It is a schematic diagram for illustrating the composition of a system for obtaining remaining food amount prompt information on a plate in another embodiment of the present invention.
[0061] Figure 5 It is a schematic diagram for explaining the shape of the recessed portion in the dinner plate captured when the image acquisition device is in another position in one embodiment of the present invention.
[0062] Figure 6 It is a schematic diagram for explaining the internal structure of the dining bowl when the image acquisition device is in one position in another embodiment of the present invention.
[0063] Figure 7 It is a schematic diagram for explaining the internal structure of the dining bowl when the image acquisition device is in another position in another embodiment of the present invention.
[0064] Figure 8 It is a schematic diagram for illustrating the position of a camera in another embodiment of the present invention.
[0065] Fig. 9 It is a schematic diagram of the structure of various parts of a dinner plate in obtaining the amount of food in another embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to have a clearer understanding of the technical features, purposes and effects of the invention, the specific embodiments of the present invention are now described with reference to the accompanying drawings. The same reference numerals in the drawings represent components with the same structure or similar structures but the same functions.
[0067] In this article, "schematic" means "serving as an example, instance or illustration", and any diagram or implementation described as "schematic" in this article should not be interpreted as a more preferred or more advantageous technical solution. In order to make the drawings concise, each figure only schematically shows the parts related to the exemplary embodiment, and they do not represent the actual structure and true proportion of the product.
[0068] In one aspect of the present invention, a system for obtaining information about the remaining amount of food on a plate is provided. Figure 1 As shown, the dinner plate 19 can be placed on a placement surface 10 and has an upper surface 11 that can be level with the placement surface 10. The upper surface 11 forms a recessed portion 20 that can hold dishes. The recessed portion 20 has a recessed opening 21 that intersects with the upper surface.
[0069] The system for obtaining remaining food information on a plate of the present invention comprises: an image acquisition device 30 and a processor.
[0070] The image acquisition device 30 has an image acquisition end 31. The image acquisition end 31 faces the upper surface 11 and is located in the middle of the recessed opening 21. The image acquisition end 31 can acquire an image of the interior of the recessed portion 20. The image of the interior of the recessed portion 20 includes an image of the edge of the recessed opening 21 of the recessed portion 20. The image acquisition device 30 can output an image of the interior of the recessed portion 20. The image of the interior of the recessed portion 20 is as follows: Figure 2 As shown, it includes an image inside the recessed opening 21 , which includes an image of the recessed bottom 22 of the recessed portion 20 .
[0071] The processor is connected to the image acquisition device 30 and can receive the internal image of the recessed portion 20. The processor obtains the dish area image 90 and the area image of the recessed portion 20 according to the internal image of the recessed portion 20.
[0072] The processor obtains the amount of the dish according to the dish area image 90, the depression 20 area image and the distance A1 between the image acquisition end 31 and the upper surface 11. The dish remaining amount prompt information is obtained according to the dish amount and the set dish threshold. The set dish threshold is the dish amount value that needs to be added.
[0073] For example, when the distance A1 between the image acquisition end 31 and the upper surface 11 is set, the image of the recessed portion 20 can be obtained, and the Figure 2 The width of the middle side depth A2 can be used to obtain the depth of the dish 90 in the recessed portion 20 according to the position of the dish area image 90 at the side depth A2. The current dish volume (dish amount) can be obtained according to the dish depth and the internal geometric dimensions (length and width) of the recessed portion 20.
[0074] Furthermore, the average depth distance of the dish can be obtained based on the position of the middle line 93 of the boundary of the dish area image 90 at the side depth A2, and the current dish volume (dish quantity) can be obtained based on the average depth distance of the dish and the internal geometric dimensions (length and width) of the recessed portion 20.
[0075] Therefore, the present invention can obtain the current amount of food in the plate by collecting the dish area image 90, so that the amount of food can be replenished in time.
[0076] In another embodiment of the system for obtaining the remaining amount prompt information of the dish in the dinner plate of the present invention, the step of the processor obtaining the dish area image and the area image of the recessed portion 20 according to the internal image of the recessed portion 20 includes:
[0077] The image of the depression 20 region is converted into a grayscale image using the cvtColor function of OpenCV.
[0078] The grayscale image is smoothed by filtering through the GaussianBlur Gaussian filter function of OpenCV to remove the image noise in the concave portion 20 area.
[0079] The Canny function of OpenCV is used to find the edge contour curve of the dish and the edge contour curve of the recessed part 20 in the image of the recessed part 20 area after denoising.
[0080] The dish area image is obtained according to the edge contour curve of the dish. The depressed portion 20 area image is obtained according to the edge contour curve of the depressed portion 20. Thus, the recognition of the dish area image 90 can be made more accurate.
[0081] In another embodiment of the system for obtaining the remaining amount of food in a plate of the present invention, the recessed portion 20 includes a square or circular recessed opening 21 boundary and a square or circular recessed bottom boundary. That is, the recessed portion 20 of the plate is a rectangular parallelepiped, a cube, or a cylinder with a circular cross section.
[0082] The image acquisition device 30 is further configured to obtain an initial boundary image B1 of the recessed opening and an initial boundary image of the recessed bottom surface 22 when the recessed portion 20 of the dinner plate does not contain any food.
[0083] The processor further includes the step of obtaining the amount of the dish according to the dish area image, the geometric features of the recessed portion 20 area, the recessed portion 20 area image, and the distance between the image acquisition end 31 and the upper surface 11:
[0084] like Figure 3As shown, the processor projects the initial boundary image B1 of the depression mouth (the thick double-dotted line indicated in B1 in the figure) and the initial boundary image B2 of the depression bottom surface (i.e., the depression bottom 22) (the thick double-dotted line indicated in B2 in the figure) into the area of the depression portion 20 regional image, so that the initial boundary image B1 of the depression mouth coincides with the edge image of the depression mouth 21 of the depression portion 20 regional image.
[0085] like Figure 3 As shown, the processor generates a plurality of scale projections B3 between the initial boundary image B1 of the concave mouth and the initial boundary image B2 of the concave bottom surface. The plurality of scale projections B3 are evenly arranged along the trajectory of the initial boundary image B1 of the concave mouth. A plurality of longitudinal projection points B4 are evenly divided in the extension direction of the scale projections B3. Each longitudinal projection point B4 has longitudinal scale identification information.
[0086] like Figure 3 As shown, the processor obtains the depth of the depressed portion 20 corresponding to each longitudinal scale identification information according to the position of the longitudinal projection point B4, the geometric features of the depressed portion 20 area, and the distance between the depressed portion 20 area image and the image acquisition end 31.
[0087] The processor obtains a plurality of intersection points B5 of the dish edge contour curve 91 and the plurality of scale projections B3, and obtains longitudinal projection points corresponding to the plurality of intersection points.
[0088] The processor obtains the calibration dish quantity according to the longitudinal scale identification information corresponding to the longitudinal projection point B4 corresponding to the plurality of intersection points and the depth of the recessed portion 20 corresponding to the longitudinal scale identification information. For example, the dish edge contour curve 91 and the curves around the recessed portion 20 can be obtained by the above method, and the volume enclosed by the curved surface and the recessed portion 20 can be obtained by the parametric equation of the curved surface, and the calibration dish quantity can be obtained.
[0089] like Figure 4 As shown, in another embodiment of the system for obtaining remaining amount prompt information of dishes in a plate of the present invention, it also includes:
[0090] A support beam 40 is located in the direction where the dinner plate is away from the placement surface 10 . The extension direction of the support beam 40 is parallel to any length or width extension direction of the recessed opening 21 .
[0091] The image acquisition device 30 is slidably disposed on the support beam 40 and can slide from a first position C1 to a second position C2. In the first position, the image acquisition end 31 is located in the middle of the recessed opening 21. In the second position, the image acquisition end 31 is located at the upper part of one side edge of the recessed opening 21.
[0092] A driving mechanism can slide the image acquisition device 30 from a first position to a second position according to driving information.
[0093] The processor determines the difference between the calibration dish quantity and the initial dish quantity, and outputs a dish remaining quantity prompt message if it does not exceed the set value. If it exceeds, a drive message is generated and sent to the drive mechanism to make the image acquisition device 30 be located at the second position. Thus, when the dish is mainly in the form of a quick-cooked dish and is viscous, the image acquisition device 30 is located at the second position. Figure 5 When the angle is shown, it is more accurate to estimate the volume of dishes with large surface undulations when placed.
[0094] After the image acquisition device 30 is located at the second position, the image acquisition device 30 re-acquires the image inside the recessed portion 20. The processor obtains the re-acquired calibration dish quantity based on the re-acquired image inside the recessed portion 20.
[0095] In another embodiment of the system for obtaining the remaining amount prompt information of the dish in the dinner plate of the present invention, the processor determines the current difference between the calibration dish amount obtained again and the dish amount. If the current difference is greater than the initial difference, the dish amount is obtained according to the middle value between the calibration dish amount and the dish amount, and the remaining amount prompt information of the dish is obtained according to the dish amount and the set dish threshold.
[0096] If the current difference is less than the initial difference, the remaining dish prompt information is obtained based on the current dish quantity and the set dish threshold.
[0097] In a preferred embodiment of the system for obtaining the remaining amount of food on a plate of the present invention, a camera is externally installed above the plate on the dining table, wherein the camera installation position may be above the center of the plate or above the edge of the plate, as shown in the attached Figure 7 , 8 As shown,
[0098] The depth of the food on the four inner walls of the entire plate can be observed above the center of the plate, and the comprehensive judgment of the remaining food will be more accurate. However, the depth monitored by the left and right side walls will occupy fewer pixels and the accuracy will be slightly lower. At the same time, one camera can only monitor one plate.
[0099] The depth of the dishes on the three inner walls of the entire plate can be observed from the top of the plate. The depth of the left or right side walls will occupy more pixels, and the depth judgment of dishes on a single side wall will be more accurate. One camera can monitor two plates at the same time. If you want to cover the four inner walls of the entire plate, you can also install cameras on both sides of the plate. Figure 8 As shown, the camera 2 can monitor the upper, lower, and left inner walls of the dinner plate 1, and the upper, lower, and right inner walls of the dinner plate 2. If you want to monitor the right inner wall of the dinner plate 1 more accurately, you can install the camera 1.
[0100] Dish surplus analysis process:
[0101] The camera captures images of the inner side walls of each plate.
[0102] Convert the image to grayscale using OpenCV's cvtColor function.
[0103] The image is filtered and smoothed using OpenCV's GaussianBlur Gaussian filter function to eliminate noise.
[0104] The Canny function of OpenCV is used to search the upper edge contour curve of the plate and the contour curve of the dish in the denoised image.
[0105] like Fig. 9 As shown, based on the length and width of the plate outline in the above contour curve diagram, as well as the ratio of the distance between the camera and the upper edge (opening surface of the plate) and the lower edge (bottom of the plate), the position of the bottom of the plate in the actual picture and the contour curve (i.e., the lower edge contour, because the bottom of the plate is usually covered by food and cannot be directly observed, so it must be estimated) can be calculated, and its curve coordinates can be recorded.
[0106] The calculation method is as shown in the figure above. The height of the camera from the upper edge of the plate is h1, and the height from the lower edge of the plate is h2. The width of one side of the upper edge of the plate (one of the upper, lower, left, or right sides) is l2. The width of the plane where the upper edge of the plate is mapped to the lower edge of the plate as observed by the camera is l3. According to h2 / h1 being equal to l3 / l2, the value of l3 can be calculated. The actual width of the lower edge of the plate is l2. l1 is the visual length of the lower edge of the plate projected to the plane where the upper edge of the plate is located, and l2 / l3 is equal to l1 / l2. Therefore, the length of l1 can be calculated. l1 is the position of the lower edge corresponding to this side of the upper edge of the plate in the figure.
[0107] Assume that the camera is installed just above the right side of the dinner plate, the distance between the camera and the upper edge of the dinner plate is h1 = 50 cm, the depth of the dinner plate is 20 cm, that is, h2 = 70 cm, and the width of the dinner plate is l2 = 40 cm. According to h2 / h1 = l3 / l2, we get l3 = h2*l2 / h1 = 56 cm, and according to l2 / l3 = l1 / l2, we get l1 = l2*l2 / l3 = 28.6 cm. In this way, the projection length of the depth of the dinner plate (left side wall) on the plane of the upper edge of the dinner plate is l2-l1 = 11.4 cm. Assuming that the width of the plate l2 occupies 400 pixels in the image, the side wall projection length 11.4 cm should occupy 114 pixels. When calculating the remaining food, if the electronic ruler detects the outline of the dish at the 80 pixel position, the depth of the dish is 114-80=34 pixels, and the remaining food on this electronic ruler is 34 / 114=29.8% of the remaining food.
[0108] The calculation formula here is applicable to the case where the inner wall of the plate is perpendicular to the bottom of the plate, which is also the most common shape of plates on the market. For plates of other shapes, manual calibration can also be used for calculation, that is, when the position of the plate and the camera is fixed, first manually capture a photo, mark the specific positions of the upper and lower edges of the plate on the picture and record them, so that the calculation process here is omitted. Plates with vertical sides are also applicable to the manual calibration method.
[0109] Divide the four sides of the upper edge and the four sides of the lower edge of the dinner plate into n (a natural number greater than 2, the larger n is, the more electronic scales are involved in the calculation and the more accurate the final result is) equal parts, connect the equal division points of the upper and lower edges in pairs, and draw the electronic scale as the inner side wall of the dinner plate.
[0110] Start detection from the starting position of each electronic scale (the equal division point of the upper edge contour of the plate) to the end position (the equal division point of the lower edge contour of the plate). Stop detection when encountering the edge contour curve of the dish. Record the coordinates of the intersection point of the electronic scale and the edge contour curve of the dish. Calculate the length from the starting position to the intersection point. Subtract this length from the length of the electronic scale to get the height of the dish on this detection line. The height of the dish divided by the length of the electronic scale is the percentage of the depth of this dish.
[0111] Take the multiple dish depth percentages calculated on all sides of the plate during this observation, and take the average value as the remaining amount of the dish in the pot.
[0112] The present invention also uses a camera to capture pictures of dishes and analyze the remaining amount of dishes.
[0113] 1. No need to train on specific dishes, it is applicable to general dishes.
[0114] 2. It can accurately detect the distance around the dish from the edge of the tableware container, and can more accurately reflect the actual remaining amount of the dish.
[0115] 3. It can analyze the depth of dishes from the three-dimensional perspective of tableware containers, and can also use plane analysis to determine the remaining amount of dishes.
[0116] The container for holding dishes in the present invention includes but is not limited to a dinner plate with a significant depth, which may be in a square or other shapes. The method is also applicable to other tableware, and the bottom surface contour of the dinner plate is replaced with the center point of the tableware in the method for calculating the remaining amount of dishes, and the other calculation steps are the same.
[0117] Another aspect of the present invention provides a method for obtaining remaining food information in a plate, wherein the plate can be placed on a placement surface 10 and has an upper surface 11 that can be horizontal to the placement surface 10. The upper surface 11 forms a recessed portion 20 that can hold food. The recessed portion 20 has a recessed opening 21 that intersects with the upper surface.
[0118] The method for obtaining the remaining amount prompt information of the dish on the plate includes:
[0119] Step S101, an image of the interior of the recessed portion 20 is acquired by an image acquisition device 30. The image acquisition device 30 has an image acquisition end 31. The image acquisition end 31 faces the upper surface 11 and is located in the middle of the recessed opening 21. The image acquisition end 31 can acquire an image of the interior of the recessed portion 20. The image of the interior of the recessed portion 20 includes an edge image of the recessed opening 21 of the recessed portion 20.
[0120] In step S102, the processor can receive the internal image of the recessed portion 20.
[0121] Step S103 , the processor obtains the dish area image and the area image of the recessed portion 20 according to the internal image of the recessed portion 20 .
[0122] Step S104 , the processor obtains the amount of the dish according to the dish area image, the geometric features of the recessed portion 20 area, and the recessed portion 20 area image and the distance between the image acquisition end 31 and the upper surface 11 .
[0123] Step S105, obtaining dish remaining reminder information according to the dish quantity and the set dish threshold.
[0124] In another embodiment of the method for obtaining the remaining amount prompt information of the dish on the plate of the present invention, step S103 includes:
[0125] Step S1031, converting the image of the depressed portion 20 region into a grayscale image through the cvtColor function of OpenCV.
[0126] Step S1032 , eliminating the grayscale image filtering and smoothing processing by using the GaussianBlur Gaussian filter function of OpenCV to remove the image noise in the depressed portion 20 area.
[0127] Step S1033, searching for the edge contour curve of the dish and the edge contour curve of the recessed portion 20 in the image of the recessed portion 20 after denoising through the Canny function of OpenCV.
[0128] Step S1034, obtaining a dish area image according to the dish edge contour curve. Obtaining a recessed portion 20 area image according to the recessed portion 20 edge contour curve.
[0129] In another embodiment of the method for obtaining remaining food prompt information in a dinner plate of the present invention, the recessed portion 20 includes a square or circular recessed opening 21 boundary and a square or circular recessed bottom boundary.
[0130] The image acquisition device 30 is further configured to obtain an initial boundary image B1 of the recessed opening and an initial boundary image B2 of the recessed bottom surface when the recessed portion 20 of the dinner plate does not contain any food.
[0131] Step S104 also includes:
[0132] The processor projects the recess mouth initial boundary image B1 and the recess bottom surface initial boundary image B2 into the region of the recessed portion 20 regional image so that the recess mouth initial boundary image B1 overlaps with the recess mouth 21 edge image of the recessed portion 20 regional image.
[0133] The processor generates a plurality of scale projections B3 between the initial boundary image B1 of the concave mouth and the initial boundary image B2 of the concave bottom surface. The plurality of scale projections B3 are evenly arranged along the trajectory of the initial boundary image B1 of the concave mouth. A plurality of longitudinal projection points B4 are evenly divided in the extension direction of the scale projections B3. Each longitudinal projection point B4 has longitudinal scale identification information.
[0134] The processor obtains the depth of the depressed portion 20 corresponding to each longitudinal scale identification information according to the position of the longitudinal projection point B4, the geometric features of the depressed portion 20 area, and the distance between the depressed portion 20 area image and the image acquisition end 31.
[0135] The processor obtains multiple intersection points of the edge contour curve of the dish and the multiple scale projections B3, and obtains longitudinal projection points B4 corresponding to the multiple intersection points.
[0136] The processor obtains the calibration dish quantity according to the longitudinal scale identification information corresponding to the longitudinal projection point B4 corresponding to the plurality of intersection points and the depth of the recessed portion 20 corresponding to the longitudinal scale identification information.
[0137] In another embodiment of the method for obtaining the remaining amount prompt information of dishes on the plate of the present invention, step S105 includes:
[0138] The processor determines the difference between the calibration dish quantity and the initial dish quantity, and outputs a dish remaining reminder message if it does not exceed the set value. If it exceeds, a drive message is generated and sent to the drive mechanism to make the image acquisition device 30 be located in the second position. In the first position, the image acquisition end 31 is located in the middle of the concave opening 21. In the second position, the image acquisition is located at the upper part of the edge of one side of the concave opening 21.
[0139] After the image acquisition device 30 is located at the second position, the image acquisition device 30 re-acquires the internal image of the recessed portion 20. The processor obtains the current dish quantity according to the re-acquired internal image of the recessed portion 20.
[0140] In another embodiment of the method for obtaining the remaining amount prompt information of dishes on the plate of the present invention, step S105 includes:
[0141] The processor determines the current difference between the current dish quantity and the dish quantity. If the current difference is greater than the initial difference, the dish quantity is obtained according to the middle value between the calibration dish quantity and the dish quantity, and the dish remaining prompt information is obtained according to the dish quantity and the set dish threshold.
[0142] If the current difference is less than the initial difference, the remaining dish prompt information is obtained based on the current dish quantity and the set dish threshold.
[0143] It should be understood that although this specification is described according to various embodiments, not every embodiment contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
[0144] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A system for obtaining information about the remaining amount of food on a plate, characterized in that: The dinner plate can be placed on a placement surface and has an upper surface that can be level with the placement surface; the upper surface forms a recessed portion that can hold dishes; the recessed portion has a recessed opening that intersects with the upper surface; The system for obtaining the remaining amount prompt information of dishes on the plate includes: An image acquisition device having an image acquisition end; the image acquisition end faces the upper surface and is located in the middle of the recessed opening; the image acquisition end is capable of acquiring an image of the interior of the recessed portion; the image of the interior of the recessed portion includes an image of the recessed opening edge of the recessed portion; the image acquisition device is capable of outputting the image of the interior of the recessed portion; and a processor connected to the image acquisition device and capable of receiving the image inside the recessed portion; the processor acquires a dish area image and a recessed portion area image according to the image inside the recessed portion; the processor acquires a dish quantity according to the dish area image, the geometric features of the recessed portion area, and the distance between the recessed portion area image and the image acquisition end and the upper surface; and acquires dish remaining quantity prompt information according to the dish quantity and a set dish threshold; The concave portion includes a square or circular concave mouth boundary and a square or circular concave bottom boundary; The image acquisition device is further configured to: acquire an initial boundary image of the recessed opening and an initial boundary image of the recessed bottom surface when no food is placed in the recessed portion of the dinner plate; The step of the processor acquiring the amount of the dish according to the dish area image, the geometric features of the recessed area, and the recessed area image and the distance between the image acquisition end and the upper surface further includes: The processor projects the initial boundary image of the recessed mouth and the initial boundary image of the recessed bottom surface into the region of the recessed portion region image so that the initial boundary image of the recessed mouth overlaps with the recessed mouth edge image of the recessed portion region image; The processor generates a plurality of scale projections between the initial boundary image of the concave mouth and the initial boundary image of the concave bottom surface; the plurality of scale projections are evenly arranged along the trajectory of the initial boundary image of the concave mouth; a plurality of longitudinal projection points are evenly divided in the extension direction of the scale projections; each of the longitudinal projection points has longitudinal scale identification information; The processor acquires the depth of the depressed portion corresponding to each longitudinal scale mark information according to the position of the longitudinal projection point, the geometric features of the depressed portion area, and the distance between the depressed portion area image and the image acquisition end; The processor obtains a plurality of intersection points of the edge contour curve of the dish and the plurality of scale projections; and obtains longitudinal projection points corresponding to the plurality of intersection points; The processor obtains the calibration dish quantity according to the longitudinal scale identification information corresponding to the longitudinal projection points corresponding to the multiple intersection points, and the depth of the recessed portion corresponding to the longitudinal scale identification information.
2. The system for obtaining remaining food information on a plate according to claim 1, characterized in that: The step of the processor acquiring the dish area image and the depressed area image according to the depressed interior image comprises: The image of the concave region is converted into a grayscale image by using the cvtColor function of OpenCV; Eliminate the grayscale image filtering and smoothing process by using the GaussianBlur Gaussian filter function of OpenCV to remove the image noise in the concave area; Use OpenCV's Canny function to find the edge contour curve of the dish and the edge contour curve of the concave area in the denoised concave area image; A dish area image is obtained according to the dish edge contour curve; and a depressed portion area image is obtained according to the depressed portion edge contour curve.
3. The system for obtaining remaining food information on a plate according to claim 1, characterized in that: Also includes: A support beam, which is located in the direction of the dinner plate away from the placement surface; the extension direction of the support beam is parallel to any length or width extension direction of the recessed opening; The image acquisition device is slidably arranged on the support beam and can slide from a first position to a second position; in the first position, the image acquisition end is located in the middle of the recessed opening; in the second position, the image acquisition end is located at the upper part of one side edge of the recessed opening; a driving mechanism capable of sliding the image acquisition device from a first position to a second position according to driving information; The processor determines the initial difference between the calibrated dish quantity and the dish quantity, and outputs the dish remaining quantity prompt information if the difference does not exceed the set value; If exceeded, drive information is generated and sent to the drive mechanism, so that the image acquisition device is located at the second position; After the image acquisition device is located at the second position, the image acquisition device re-acquires the image inside the recessed portion; The processor obtains the re-acquired calibration dish quantity according to the re-acquired internal image of the recessed portion.
4. The system for obtaining remaining food information on a plate according to claim 3, characterized in that: The processor determines the current difference between the re-acquired calibration dish quantity and the dish quantity; if the current difference is greater than the initial difference, the dish quantity is acquired according to the intermediate value between the calibration dish quantity and the dish quantity, and the dish remaining quantity prompt information is acquired according to the dish quantity and the set dish threshold; If the current difference is less than the initial difference, the remaining dish prompt information is obtained according to the current dish quantity and the set dish threshold.
5. A method for obtaining remaining food information on a plate, characterized in that: The dinner plate can be placed on a placement surface and has an upper surface that can be level with the placement surface; the upper surface forms a recessed portion that can hold dishes; The recessed portion has a recessed opening intersecting with the upper surface; The method for obtaining the remaining amount prompt information of dishes on the plate includes: Step S101, acquiring an internal image of the concave portion by an image acquisition device; the image acquisition device has an image acquisition end; the image acquisition end faces the upper surface and is located in the middle of the concave opening; the image acquisition end can acquire an internal image of the concave portion; the internal image of the concave portion includes an image of the concave opening edge of the concave portion; Step S102, the processor can receive the internal image of the recessed portion; Step S103, the processor acquires a dish area image and a depressed area image according to the depressed interior image; Step S104, the processor obtains the amount of the dish according to the dish area image, the geometric features of the recessed area, and the distance between the recessed area image and the image acquisition end and the upper surface; Step S105, obtaining dish remaining reminder information according to the dish quantity and the set dish threshold; The concave portion includes a square or circular concave mouth boundary and a square or circular concave bottom boundary; The image acquisition device is further configured to: acquire an initial boundary image of the recessed opening and an initial boundary image of the recessed bottom surface when no food is placed in the recessed portion of the dinner plate; The step S104 also includes: The processor projects the initial boundary image of the recessed mouth and the initial boundary image of the recessed bottom surface into the region of the recessed portion region image so that the initial boundary image of the recessed mouth overlaps with the recessed mouth edge image of the recessed portion region image; The processor generates a plurality of scale projections between the initial boundary image of the concave mouth and the initial boundary image of the concave bottom surface; the plurality of scale projections are evenly arranged along the trajectory of the initial boundary image of the concave mouth; a plurality of longitudinal projection points are evenly divided in the extension direction of the scale projections; each of the longitudinal projection points has longitudinal scale identification information; The processor acquires the depth of the depressed portion corresponding to each longitudinal scale mark information according to the position of the longitudinal projection point, the geometric features of the depressed portion area, and the distance between the depressed portion area image and the image acquisition end; The processor obtains a plurality of intersection points of the edge contour curve of the dish and the plurality of scale projections; and obtains longitudinal projection points corresponding to the plurality of intersection points; The processor obtains the calibration dish quantity according to the longitudinal scale identification information corresponding to the longitudinal projection points corresponding to the multiple intersection points, and the depth of the recessed portion corresponding to the longitudinal scale identification information.
6. The method for obtaining remaining food information on a plate according to claim 5, characterized in that: The step S103 includes: Step S1031, converting the image of the concave region into a grayscale image by using the cvtColor function of OpenCV; Step S1032, eliminating the grayscale image filtering and smoothing processing by using GaussianBlur Gaussian filter function of OpenCV to remove the image noise in the concave area; Step S1033, searching for the edge contour curve of the dish and the edge contour curve of the sunken portion in the de-noised sunken portion region image by using the Canny function of OpenCV; Step S1034, obtaining a dish area image according to the dish edge contour curve; obtaining a recessed portion area image according to the recessed portion edge contour curve.
7. The method for obtaining remaining food information on a plate according to claim 5, characterized in that: The step S105 includes: The processor determines the initial difference between the calibration dish quantity and the dish quantity, and outputs the dish remaining prompt information if it does not exceed the set value; if it exceeds, generates driving information and sends it to the driving mechanism, so that the image acquisition device is located at the second position; when in the first position, the image acquisition end is located in the middle of the recessed opening; when in the second position, the image acquisition end is located at the upper part of one side edge of the recessed opening; After the image acquisition device is located at the second position, the image acquisition device re-acquires the image inside the recessed portion; the processor obtains the re-acquired calibration dish quantity according to the re-acquired image inside the recessed portion.
8. The method for obtaining remaining food information on a plate according to claim 7, characterized in that: The step S105 includes: The processor determines the current difference between the re-acquired calibration dish quantity and the dish quantity; if the current difference is greater than the initial difference, the dish quantity is acquired according to the intermediate value between the calibration dish quantity and the dish quantity, and the dish remaining quantity prompt information is acquired according to the dish quantity and the set dish threshold; If the current difference is less than the initial difference, the remaining dish prompt information is obtained according to the current dish quantity and the set dish threshold.
Citation Information
Patent Citations
Food adjusting method and device
CN110008829A
Cafeteria dish supplement monitoring method and system
CN110765985A
