Method, system, computer equipment and storage medium for detecting the neatness of food presentation

By combining target detection and image recognition technology, the problem of uniformity detection of food presentation is solved, accurate judgment of food presentation direction is achieved, customer experience and management efficiency are improved, and the robustness of the system is enhanced.

CN113744213BActive Publication Date: 2024-09-13SHANGHAI MININGLAMP ARTIFICIAL INTELLIGENCE GRP CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110968841.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2024-09-13
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

There is a lack of effective methods in the existing technology to detect the orderliness of food presentation, which affects the aesthetics of food and customer experience in the catering industry.

Method used

Using a method that combines target detection and image recognition technology, by acquiring food images, the target detection algorithm and convolutional neural network are used to determine the consistency of the plate placement direction, reducing the misjudgment rate and improving detection accuracy.

Benefits of technology

It achieves real-time detection of food plating directions, improves customer experience and management efficiency of the catering industry, reduces misjudgment rates, and enhances the robustness of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113744213B
    Figure CN113744213B
Patent Text Reader

Abstract

The present application relates to a method, system, computer equipment and storage medium for detecting the neatness of dish plating, wherein the method for detecting the neatness of dish plating includes: a target dish image acquisition step, acquiring the original image of the target dish based on an image acquisition system; a target area acquisition step, performing target detection on the original image, determining whether the target area is included in the original image and acquiring the target area; a plating neatness detection step, using a target detection algorithm and / or an image recognition system to respectively detect the plating direction of the target dish in the target area, and combining the detection results of the target detection algorithm and the image recognition system to determine whether the plating direction of the target dish is consistent. Through the present application, the consistency of the plating direction of the dish at the dish outlet is determined by combining target detection and image recognition, and the neatness of the target dish is detected in real time, which effectively reduces the misjudgment rate and improves the accuracy of the detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method, system, computer device and computer-readable storage medium for detecting the neatness of dish presentation. Background Art

[0002] Food is the most important thing for people. In the catering industry, the appearance of food sometimes affects customers' choices to a certain extent. Food that looks good often makes people happy, which not only gives customers a good dining experience, but also increases the frequency of store visits and certain economic benefits. Good plating requires the main body to be beautiful and neat, with a sense of unity and neatness. For example: checking whether dumplings are in order can help the store count the number of dumplings when they are served, and on the other hand, it can also increase the overall beauty of a plate of dumplings and give customers a good dining experience.

[0003] However, currently, no effective solution has been proposed for how to detect the neatness of food in the related technology. Summary of the invention

[0004] The embodiments of the present application provide a method, system, computer device and computer-readable storage medium for detecting the neatness of dish presentation, so as to at least solve the problem of detecting the neatness of dishes in the related art.

[0005] In a first aspect, an embodiment of the present application provides a method for detecting the uniformity of dish presentation, comprising:

[0006] a target food image acquisition step, acquiring an original image of the target food based on an image acquisition system;

[0007] a target region acquisition step, performing target detection on the original image, determining whether the original image includes a target region and acquiring the target region;

[0008] The plating uniformity detection step uses a target detection algorithm and / or an image recognition system to respectively detect the plating directions of the target dishes in the target area, and determines whether the plating directions of the target dishes are consistent based on the detection results of the target detection algorithm and the image recognition system.

[0009] Based on the above steps, the embodiment of the present application combines target detection and image recognition technology to judge the consistency of the dish presentation direction of the dishes at the dish outlet, and detects in real time whether the target dishes are neat, such as whether the dumplings are in order, which helps consumers form a unified perception of the dishes and effectively improves the customer experience.

[0010] In some embodiments, the step of detecting the uniformity of the dish arrangement further comprises:

[0011] a target detection step, obtaining multiple detection frames of the target food based on a target detection algorithm, calculating and counting the relative angle between each detection frame and a preset horizontal axis or a preset vertical axis, and determining whether the directions of the target food are consistent based on the relative angles;

[0012] An image recognition step, using a pre-trained convolutional neural network image recognition model to classify the image of the target area, and judging whether the directions of the target food in the target area are consistent based on the classification results;

[0013] A combined judgment step is performed to obtain the judgment results of the target detection step and the image recognition step, and the detection results are corrected based on a preset judgment rule to determine whether the directions of the target dishes are consistent.

[0014] Based on the above steps, the embodiment of the present application utilizes a target detection algorithm and a neural network image recognition model to process images quickly and efficiently; compared to simply using a convolutional neural network image recognition model, this embodiment has a lower dependence on data, is more robust, and is not affected by complex scenes.

[0015] In some embodiments, the preset judgment rule is specifically:

[0016] If both the target detection step and the image recognition step determine that the directions of the target food are consistent, then the directions of the target food are determined to be consistent;

[0017] If the target detection step and / or the image recognition step determines that the direction of the target food is inconsistent, then it is determined that the direction of the target food is inconsistent.

[0018] Based on the above judgment rules, the embodiment of the present application effectively reduces the misjudgment rate and improves the accuracy of the detection results.

[0019] In some embodiments, the target area acquisition step further comprises:

[0020] a target region detection step, performing target detection on the original image to determine whether the original image includes the target region;

[0021] The target area cropping step, if the original image includes the target area, obtains the target area by cropping the original image; otherwise, returns to the target food image acquisition step.

[0022] In a second aspect, an embodiment of the present application provides a food plating neatness detection system, comprising:

[0023] A target food image acquisition module, which acquires an original image of the target food based on an image acquisition system;

[0024] A target region acquisition module performs target detection on the original image, determines whether the original image includes a target region, and acquires the target region;

[0025] The plating uniformity detection module uses a target detection algorithm and / or an image recognition system to detect the plating direction of the target food in the target area respectively, and determines whether the plating direction of the target food is consistent based on the detection results of the target detection algorithm and the image recognition system.

[0026] Based on the above modules, the embodiment of the present application combines target detection and image recognition to judge the consistency of the dish presentation direction of the dishes at the dish outlet, and detects in real time whether the target dishes are standardized, such as whether the dumplings are in order, which helps consumers form a unified perception of the dishes and effectively improves the customer experience.

[0027] In some embodiments, the plate neatness detection module further comprises:

[0028] A target detection module, which obtains multiple detection frames of the target food based on a target detection algorithm, calculates and counts the relative angle between each detection frame and a preset horizontal axis or a preset vertical axis, and determines whether the directions of the target food are consistent based on the relative angles;

[0029] An image recognition module, which uses a pre-trained convolutional neural network image recognition model to classify the image of the target area, and determines whether the directions of the target food in the target area are consistent based on the classification results;

[0030] A combined judgment module is provided to obtain the judgment results of the target detection module and the image recognition module, and to modify the detection results based on a preset judgment rule to judge whether the directions of the target dishes are consistent.

[0031] Based on the above modules, the embodiment of the present application utilizes a target detection algorithm and a neural network image recognition model to process images quickly and efficiently. Compared with simply using a convolutional neural network image recognition model, this embodiment has a lower dependence on data, is more robust, and is not affected by complex scenes.

[0032] In some embodiments, the preset judgment rule is specifically:

[0033] If the target detection module and the image recognition module both determine that the directions of the target food are consistent, then the directions of the target food are determined to be consistent;

[0034] If the target detection module and / or the image recognition module determines that the direction of the target food is inconsistent, then it is determined that the direction of the target food is inconsistent.

[0035] Based on the above judgment rules, the embodiment of the present application effectively reduces the misjudgment rate and improves the accuracy of the detection results.

[0036] In some embodiments, the target area acquisition module further comprises:

[0037] A target region detection module performs target detection on the original image to determine whether the original image includes the target region;

[0038] The target area cropping module, if the original image includes the target area, obtains the target area by cropping the original image; otherwise, returns to execute the target food image acquisition module.

[0039] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for detecting the uniformity of dish arrangement as described in the first aspect above is implemented.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for detecting the uniformity of dish arrangement as described in the first aspect above.

[0041] Compared with the related art, the method, system, computer device and computer-readable storage medium for detecting the neatness of food arrangement provided in the embodiments of the present application specifically relate to a deep learning technology. By judging the consistency of the arrangement direction of food at the food outlet, it is possible to detect in real time whether the target food is arranged neatly, which helps consumers to form a unified perception of the food. The present application combines target detection and image recognition to detect target food at the food outlet, has high robustness and effectively improves detection accuracy.

[0042] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0044] Figure 1 is a flow chart of a method for detecting the uniformity of dish presentation according to an embodiment of the present application;

[0045] Figure 2 is a flow chart of a method for detecting the neatness of dish arrangement according to a preferred embodiment of the present application;

[0046] Figure 3 is a schematic diagram of a target detection frame according to an embodiment of the present application;

[0047] Figure 4 is a schematic diagram of Shunzai dumplings according to a preferred embodiment of the present application;

[0048] Figure 5 is a schematic diagram of non-sequential dumplings according to a preferred embodiment of the present application;

[0049] Figure 6 It is a structural block diagram of a food plating neatness detection system according to an embodiment of the present application.

[0050] in:

[0051] 1. Target food image acquisition module; 2. Target area acquisition module;

[0052] 3. Plate arrangement neatness detection module; 201. Target area detection module;

[0053] 202, target area cropping module; 301, target detection module; 302, image recognition module;

[0054] 303. Combination judgment module. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated 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 intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0056] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as the content disclosed in this application is insufficient.

[0057] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0058] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0059] With the development of convolutional neural networks, image recognition technology has developed rapidly in recent years, especially in the field of computer vision. In the field of images, target areas can be detected through target detection, and the detected target areas can be classified sequentially through image classification. This application proposes a new method for detecting the neatness of food plating based on target detection and image classification.

[0060] The present application provides a method for detecting the uniformity of dish presentation. Figure 1 is a flow chart of a method for detecting the uniformity of dish presentation according to an embodiment of the present application, with reference to Figure 1 As shown, the process includes the following steps:

[0061] In the target food image acquisition step S1, an original image of the target food is acquired based on an image acquisition system; specifically, the target food may be placed at a designated location, such as a food outlet, or may pass through a designated location, such as a food delivery line. It is worth noting that in the target food image acquisition step S1, if the original image is a damaged image, the image acquisition system re-reads a new image.

[0062] The target region acquisition step S2 performs target detection on the original image, determines whether the original image includes the target region, and acquires the target region. The target region acquisition step S2 specifically includes:

[0063] Target area detection step S201, performing target detection on the original image to determine whether the original image includes the target area;

[0064] In the target area cropping step S202, if the original image includes the target area, the target area is obtained by cropping the original image; otherwise, the process returns to the target food image acquisition step S1 to re-read a new image.

[0065] In the plating uniformity detection step S3, a target detection algorithm and / or an image recognition system are used to detect the plating directions of the target dishes in the target area respectively, and based on the detection results of the target detection algorithm and the image recognition system, it is determined whether the plating directions of the target dishes are consistent.

[0066] It is worth noting that the above target area acquisition step S2 also includes an image preprocessing step, and the image preprocessing includes but is not limited to image enhancement, denoising, mirroring, homogenization, stretching and other operations to facilitate detection.

[0067] Based on the above steps, the embodiment of the present application combines target detection and image recognition to determine the consistency of the dish presentation direction of the food at the food outlet, and detects in real time whether the target food is neat, such as whether the dumplings are in order. If not, the relevant person in charge is reminded to make adjustments, which helps consumers form a unified perception of the food and effectively improves customer experience.

[0068] In practical applications, when detecting the neatness of food arrangement, one can consider using only methods based on target detection algorithms or image recognition systems for target classification. However, detection based only on target detection algorithms may result in misjudgment. In addition, the convolutional neural network image recognition model in the image recognition system is highly dependent on data and has poor robustness.

[0069] Based on the above considerations, the plating uniformity detection step S3 of this embodiment further includes:

[0070] In the target detection step S301, multiple detection frames of the target food are obtained based on the target detection algorithm, and the relative angle between each detection frame and a preset horizontal axis or a preset vertical axis is calculated and counted, and whether the direction of the target food is consistent is judged based on the relative angle; specifically, the judgment is made based on the angle between the long side and / or short side of the detection frame and the preset horizontal axis and / or preset vertical axis.

[0071] Image recognition step S302, using a pre-trained convolutional neural network image recognition model to classify the target area, and judging whether the directions of the target food in the target area are consistent based on the classification results;

[0072] Combine the judgment step S303, obtain the judgment results of the target detection step S301 and the image recognition step S302, correct the detection results based on a preset judgment rule, and judge whether the direction of the target food is consistent. Among them, the preset judgment rule is specifically: if the target detection step S301 and the image recognition step S302 both judge that the direction of the target food is consistent, then the direction of the target food is judged to be consistent; if the target detection step S301 and / or the image recognition step S302 judge that the direction of the target food is inconsistent, then the direction of the target food is judged to be inconsistent. Based on the above judgment rules, the embodiment of the present application effectively reduces the misjudgment rate and improves the accuracy of the detection results.

[0073] Based on the above steps, the embodiment of the present application uses the target detection algorithm and the neural network image recognition model to process images quickly and efficiently; compared with the simple use of the convolutional neural network image recognition model, this embodiment has a lower dependence on data, strong robustness, and is not affected by complex scenes. By combining the judgment results of the two, it is possible to accurately judge whether the directions of the dishes are consistent, thereby selectively processing the irregular dishes.

[0074] In some of the embodiments, the target detection step S301 also includes a target food statistics step, which counts the number of individual food items detected in the same direction, such as the number of dumplings in the figure, so as to generate a statistical report on a certain type of target food for each device every day, and perform analysis to facilitate management.

[0075] The preferred embodiment of the present application is described and illustrated below. In the preferred embodiment, the method for detecting the uniformity of dish presentation is applied to detecting the uniformity of dumplings at the food outlet, specifically judging the uniformity based on whether the dumplings are in the same order (in the same direction).

[0076] Figure 2 is a flow chart of a method for detecting the uniformity of dish presentation according to a preferred embodiment of the present application. Figure 2 As shown, the method for detecting the uniformity of dish arrangement comprises the following steps:

[0077] Step S401: configuring an image acquisition system, the image acquisition system including a camera and an image acquisition device.

[0078] Step S402: Read the dumpling image.

[0079] Step S403: Determine whether the image is damaged. If so, return to step S402 to read a new image.

[0080] Step S404: If there is no damage, pre-process the collected image. The specific image pre-processing method is referred to above and will not be described in detail here.

[0081] Step S405: Perform target detection processing on the image using a target detection algorithm.

[0082] Step S406: Determine whether there is an object of interest in the image. If there is no object, return to step S402 to read a new image.

[0083] Step S407: cropping the target area using target detection.

[0084] Step S408: After the target areas to be detected are subjected to corresponding image preprocessing, sequential detection is performed based on the target detection algorithm and the image recognition system, and the judgment result is output. The sequential detection based on the target detection algorithm is specifically as follows: statistics are collected for each target detection result. Figure 3 The angle between the long and short sides of the detection box and the horizontal direction (with the horizontal direction as the horizontal axis) is used to determine whether it is a straight crop and count the number of dumplings in each direction. The image recognition system is implemented based on the residual network resnet18. The residual network resnet18 consists of 17 convolutional layers and 1 fully connected layer. The cross-layer connection in the residual network can make the network deeper and there will be no gradient diffusion phenomenon. In order to enable the network to have the ability to recognize straight crops, the network needs to be trained. The network is trained using a certain training set. The images used in the training set are images that only contain plates, such as Figure 4-5 As shown in the figure, the noise information of the image is greatly reduced. In addition, the images used in the training set have been subjected to image enhancement and image size setting in advance, where the image enhancement methods include: random rotation, random cropping, random blurring, and color enhancement. Image enhancement makes the image style richer. By setting the image size, the width and height of the training set images are clustered and counted to select the appropriate width and height.

[0085] The specific judgment results are combined with the detection results based on the target detection algorithm and the image recognition system. The specific combination principles are as follows:

[0086] If the detection result based on the target detection algorithm is judged as being in the same order, and the detection result based on the image recognition system is not in the same order, then the judgment result is not in the same order;

[0087] If the detection result based on the target detection algorithm is judged as non-consecutive stubble, and the detection result based on the image recognition system is non-consecutive stubble, then the judgment result is non-consecutive stubble;

[0088] If the detection result based on the target detection algorithm is judged as non-consecutive stubble, and the detection result based on the image recognition system is consistent stubble, then the judgment result is non-consecutive stubble;

[0089] If the detection result based on the target detection algorithm is judged to be in a continuous pattern, and the detection result based on the image recognition system is in a continuous pattern, then the judgment result is in a continuous pattern.

[0090] Step S409: If the judgment result output is not in order, it will be announced through the voice system and the staff will be reminded to carry out relevant processing.

[0091] Based on the above steps, this embodiment can detect in real time whether the dumplings are being served in the order of the food outlet of the dumpling store. When it is detected that the dumplings are not being served in the order of the food outlet, a voice announcement will be made automatically to remind the staff to adjust the food. Furthermore, this embodiment can also generate a report of all the products served by each device every day by counting the number of dumplings for analysis.

[0092] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0093] This embodiment also provides a food plating neatness detection system, which is used to implement the above-mentioned embodiments and preferred implementations, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, it is also possible and conceivable to implement it in hardware, or in a combination of software and hardware.

[0094] Figure 6 is a structural block diagram of a food arrangement neatness detection system according to an embodiment of the present application, with reference to Figure 6 As shown, the system includes a target food image acquisition module 1, a target area acquisition module 2 and a plate arrangement neatness detection module 3, wherein:

[0095] The target food image acquisition module 1 acquires the original image of the target food based on an image acquisition system; specifically, the target food can be placed at a designated location or pass through a designated location, such as a food delivery line. It is worth noting that in the target food image acquisition module, if the original image is a damaged image, the image acquisition system re-reads a new image.

[0096] The target area acquisition module 2 performs target detection on the original image, determines whether the original image includes the target area and acquires the target area; wherein, the target area acquisition module 2 includes: a target area detection module 201, performs target detection on the original image, determines whether the original image includes the target area; a target area cropping module 202, if the original image includes the target area, acquires the target area by cropping the original image; otherwise, returns to execute the target food image acquisition module. It is worth noting that the above-mentioned target area acquisition module also includes an image preprocessing module, and the image preprocessing includes but is not limited to image enhancement, denoising, mirroring, homogenization, stretching and other operations to facilitate detection.

[0097] The plating uniformity detection module 3 uses a target detection algorithm and / or an image recognition system to detect the plating direction of the target food in the target area, and determines whether the plating direction of the target food is consistent based on the detection results of the target detection algorithm and the image recognition system.

[0098] Among them, the plating neatness detection module 3 includes: a target detection module 301, which obtains multiple detection frames of the target food based on the target detection algorithm, calculates and counts the relative angle between each detection frame and a preset horizontal axis or preset vertical axis, and judges whether the direction of the target food is consistent based on the relative angle; specifically, the judgment is made based on the angle between the long side and / or short side of the detection frame and the preset horizontal axis and / or preset vertical axis. An image recognition module 302, which uses a pre-trained convolutional neural network image recognition model to classify the target area, and judges whether the direction of the target food in the target area is consistent based on the classification result; a combined judgment module 303, which obtains the judgment results of the target detection module 301 and the image recognition module 301, corrects the detection results based on a preset judgment rule, and judges whether the direction of the target food is consistent. Specifically, the preset judgment rule is: if the target detection module 301 and the image recognition module 302 both judge that the direction of the target food is consistent, then the direction of the target food is judged to be consistent; if the target detection module 301 and / or the image recognition module 302 judge that the direction of the target food is inconsistent, then the direction of the target food is judged to be inconsistent. Based on the above judgment rules, the embodiment of the present application effectively reduces the misjudgment rate and improves the accuracy of the detection results.

[0099] Therefore, the plate arrangement neatness detection module 3 of the embodiment of the present application uses the target detection algorithm and the neural network image recognition model to process images quickly and efficiently; compared with the simple use of the convolutional neural network image recognition model, this embodiment has a lower dependence on data, strong robustness, and is not affected by complex scenes. By combining the judgment results of the two, it is possible to accurately judge whether the directions of the dishes are consistent, thereby selectively processing the irregular dishes.

[0100] Based on the above modules, the embodiment of the present application combines target detection and image recognition to judge the consistency of the dish presentation direction of the dishes at the dish outlet, and detects in real time whether the target dishes are standardized, such as whether the dumplings are in order. If not, the relevant person in charge is reminded to make adjustments, which helps consumers form a unified perception of the dishes and effectively improves customer experience.

[0101] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0102] In addition, combined Figure 1 The described method for detecting the neatness of dish arrangement in the embodiment of the present application can be implemented by a computer device. The computer device may include a processor and a memory storing computer program instructions. Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present application.

[0103] Among them, the memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a specific embodiment, the memory is a non-volatile memory. In a specific embodiment, the memory includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0104] The memory may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor.

[0105] The processor implements any one of the meal arrangement neatness detection methods in the above-mentioned embodiments by reading and executing computer program instructions stored in the memory.

[0106] In addition, in combination with the method for detecting the uniformity of dish presentation in the above embodiments, the present application embodiment may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the methods for detecting the uniformity of dish presentation in the above embodiments is implemented.

[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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 specification.

[0108] The above-mentioned 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 invention patent. 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 patent of the present application shall be subject to the attached claims.

Claims

1. A method for detecting the neatness of food presentation. It is characterized in that include: A target food image acquisition step, acquiring an original image of the target food; a target region acquisition step, performing target detection on the original image, determining whether the original image includes the target region and acquiring the target region by cropping the original image, wherein the target region acquisition step also includes an image preprocessing step, and the image preprocessing includes image enhancement operation, denoising operation, mirror operation, homogenization operation, and stretching operation, so as to facilitate detection; a plating neatness detection step, using a target detection algorithm and an image recognition system to detect the plating directions of the target dishes in the target area respectively, and judging whether the plating directions of the target dishes are consistent based on the detection results of the target detection algorithm and the image recognition system, wherein the image recognition system is implemented based on a residual network resnet18, and the residual network resnet18 is trained using a training set consisting of images containing only dishes; Wherein, the step of detecting the uniformity of the plate arrangement further comprises: a target detection step, obtaining multiple detection frames of the target food based on a target detection algorithm, calculating and counting the relative angles between the long side and / or the short side of each detection frame and a preset horizontal axis or a preset vertical axis, and determining whether the directions of the target food are consistent based on the relative angles; An image recognition step, using a pre-trained convolutional neural network image recognition model to classify the image of the target area, and judging whether the directions of the target food in the target area are consistent based on the classification results; A combined judgment step is performed to obtain the judgment results of the target detection step and the image recognition step, and the detection results are corrected based on a preset judgment rule to determine whether the directions of the target dishes are consistent. The preset judgment rule is specifically: If both the target detection step and the image recognition step determine that the directions of the target food are consistent, then the directions of the target food are determined to be consistent; If the target detection step and / or the image recognition step determines that the direction of the target food is inconsistent, then it is determined that the direction of the target food is inconsistent.

2. The method for detecting the uniformity of dish presentation according to claim 1, It is characterized in that The target area acquisition step further comprises: a target area detection step, performing target detection on the original image to determine whether the original image includes the target area; The target area cropping step, if the original image includes the target area, obtains the target area by cropping the original image; otherwise, returns to the target food image acquisition step.

3. A food plating neatness detection system, It is characterized in that include: A target food image acquisition module is used to acquire the original image of the target food; A target region acquisition module performs target detection on the original image, determines whether the original image includes a target region, and acquires the target region by cropping the original image. The target region acquisition module also includes an image preprocessing module. The image preprocessing includes image enhancement operation, denoising operation, mirror operation, homogenization operation, and stretching operation to facilitate detection. The plating neatness detection module detects the plating directions of the target dishes in the target area by using the target detection algorithm and the image recognition system, and determines whether the plating directions of the target dishes are consistent based on the detection results of the target detection algorithm and the image recognition system. The image recognition system is implemented based on the residual network resnet18, and the residual network resnet18 is trained using a training set consisting of images containing only dishes; Wherein, the plate arrangement neatness detection module further comprises: A target detection module, which obtains multiple detection frames of the target food based on a target detection algorithm, calculates and counts the relative angles between the long side and / or the short side of each detection frame and a preset horizontal axis or a preset vertical axis, and determines whether the directions of the target food are consistent based on the relative angles; An image recognition module, which uses a pre-trained convolutional neural network image recognition model to classify the image of the target area, and determines whether the directions of the target food in the target area are consistent based on the classification results; The combined judgment module obtains the judgment results of the target detection module and the image recognition module, and modifies the detection results based on a preset judgment rule to determine whether the directions of the target food are consistent. The preset judgment rule is specifically: If the target detection module and the image recognition module both determine that the directions of the target food are consistent, then the directions of the target food are determined to be consistent; If the target detection module and / or the image recognition module determines that the direction of the target food is inconsistent, then it is determined that the direction of the target food is inconsistent.

4. The food arrangement neatness detection system according to claim 3, It is characterized in that The target area acquisition module further comprises: A target region detection module performs target detection on the original image to determine whether the original image includes the target region; The target area cropping module, if the original image includes the target area, obtains the target area by cropping the original image; otherwise, returns to execute the target food image acquisition module.

5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method for detecting the neatness of dish arrangement as claimed in claim 1 or 2 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for detecting the uniformity of dish arrangement as claimed in claim 1 or 2 is implemented.

Citation Information

Patent Citations

  • Parking image-based data processing method and system for vehicle

    CN108563993A

  • Photo background similarity clustering method based on convolutional neural network and computer

    CN110569878A

  • Target detection model training method and device, storage medium and computer equipment

    CN111241947A

  • Container image screening method, computing equipment and storage medium

    CN111798446A

  • Garbage detection and classification method and device based on deep learning

    CN112232246A