Modeling, cooking and food display method, electronic equipment and readable storage medium

By acquiring food images in smart kitchen appliances and establishing and improving three-dimensional models, the problem of dead corners in three-dimensional food modeling in closed equipment is solved, achieving more complete food shape information acquisition and improving cooking accuracy.

CN118570361APending Publication Date: 2024-08-30GUANGDONG MIDEA KITCHEN APPLIANCES MFG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310190968.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In closed smart kitchen appliances, due to limitations in hardware structure and camera installation location, there are blind areas that cannot be perceived in the 3D modeling of food, resulting in incomplete 3D modeling of food and inability to accurately reflect the structural information of the food.

Method used

By obtaining images of food, an initial three-dimensional model is established, and the data information of known areas is used to fill in the missing areas, improve the three-dimensional model, and ensure the continuity, non-mutation and spatial closure of the model, thereby obtaining more complete structural information.

Benefits of technology

By filling in missing areas, the obtained three-dimensional model is more complete than the initial model built directly based on images, and can more accurately analyze and process the shape and volume of food, improving the accuracy of the cooking process and the clarity of food presentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570361A
    Figure CN118570361A
Patent Text Reader

Abstract

The invention discloses a modeling method, a cooking method, a food display method, electronic equipment and a readable storage medium. The modeling method comprises the following steps: acquiring a shot image of food; establishing a three-dimensional model corresponding to the food based on the image; and in response to the existence of the missing area in the stereoscopic model, filling the missing area based on the data information of the known area in the stereoscopic model so as to perfect the stereoscopic model. In this way, the complete three-dimensional model of the food is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of three-dimensional modeling, and in particular to a modeling, cooking, food display method, electronic device and readable storage medium. Background Art

[0002] As three-dimensional technology matures, it is applied to more and more technical fields. In the field of food cooking, in order to meet people's increasingly rich sensory needs and to make the control of the cooking process more precise, applying three-dimensional technology to the field of food cooking has become a technical problem that technicians are eager to solve. Among the current smart kitchen appliances, there are some closed-structure smart kitchen appliances, such as microwave ovens, ovens or steam ovens. In these closed devices, sometimes limited by factors such as the hardware structure of the cooking device, the camera installation position or the camera shooting angle, the information collected by the camera and other image acquisition devices often cannot fully present the complete state of the food in the cooking device, and there is a high possibility of blind spots in the perception of the food. Sometimes, due to the limitation of the size of the back cavity of the cooking device, the food in the cooking device cavity may be placed more closely, so that the food will block each other, increase the area where the food cannot be perceived, and form a blind spot area. For these areas that cannot be perceived, when constructing a three-dimensional model of the food, it will cause missing areas in the three-dimensional modeling of the food, and the structural information of the food cannot be fully reflected. Summary of the invention

[0003] The main purpose of this application is to provide a modeling, cooking, food display method, electronic device and readable storage medium, which can solve the technical problem that the unperceivable area affects the three-dimensional modeling of food.

[0004] To solve the above technical problems, the first technical solution adopted by the present application is to provide a modeling method. The method includes obtaining a photographed image of food; establishing a three-dimensional model corresponding to the food based on the image; and in response to the presence of a missing area in the three-dimensional model, filling the missing area based on data information of a known area in the three-dimensional model to improve the three-dimensional model.

[0005] In order to solve the above technical problems, the second technical solution adopted by the present application is to provide a cooking method. The method is applied to a cooking device, which includes an image acquisition module. The method includes controlling the image acquisition module to acquire images of food in response to the start of the cooking process to obtain a photographed image of the food; establishing a three-dimensional model corresponding to the food based on the image; in response to the presence of missing areas in the three-dimensional model, filling the missing areas based on data information of known areas in the three-dimensional model to improve the three-dimensional model; and determining corresponding cooking steps according to the three-dimensional model to cook the food.

[0006] In order to solve the above technical problems, the third technical solution adopted in the present application is: the method is applied to a cooking device, which includes an image acquisition module. The method includes controlling the image acquisition module to capture images of food during the food cooking process to obtain photographed images of the food; establishing a three-dimensional model corresponding to the food based on the image; in response to the presence of missing areas in the three-dimensional model, filling the missing areas based on data information of known areas in the three-dimensional model to improve the three-dimensional model, and displaying the three-dimensional model.

[0007] To solve the above technical problem, the second technical solution adopted by the present application is to provide an electronic device, which includes a memory and a processor, wherein the memory is used to store program data, and the program data can be executed by the processor to implement the method described in the first technical solution.

[0008] To solve the above technical problems, the third technical solution adopted by the present application is to provide a computer-readable storage medium. The computer-readable storage medium stores program data and can be executed by a processor to implement the method described in the first technical solution.

[0009] The beneficial effect of the present application is as follows: the present application obtains an image of food and constructs an initial three-dimensional model corresponding to the food based on the image. Since there are areas of food that cannot be perceived during the shooting process, the constructed three-dimensional model will have missing areas. When there are missing areas, since the surface of the food is continuous, the missing areas are filled by associating the missing areas with the known areas and using the data information of the known areas that have been constructed in the three-dimensional model, so that the filled and perfected three-dimensional model has more complete structural information than the initial three-dimensional model directly constructed based on the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0011] Figure 1 It is a flowchart of the first embodiment of the modeling method of the present application;

[0012] Figure 2 It is a flow chart of the second embodiment of the modeling method of the present application;

[0013] Figure 3 It is a flowchart of the third embodiment of the modeling method of the present application;

[0014] Figure 4It is a schematic diagram of filling in the missing area of ​​the three-dimensional food model;

[0015] Figure 5 It is a flowchart of the fourth embodiment of the modeling method of the present application;

[0016] Figure 6 It is a flowchart of the fifth embodiment of the modeling method of the present application;

[0017] Figure 7 It is another schematic diagram to fill in the missing areas of the food three-dimensional model;

[0018] Figure 8 It is a flowchart of the sixth embodiment of the modeling method of the present application;

[0019] Fig. 9 It is a flowchart of the seventh embodiment of the modeling method of the present application;

[0020] Fig.10 It is a flow chart of the first embodiment of the cooking method of the present application;

[0021] Fig.11 It is a flow chart of the first embodiment of the food display method of the present application;

[0022] Fig.12 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0023] Fig.13 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments 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.

[0025] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0026] Reference to "embodiments" herein 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 skilled in the art that the embodiments described herein may be combined with other embodiments.

[0027] Reference Figure 1 , Figure 1 This is a flow chart of the first embodiment of the modeling method of this application. It includes the following steps:

[0028] S11: Acquire a photographed image of food.

[0029] Use image acquisition devices such as cameras to obtain image information of food.

[0030] S12: Establish a three-dimensional model corresponding to the food based on the image.

[0031] The food is modeled according to the captured image to obtain a three-dimensional model corresponding to the food.

[0032] S13: In response to the presence of missing areas in the three-dimensional model, the missing areas are filled based on data information of known areas in the three-dimensional model to improve the three-dimensional model.

[0033] For a three-dimensional model with missing areas, based on the known areas that have been obtained, since the surface of the food is continuous, the data information of the missing areas can be filled in based on the association between the missing areas in the three-dimensional model of the food and the adjacent known areas, thereby improving the three-dimensional model of the food. The three-dimensional model of the food finally obtained after improvement can be complete or incomplete. A complete three-dimensional model is a three-dimensional model with a continuous and closed surface. Compared with the initial three-dimensional model directly constructed based on the image, the three-dimensional model that has been filled and improved has more complete structural information, which can make the subsequent analysis and processing based on the three-dimensional model more accurate.

[0034] In this embodiment, the present application obtains an image of food and constructs an initial three-dimensional model corresponding to the food based on the image. Since there are areas of food that cannot be perceived during the shooting process, the constructed three-dimensional model will have missing areas. When there are missing areas, since the surface of the food is continuous, the missing areas are filled by associating the missing areas with the known areas and using the data information of the known areas that have been constructed in the three-dimensional model, so that the filled and perfected three-dimensional model has more complete structural information than the initial three-dimensional model directly constructed based on the image.

[0035] Reference Figure 2 , Figure 2 This is a flow chart of the second embodiment of the modeling method of this application. This method is a further extension of the above embodiment. It includes the following steps:

[0036] S21: Detect whether the three-dimensional model satisfies at least one of continuity, non-mutation, and spatial closure.

[0037] In response to the presence of missing areas in the stereoscopic model, before filling the missing areas based on data information of known areas in the stereoscopic model to improve the stereoscopic model, the constructed stereoscopic model is firstly detected to determine whether there are missing areas in the stereoscopic model.

[0038] The judgment standard is whether the surface of the constructed three-dimensional model satisfies at least one of continuity, non-mutation or spatial closure. Continuity can be determined by judging whether the model surface function is differentiable. If it is differentiable, the area corresponding to the differentiable point is continuous. Non-mutation indicates whether the surface of the model has mutations. For example, the judgment can be made by whether the derivative of the model surface function exceeds a certain threshold. If it does not exceed, it is judged that the area corresponding to the derivative is not a mutation and has non-mutation. Spatial closure means that the spatial interface is closed and has no visual fluidity. Starting from any point in the closed space, if you keep moving forward without turning the direction, you will return to the original starting point. The spatial closure can be judged by selecting any number of points on the food model as the starting point, starting from the starting point, moving forward without turning the direction, if you cannot return to each starting point, it means that the path has passed through a missing area. Or select a point as the starting point, start from the starting point, and select multiple directions to move forward. If there is a moving direction that cannot return to the starting point, there is a missing area on the path in that direction. By integrating the route areas passed by multiple non-closed paths, the missing area in the three-dimensional model can be obtained.

[0039] S22: Determine whether there is a missing area in the stereo model.

[0040] When the surface of the three-dimensional model does not satisfy at least one of continuity, non-mutation or spatial closure, it is determined that there is a missing area on the surface of the three-dimensional model.

[0041] After the missing region is determined, how to further fill the missing region can be achieved by the method described in the following embodiment.

[0042] Reference Figure 3 , Figure 3 This is a flow chart of the third embodiment of the modeling method of the present application. The method is a further extension of step S13. It includes the following steps:

[0043] S31: In response to the presence of a missing region in the three-dimensional model, analyzing structural information of a known region adjacent to the missing region to obtain structural clues corresponding to the missing region.

[0044] When it is determined that there is a missing area in the three-dimensional model, the location of the missing area is determined. The structural information of the known area adjacent to the missing area is obtained, and the food models preset in advance are matched according to the structural information. For example, referring to Figure 4 , Figure 4 A schematic diagram of filling in missing areas of a three-dimensional food model. The original food A has missing parts due to occlusion during the three-dimensional modeling. For example, in the three-dimensional model B of food A, the solid line part on the left side of the three-dimensional model B is the known area that has been successfully modeled, and the dotted line part on the right side of the three-dimensional model B is the missing area. Through the known area in the three-dimensional model B, it can be determined that the three-dimensional food model has a high degree of match with the preset food model "column", so the missing area is filled in through the structural information corresponding to the "column". The structural information of the known area is compared with the structural information of the "column", and the part of the "column" structural information that matches the structural information of the known area is found. The structural information of the remaining part is identified as the structural information of the missing area, and the structural information of this part is used as the structural clue of the missing area.

[0045] Structural information matching is not necessarily just numerical matching, it can be numerical matching after proportional scaling, and the obtained structural clues are obtained by scaling the remaining structural information according to the same scaling ratio.

[0046] S32: Fill in missing areas based on structural clues to improve the three-dimensional model.

[0047] The structural clues corresponding to the missing areas are clarified, and the missing areas are filled with the structural clues to complete the three-dimensional model, so that the entire three-dimensional model meets the requirements of continuity, non-mutation and spatial closure.

[0048] Reference Figure 5 , Figure 5 This is a flow chart of the fourth embodiment of the modeling method of the present application. The method is a further extension of step S13. It includes the following steps:

[0049] S41: In response to the presence of a missing region in the stereoscopic model, obtaining a continuity function of a known region adjacent to the missing region.

[0050] When it is determined that there is a missing area in the three-dimensional model, the position of the missing area can be further determined. After the position of the missing area is determined, a known area adjacent to the missing area can be obtained, and a continuity function corresponding to the known area in the three-dimensional model can be obtained.

[0051] S42: Fitting the continuity function so that the continuity function extends along a direction with the maximum extension probability to fill in the missing area, so as to improve the three-dimensional model.

[0052] The function of the known area is fitted according to the continuity of the function, so that the function of the known area is extended to the missing area. During the extension process, the continuity function is extended in the direction with the highest extension probability. The maximum extension probability means that the continuity characteristics of the previous position point are retained to the greatest extent, so that when extending from the previous position point to the current position point, its continuity characteristics will not change significantly and suddenly.

[0053] In one embodiment, after extending the preset length, the extended portion is used as a known region adjacent to the new missing region for fitting, and the continuity function of the extended portion is allowed to continue to extend in the direction with the maximum extension probability to fill the missing region.

[0054] When the filling encounters a known area or an already filled area, the filling in that direction is stopped and the filling in other directions is continued. When the extension probability of the continuity function in each direction is less than the preset threshold, the filling is stopped.

[0055] After filling the entire missing area, the entire three-dimensional model satisfies continuity, non-mutation and spatial closure.

[0056] Reference Figure 6 , Figure 6 This is a flow chart of the fifth embodiment of the modeling method of the present application. The method is a further extension of step S13. It includes the following steps:

[0057] S51: In response to the presence of a missing region in the three-dimensional model, obtaining symmetry information of a known region adjacent to the missing region.

[0058] When it is determined that there is a missing area in the stereo model, the position of the missing area can be further determined. After the position of the missing area is determined, the known area adjacent to the missing area can be obtained, and the area with the highest degree of matching with the known area is found in the stereo model. The known area adjacent to the missing area is recorded as known area one, and the area with the highest degree of matching with the known area one in the stereo model area is recorded as known area two. According to the positional relationship between the missing area and the known area one, the known area three adjacent to the known area two is determined. The known area two and the known area three are used as the symmetric areas of the missing area and the known area one, and the information contained in the area is used as the symmetry information of the known area adjacent to the missing area.

[0059] Generally, the area consisting of the missing area and the known area 1, and the area consisting of the known area 2 and the known area 3 are often symmetrical areas in the three-dimensional model. Figure 7 , Figure 7Another schematic diagram for filling in the missing area of ​​the food three-dimensional model. In the figure, the solid line part on the left side of the three-dimensional model B is the known area that has been successfully modeled, and the dotted line part on the right side of the three-dimensional model B is the missing area. In this embodiment, when the model is complete, the two parts C and D divided by the three-dimensional model B can be regarded as symmetrical. In the case that there is a missing area in part D, according to the known area one adjacent to the missing area, the known area two with the highest degree of matching with the known area one is found in part C, and the known area three adjacent to the known area two is used as the part corresponding to the missing area, and the information of the known area two and the known area three is used as the symmetry information corresponding to the missing area.

[0060] S52: Fitting a symmetry plane according to the symmetry information to fill in the missing area to improve the three-dimensional model.

[0061] After obtaining the symmetry information, a plane fitting is performed according to the information of known area three to obtain a symmetry plane. Further, according to the positional relationship between known area two and known area three, the obtained symmetry plane is used to fill in the missing area to fit with known area two, thereby completing the three-dimensional model so that the entire three-dimensional model satisfies continuity, non-mutation and spatial closure.

[0062] Reference Figure 8 , Figure 8 This is a flow chart of the sixth embodiment of the modeling method of the present application. The method is a further extension of step S13. It includes the following steps:

[0063] S61: Construct a neural network model for known and missing regions.

[0064] S62: Using the data information of the known area and the corresponding missing area to train the neural network model, so as to obtain a mapping relationship between the missing area and the known area.

[0065] Construct a neural network model and use the neural network to obtain the information of the missing area. After the construction is completed, use a large amount of data information to train the neural network, and the data information includes the data information of the known area and the corresponding missing area. A known area and its corresponding missing area are used as a set of data information to train the neural network model. After a large amount of data training, the neural network model can obtain the mapping relationship between the known area and the missing area, and can generate the corresponding missing area data through the input known area data.

[0066] S63: In response to the presence of a missing area in the three-dimensional model, fill the missing area based on the mapping relationship and a known area adjacent to the missing area to improve the three-dimensional model.

[0067] When a missing area is detected in the three-dimensional model, the neural network model that has been trained extensively is used to obtain the data information of the missing area. The data information of the known area adjacent to the missing area is input into the neural network model, and the neural model will generate the missing area data information corresponding to the known area according to the obtained mapping relationship. The three-dimensional model is filled in according to the missing area data information obtained, and the three-dimensional model is completed so that the entire three-dimensional model meets the continuity, non-mutation and spatial closure.

[0068] Reference Fig. 9 , Fig. 9 This is a flow chart of the seventh embodiment of the modeling method of the present application. The method is a further extension of step S12. It includes the following steps:

[0069] S71: Matching feature information of food in at least two images to obtain projection relationships of the food in the images.

[0070] After obtaining the captured image of the food, the food in the image is identified and feature information is extracted. The feature information can be multiple feature pixels of the food image. By matching the feature information in different images, the projection relationship of the food in different images can be obtained.

[0071] S72: Calculate the depth value of the food in the image according to the projection relationship.

[0072] According to the obtained projection relationship, the distance between the food and a certain image plane, that is, the depth value, can be further calculated.

[0073] S73: Establishing a three-dimensional model corresponding to the food based on the depth value.

[0074] A 3D model corresponding to the food is constructed based on each image and its corresponding depth value. A specific method may be to construct at least two 3D stitching models corresponding to the food based on the depth value corresponding to the food in the image, and then stitch the at least two 3D stitching models based on the shooting position corresponding to the image to obtain the 3D model.

[0075] A stereoscopic model corresponding to the food can be obtained through the depth value of the food in the image, and the stereoscopic model is used as the stereoscopic splicing model to be spliced ​​and combined. Then, based on the shooting position relationship of each image, the stereoscopic splicing models corresponding to each image are spliced ​​and combined, and the obtained stereoscopic model is used as the stereoscopic model corresponding to the food. The shooting position relationship of each image can be determined by the position information reported by the image acquisition module when the image is taken, or the relationship between the shooting positions of each image can be determined by the projection relationship of the food in the image in different images. When the image acquisition module has only one shooting position, and images of different angles are obtained by rotating the food, the relationship between the shooting positions of each image relative to the food can only be determined by the projection relationship in different images.

[0076] In this embodiment, the collected image information does not have depth value information, so the depth value information is acquired through multiple images.

[0077] In another embodiment, the image can also be directly acquired through an image acquisition module capable of generating an image with depth value information. When the image is acquired using an image acquisition module capable of generating an image with depth value information, the depth value of the food can be directly acquired from the image. When the image acquisition module acquires only one image, in response to the number of images being one, a three-dimensional model corresponding to the food is established based on the depth value corresponding to the food in the image; when the image acquisition module acquires at least two images, in response to the number of images being at least two, at least two three-dimensional stitching models corresponding to the food are established based on the depth value corresponding to the food in the image, and at least two three-dimensional stitching models are spliced ​​and combined based on the shooting position relationship corresponding to the images to obtain a three-dimensional model. The shooting position relationship corresponding to the image can be determined by the position information reported by the image acquisition module, or by the projection relationship of the food in the acquired image.

[0078] In one embodiment, the neural network model can also be used to obtain the depth value information of the image. For example, a neural network model of an RGB image and a depth value image is constructed, and the RGB image and the depth value image corresponding to a three-dimensional model of food are taken as a set of data. The neural network model is trained using multiple sets of data so that the neural network model can obtain the mapping relationship between the GRB image and the depth value image. According to the mapping relationship and the currently acquired RGB image, the depth value image corresponding to the current RGB image can be obtained, and the three-dimensional model can be further constructed according to the depth value image.

[0079] Reference Fig.10 , Fig.10 This is a flow chart of the first embodiment of the cooking method of the present application. It is applied to a cooking device, and the cooking device includes an image acquisition module. The method includes the following steps:

[0080] S81: In response to the start of the cooking process, controlling the image acquisition module to acquire images of the food to obtain photographed images of the food.

[0081] When the cooking device starts cooking, the image acquisition module is controlled to obtain a captured image of the food. The captured image may be an image without depth value information or a depth value image with depth value information.

[0082] S82: Establish a three-dimensional model corresponding to the food based on the image.

[0083] After the image is acquired, a three-dimensional model corresponding to the food is established based on the image. When the acquired graphic is an image without depth value information, the corresponding projection relationship can be acquired based on feature information matching to further determine the depth value of the image, or a depth value image can be acquired based on a neural network model of a non-depth value image and a depth value image. After the depth value image is obtained, a three-dimensional model of the food can be constructed based on the depth value information. The specific steps of acquiring a three-dimensional model of food based on the image can refer to the relevant description in the above embodiment.

[0084] S83: In response to the presence of missing areas in the three-dimensional model, the missing areas are filled based on data information of known areas in the three-dimensional model to improve the three-dimensional model.

[0085] In one embodiment, in response to the presence of a missing region in the 3D model, structural information of a known region adjacent to the missing region may be analyzed to obtain structural clues corresponding to the missing region. The missing region is filled based on the structural clues to improve the 3D model so that the entire 3D model meets continuity, non-mutation and spatial closure.

[0086] In one embodiment, in response to the presence of a missing region in the stereo model, a continuity function of a known region adjacent to the missing region is obtained, and the continuity function is fitted so that the continuity function extends in a direction with the highest probability to fill the missing region, so as to improve the stereo model so that the entire stereo model satisfies continuity, non-mutation and spatial closure.

[0087] In one embodiment, in response to the presence of a missing region in the stereo model, symmetry information of a known region adjacent to the missing region is obtained, and a symmetry plane is fitted according to the symmetry information to fill the missing region, so as to improve the stereo model so that the entire stereo model satisfies continuity, non-mutation and spatial closure.

[0088] In one embodiment, the three-dimensional model is improved according to the mapping relationship between the missing area and the known area in the neural network model, so that the entire three-dimensional model satisfies continuity, non-mutation and spatial closure.

[0089] The steps in this embodiment can refer to the description in the previous embodiments and will not be repeated here.

[0090] S84: Determine corresponding cooking steps according to the three-dimensional model to cook the food.

[0091] After obtaining the 3D model corresponding to the food, the relevant volume, shape and other parameter information can be determined according to the 3D model, and the relevant setting parameters for cooking the food can be further determined in combination with the food type information. The corresponding cooking steps are set in combination with the obtained relevant parameters to perform subsequent cooking of the food, making the cooking process of the food more accurate, saving the consumption of resources such as time and electricity, and making the cooked food taste better.

[0092] Reference Fig.11 , Fig.11 This is a flow chart of the first embodiment of the food display method of the present application. It is applied to a cooking device, and the cooking device includes an image acquisition module. The method includes the following steps:

[0093] S91: During the food cooking process, the image acquisition module is controlled to acquire images of the food to obtain photographed images of the food.

[0094] During the cooking process, the image acquisition module can be controlled to acquire images of the food at different time periods. The acquired captured images can be images without depth value information or depth value images with depth value information.

[0095] S92: Establishing a three-dimensional model corresponding to the food based on the image.

[0096] After the image is acquired, a 3D model corresponding to the food is established based on the image. When the acquired image is an image without depth value information, the corresponding projection relationship can be acquired based on feature information matching to further determine the depth value of the image, or a depth value image can be acquired based on a neural network model of a non-depth value image and a depth value image. After the depth value image is obtained, a 3D model of the food can be constructed based on the depth value information.

[0097] S93: In response to the presence of a missing area in the three-dimensional model, fill the missing area based on data information of a known area in the three-dimensional model to improve the three-dimensional model, and display the three-dimensional model.

[0098] In one embodiment, in response to the presence of a missing region in the 3D model, structural information of a known region adjacent to the missing region may be analyzed to obtain structural clues corresponding to the missing region. The missing region is filled based on the structural clues to improve the 3D model so that the entire 3D model meets continuity, non-mutation and spatial closure.

[0099] In one embodiment, in response to the presence of a missing region in the stereo model, a continuity function of a known region adjacent to the missing region is obtained, and the continuity function is fitted so that the continuity function extends in a direction with the highest probability to fill the missing region, so as to improve the stereo model so that the entire stereo model satisfies continuity, non-mutation and spatial closure.

[0100] In one embodiment, in response to the presence of a missing region in the stereo model, symmetry information of a known region adjacent to the missing region is obtained, and a symmetry plane is fitted according to the symmetry information to fill the missing region, so as to improve the stereo model so that the entire stereo model satisfies continuity, non-mutation and spatial closure.

[0101] In one embodiment, the three-dimensional model is improved according to the mapping relationship between the missing area and the known area in the neural network model, so that the entire three-dimensional model satisfies continuity, non-mutation and spatial closure.

[0102] The steps in this embodiment can refer to the description in the previous embodiments and will not be repeated here.

[0103] After obtaining the three-dimensional model of the food, the three-dimensional model is displayed so that the user can understand the changes of the food during the cooking process. After obtaining the three-dimensional models of the food at different time periods during the cooking process, they can be displayed together to more clearly show the change process of the food.

[0104] In the above embodiment, the image acquisition device may be one or more. The image acquisition device may be set on the door of the cooking device and connected to the door closing detection module. When the door closing detection module detects that the angle between the door and the device frame is less than a threshold, the image acquisition device is controlled to acquire images at a certain time interval to obtain multiple images. In one embodiment, the image acquisition device may be installed at multiple positions in the cooking device to capture the internal cavity. In one embodiment, the image acquisition device may be set to rotate so as to capture the internal cavity of the cooking device at different angles during the rotation process.

[0105] like Fig.10 As shown, Fig.10 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0106] The electronic device includes a processor 110 and a memory 120 .

[0107] The processor 110 controls the operation of the electronic device, and the processor 110 may also be referred to as a CPU (Central Processing Unit). The processor 110 may be an integrated circuit chip having the ability to process a signal sequence. The processor 110 may also be a general-purpose processor, a digital signal sequence processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0108] The memory 120 stores instructions and program data required for the processor 110 to operate.

[0109] The processor 110 is used to execute instructions to implement the method provided by any embodiment and possible combination of the aforementioned modeling method, cooking method or food display method of the present application.

[0110] like Fig.11 As shown, Fig.11 This is a schematic diagram of the structure of an embodiment of a computer-readable storage medium of the present application.

[0111] An embodiment of a readable storage medium of the present application includes a memory 210, and the memory 210 stores program data. When the program data is executed, the method provided by any embodiment and possible combination of the modeling method, cooking method or food display method of the present application is implemented.

[0112] The memory 210 may include a medium that can store program instructions, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or it may be a server that stores the program instructions. The server may send the stored program instructions to other devices for execution, or it may execute the stored program instructions itself.

[0113] In summary, the present application obtains images of food and constructs an initial three-dimensional model corresponding to the food based on the images. Since there are areas of food that cannot be perceived during the shooting process, the constructed three-dimensional model will have missing areas. When there are missing areas, since the surface of the food is continuous, the missing areas are associated with the known areas and the data information of the known areas that have been constructed in the three-dimensional model is used to fill the missing areas, so that the filled and perfected three-dimensional model has more complete structural information than the initial three-dimensional model directly constructed based on the image.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0117] If the integrated units in the above other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.

[0118] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A modeling method, characterized in that: The method comprises: Obtaining photographic images of food; Establishing a three-dimensional model corresponding to the food based on the image; In response to the presence of a missing area in the three-dimensional model, the missing area is filled based on data information of a known area in the three-dimensional model to improve the three-dimensional model.

2. The method according to claim 1, characterized in that In response to the missing area in the three-dimensional model, before the missing area is filled based on the data information of the known area in the three-dimensional model to improve the three-dimensional model, the method includes: Detecting whether the three-dimensional model satisfies at least one of continuity, non-mutation, and spatial closure; If not, it is determined that the missing area exists in the three-dimensional model.

3. The method according to claim 2, characterized in that In response to the presence of a missing area in the three-dimensional model, filling the missing area based on data information of a known area in the three-dimensional model to improve the three-dimensional model includes: In response to the presence of a missing region in the three-dimensional model, analyzing structural information of a known region adjacent to the missing region to obtain structural clues corresponding to the missing region; The missing area is filled based on the structural clues to improve the three-dimensional model.

4. The method according to claim 2, characterized in that: In response to the presence of a missing area in the three-dimensional model, filling the missing area based on data information of a known area in the three-dimensional model to improve the three-dimensional model includes: In response to the presence of a missing area in the three-dimensional model, obtaining a continuity function of a known area adjacent to the missing area; The continuity function is fitted so that the continuity function is extended along a direction with the maximum extension probability to fill in the missing area, so as to improve the three-dimensional model.

5. The method according to claim 2, characterized in that: In response to the presence of a missing area in the three-dimensional model, filling the missing area based on data information of a known area in the three-dimensional model to improve the three-dimensional model includes: In response to the presence of a missing region in the three-dimensional model, acquiring symmetry information of a known region adjacent to the missing region; A symmetry plane is fitted according to the symmetry information to fill the missing area, so as to improve the three-dimensional model.

6. The method according to claim 2, characterized in that In response to the presence of a missing area in the three-dimensional model, filling the missing area based on data information of a known area in the three-dimensional model to improve the three-dimensional model includes: Construct neural network models of known and missing regions; The neural network model is trained using the data information of the known area and the corresponding missing area to obtain a mapping relationship between the missing area and the known area; In response to the presence of a missing area in the three-dimensional model, the missing area is filled based on the mapping relationship and the known area adjacent to the missing area to complete the three-dimensional model.

7. The method according to claim 1, characterized in that The step of establishing a three-dimensional model corresponding to the food based on the image includes: Matching feature information of the food in at least two of the images to obtain a projection relationship of the food in the images; Calculating a depth value of the food in the image according to the projection relationship; The three-dimensional model corresponding to the food is established based on the depth value.

8. The method according to claim 7, characterized in that The step of establishing the three-dimensional model corresponding to the food based on the depth value includes: Establishing at least two stereoscopic splicing models corresponding to the food based on the depth value corresponding to the food in the image; The at least two three-dimensional stitching models are spliced ​​and combined based on the shooting position relationship corresponding to the images to obtain the three-dimensional model.

9. The method according to claim 1, characterized in that: The step of establishing a three-dimensional model corresponding to the food based on the image includes: Acquire a depth value corresponding to the food in the image, wherein the image is an image having depth value information; The three-dimensional model corresponding to the food is established based on the depth value.

10. The method according to claim 9, characterized in that The step of establishing the three-dimensional model corresponding to the food based on the depth value includes: In response to the number of the images being one, establishing the three-dimensional model corresponding to the food based on the depth value corresponding to the food in the image; or In response to the number of the images being at least two, establishing at least two stereoscopic stitching models corresponding to the food based on the depth values ​​corresponding to the food in the images; The at least two three-dimensional stitching models are spliced ​​and combined based on the shooting position relationship corresponding to the images to obtain the three-dimensional model.

11. A cooking method, characterized in that: Applied to a cooking device, the cooking device includes an image acquisition module, and the method includes: In response to the start of the cooking process, controlling the image acquisition module to acquire an image of the food to obtain a photographed image of the food; Establishing a three-dimensional model corresponding to the food based on the image; In response to the presence of a missing area in the three-dimensional model, filling the missing area based on data information of a known area in the three-dimensional model to complete the three-dimensional model; The corresponding cooking steps are determined according to the three-dimensional model to cook the food.

12. A food display method, characterized in that: Applied to a cooking device, the cooking device includes an image acquisition module, and the method includes: During the food cooking process, controlling the image acquisition module to acquire images of the food to obtain photographed images of the food; Establishing a three-dimensional model corresponding to the food based on the image; In response to the presence of a missing area in the three-dimensional model, the missing area is filled based on data information of a known area in the three-dimensional model to improve the three-dimensional model, and the three-dimensional model is displayed.

13. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory is used to store program data, and the program data can be executed by the processor to implement the method according to any one of claims 1 to 12.

14. A computer-readable storage medium, characterized in that: Program data is stored and can be executed by a processor to implement the method according to any one of claims 1 to 12.