Modeling method, cooking method, food display method, electronic device, and readable storage medium
By acquiring food images in smart kitchen appliances and filling in missing areas in the three-dimensional model, the problem of dead corners in closed equipment is solved, and the integrity of the three-dimensional food modeling and cooking accuracy are improved.
Patent Information
- Application Number
- PCT/CN2023/129956
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-11-06
- Publication Date
- 2024-09-06
AI Technical Summary
In closed smart kitchen appliances, due to the limitations of hardware structure and camera installation location, dead corners are prone to appear in the three-dimensional modeling of food, resulting in the inability to fully present the structural information of the food and affecting the accuracy of the cooking process.
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 and improve the three-dimensional model to ensure the continuity and integrity of the model.
It achieves a more complete and accurate three-dimensional modeling of food, improves the accuracy and efficiency of the cooking process, and ensures that the structural information of the food is fully reflected.
Smart Images

Figure CN2023129956_06092024_PF_FP
Abstract
Description
Modeling, cooking, food display method, electronic device and readable storage medium
[0001] This application claims priority to Chinese patent application number 2023101909684, the contents of which are incorporated herein by reference.
Technical field
[0002] The present application relates to the field of three-dimensional modeling, and in particular to a modeling, cooking, and food display method, an electronic device, and a readable storage medium. [Background Technology]
[0003] As 3D technology matures, it's being applied to a growing number of technological fields. In the field of food cooking, applying 3D technology has become a pressing challenge for researchers, as it addresses people's increasingly diverse sensory needs and enables more precise control during the cooking process. Current smart kitchen appliances, such as microwave ovens, ovens, and steamers, have enclosed structures. In these enclosed appliances, the information captured by cameras and other image acquisition devices often fails to fully capture the complete state of the food within the cooking device due to limitations such as the cooking device's hardware structure, camera mounting position, or camera angle. This creates a high risk of blind spots in food perception. Sometimes, due to the limited size of the cooking device's back cavity, food can be tightly packed together, obscuring each other and increasing the area where food cannot be perceived, creating blind spots. These unperceivable areas can lead to missing areas when constructing the 3D model of the food, failing to fully capture the food's structural information.
[0004] [Summary of the invention]
[0005] The main purpose of this application is to provide a modeling, cooking, and food display method, an electronic device, and a readable storage medium that can solve the technical problem of the inability to perceive areas affecting the three-dimensional modeling of food.
[0006] To solve the above technical problems, the first technical solution adopted in this application is to provide a modeling method. The method includes obtaining a photographic image of food; creating a 3D model of the food based on the image; and, in response to missing areas in the 3D model, filling the missing areas based on data information about known areas in the 3D model to complete the 3D model.
[0007] To solve the above-mentioned technical problem, the second technical solution adopted by this application is to provide a cooking method. The method is applied to a cooking device, the cooking device including an image acquisition module. The method comprises: in response to the start of a cooking process, controlling the image acquisition module to capture an image of food to obtain a photographic image of the food; establishing a three-dimensional model corresponding to the food based on the image; in response to missing areas in the three-dimensional model, filling the missing areas based on data information of known areas in the three-dimensional model to complete the three-dimensional model; and determining corresponding cooking steps based on the three-dimensional model to cook the food.
[0008] In order to solve the above technical problems, the third technical solution adopted in this 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.
[0009] To solve the above technical problem, the second technical solution adopted in this application is to provide an electronic device. The electronic device 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.
[0010] To solve the above technical problems, the third technical solution adopted by this application is to provide a computer-readable storage medium that stores program data and can be executed by a processor to implement the method described in the first technical solution.
[0011] The beneficial effects of the present application are as follows: the present application obtains an image of food and constructs an initial 3D model corresponding to the food based on the image. Since there are areas of the food that cannot be perceived during the filming process, the constructed 3D model may contain missing areas. When there are missing areas, since the surface of the food is continuous, the missing areas are associated with known areas and the data information of the known areas already constructed in the 3D model is used to fill in the missing areas, so that the completed 3D model has more complete structural information than the initial 3D model constructed directly based on the image.
Brief Description of the Drawings
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without inventive efforts. Among them:
[0013] FIG1 is a flow chart of a first embodiment of the modeling method of the present application;
[0014] FIG2 is a flow chart of a second embodiment of the modeling method of the present application;
[0015] FIG3 is a flow chart of a third embodiment of the modeling method of the present application;
[0016] FIG4 is a schematic diagram showing the filling of missing areas in a three-dimensional food model;
[0017] FIG5 is a flow chart of a fourth embodiment of the modeling method of the present application;
[0018] FIG6 is a flow chart of a fifth embodiment of the modeling method of the present application;
[0019] FIG7 is another schematic diagram of filling in the missing area of the 3D food model;
[0020] FIG8 is a flow chart of a sixth embodiment of the modeling method of the present application;
[0021] FIG9 is a flow chart of a seventh embodiment of the modeling method of the present application;
[0022] FIG10 is a schematic diagram of a flow chart of a first embodiment of the cooking method of the present application;
[0023] FIG11 is a flow chart of a first embodiment of the food display method of the present invention;
[0024] FIG12 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
[0025] FIG13 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application. [Specific implementation method]
[0026] 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, rather than 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 this field without making creative work are within the scope of protection of this application.
[0027] The terms "first," "second," and the like in this application are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0028] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] Referring to FIG1 , FIG1 is a flow chart of the first embodiment of the modeling method of the present application. The method includes the following steps:
[0030] S11: Acquire a photographed image of food.
[0031] Use image acquisition devices such as cameras to obtain image information of food.
[0032] S12: Building a three-dimensional model corresponding to the food based on the image.
[0033] The food is modeled according to the captured image to obtain a three-dimensional model corresponding to the food.
[0034] S13: In response to the presence of a missing area in the 3D model, the missing area is filled based on data information of a known area in the 3D model to improve the 3D model.
[0035] For 3D models 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 used to fill in the data information of the known areas based on the relationship between the missing areas in the 3D model of the food and its adjacent known areas, thereby improving the 3D model of the food. The final 3D model of the food obtained after improvement can be complete or incomplete. A complete 3D model is a 3D model with a continuous and closed surface. Compared with the initial 3D model constructed directly based on the image, the 3D model that has been improved after filling has more complete structural information, which can make subsequent analysis and processing based on the 3D model more accurate.
[0036] In this embodiment, the present application obtains an image of food and constructs an initial 3D model corresponding to the food based on the image. Because some areas of the food cannot be perceived during the filming process, the constructed 3D model may contain missing areas. When missing areas exist, since the surface of the food is continuous, the missing areas are associated with known areas and the data information of the known areas already constructed in the 3D model is used to fill in the missing areas. This results in a completed 3D model with more complete structural information than the initial 3D model constructed directly from the image.
[0037] Referring to FIG2 , FIG2 is a flow chart of a second embodiment of the modeling method of the present application. This method is a further extension of the above embodiment. It includes the following steps:
[0038] S21: Check whether the three-dimensional model satisfies at least one of continuity, non-mutation, and spatial closure.
[0039] In response to the presence of missing areas in the stereo model, before filling the missing areas based on data information of known areas in the stereo model to improve the stereo model, the constructed stereo model is first detected to determine whether there are missing areas in the stereo model.
[0040] The criteria for determining whether the surface of the constructed 3D model satisfies at least one of continuity, non-mutation, or spatial closure. Continuity can be determined by determining whether the model surface function is differentiable. If so, the region corresponding to the differentiable point is considered continuous. Non-mutation indicates whether the model surface exhibits mutations. This can be determined, for example, by determining whether the derivative of the model surface function exceeds a certain threshold. If not, the region corresponding to the derivative is considered non-mutational and non-mutational. Spatial closure refers to the closed interface of the space, characterized by visual instability. Starting from any point in a closed space and continuing forward without changing direction will return to the original starting point. Spatial closure can be determined by selecting any number of starting points on the food model and continuing forward without changing direction. If the path cannot return to any of the starting points, it indicates that the path has passed through a missing region. Alternatively, a starting point can be selected and, starting from this point, the path can be moved in multiple directions. If any direction cannot return to the starting point, the path in that direction contains a missing region. By integrating the regions traversed by multiple non-closed paths, the missing region in the 3D model can be determined.
[0041] S22: Determine whether there is a missing area in the stereo model.
[0042] 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.
[0043] After the missing region is determined, further filling of the missing region can be achieved by the method described in the following embodiments.
[0044] Referring to FIG3 , FIG3 is a flow chart of a third embodiment of the modeling method of the present application. This method is a further extension of step S13. It includes the following steps:
[0045] S31: In response to a missing region in the three-dimensional model, analyzing structural information of known regions adjacent to the missing region to obtain structural clues corresponding to the missing region.
[0046] When it is determined that there is a missing area in the three-dimensional model, the location of the missing area is determined. Structural information of known areas adjacent to the missing area is obtained, and each pre-set food model is matched based on this structural information. For example, referring to Figure 4, Figure 4 is a schematic diagram of filling in missing areas in 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 portion on the left side of the three-dimensional model B is the known area that has been successfully modeled, while the dotted line portion on the right side of the three-dimensional model B is the missing area. Based on the known areas 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 using the structural information corresponding to the "column". The structural information of the known area is compared with the structural information of the "column". When the "column" structural information is found, the part with the highest degree of match with the structural information of the known area is found. The remaining structural information is then determined to be the structural information of the missing area, and this structural information is used as the structural clue of the missing area.
[0047] 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.
[0048] S32: Fill in missing areas based on structural clues to improve the three-dimensional model.
[0049] The structural clues corresponding to the missing areas are identified, 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.
[0050] Referring to FIG5 , FIG5 is a flow chart of a fourth embodiment of the modeling method of the present application. This method is a further extension of step S13. It includes the following steps:
[0051] S41: In response to a missing region in the stereo model, obtaining a continuity function of a known region adjacent to the missing region.
[0052] When it is determined that there is a missing area in the 3D 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 3D model can be obtained.
[0053] 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, thereby improving the three-dimensional model.
[0054] The function of the known region is fitted based on the function continuity, so that the function of the known region is extended to the missing region. During the extension process, the continuity function is extended in the direction with the highest extension probability. The highest extension probability means that the continuity characteristics of the previous position point are preserved to the greatest extent, so that the continuity characteristics will not change significantly when extending from the previous position point to the current position point.
[0055] 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 continued to extend in the direction with the maximum extension probability to fill the missing region.
[0056] When filling in a known area or an already filled area, the filling in that direction stops and the filling in other directions continues. When the extension probability of the continuity function in each direction is less than the preset threshold, the filling stops.
[0057] After filling the entire missing area, the entire three-dimensional model satisfies continuity, non-mutation and spatial closure.
[0058] Referring to FIG6 , FIG6 is a flow chart of a fifth embodiment of the modeling method of the present application. This method is a further extension of step S13. It includes the following steps:
[0059] S51: In response to a missing region in the three-dimensional model, obtaining symmetry information of a known region adjacent to the missing region.
[0060] When a missing region is determined to exist in the stereo model, the location of the missing region can be further determined. Once the missing region's location is determined, a known region adjacent to the missing region can be obtained. The region in the stereo model that best matches the known region is searched for. The known region adjacent to the missing region is recorded as known region one, and the region in the stereo model that best matches known region one is recorded as known region two. Based on the positional relationship between the missing region and known region one, known region three adjacent to known region two is determined. Known region two and known region three serve as symmetric regions between the missing region and known region one, and the information contained in these regions serves as symmetry information for the known regions adjacent to the missing region.
[0061] Generally, the area consisting of the missing area and the known area one, and the area consisting of the known area two and the known area three, are mostly symmetrical areas in the three-dimensional model. Referring to Figure 7, Figure 7 is another schematic diagram of 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 match 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.
[0062] S52: Fitting symmetry planes according to the symmetry information to fill in the missing areas, thereby improving the three-dimensional model.
[0063] After obtaining the symmetry information, a plane fitting is performed based on the information of known area three to obtain a symmetry plane. Further, based on the positional relationship between known area two and known area three, the obtained symmetry plane is used to fill the missing area to fit with known area two, thereby completing the three-dimensional model so that the entire three-dimensional model meets the requirements of continuity, non-mutation and spatial closure.
[0064] Referring to FIG8 , FIG8 is a flow chart of a sixth embodiment of the modeling method of the present application. This method is a further extension of step S13. It includes the following steps:
[0065] S61: Construct a neural network model of known and missing regions.
[0066] 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.
[0067] A neural network model is constructed and used to obtain information about the missing regions. Once constructed, the neural network is trained using a large amount of data, including information about known regions and their corresponding missing regions. A known region and its corresponding missing region are used as a set of data for training the neural network model. After extensive training with this data, the neural network model can determine the mapping between known and missing regions and generate the corresponding missing region data using the input known region data.
[0068] S63: In response to a missing area in the 3D model, the missing area is filled based on the mapping relationship and a known area adjacent to the missing area to improve the 3D model.
[0069] When missing regions are detected in the 3D model, a well-trained neural network model is used to retrieve data for the missing regions. Data from known regions adjacent to the missing regions are fed into the neural network model, which then generates data corresponding to the missing regions based on the resulting mapping. The resulting missing regions are then used to fill in the missing regions, completing the 3D model and ensuring continuity, non-mutation, and spatial closure.
[0070] Referring to FIG9 , FIG9 is a flow chart of the seventh embodiment of the modeling method of the present application. This method is a further extension of step S12. It includes the following steps:
[0071] S71: Matching feature information of food in at least two images to obtain projection relationships of the food in the images.
[0072] After capturing food images, the food in the images is identified and its features are extracted. The features can be multiple characteristic pixels in the food image. By matching the features in different images, the projection relationship of the food in the different images can be determined.
[0073] S72: Calculate the depth value of the food in the image according to the projection relationship.
[0074] Based on the obtained projection relationship, the distance between the food and a certain image plane, that is, the depth value, can be further calculated.
[0075] S73: Establishing a three-dimensional model corresponding to the food based on the depth value.
[0076] A 3D model corresponding to the food is constructed based on the images and their corresponding depth values. A specific method may be to create at least two 3D stitching models corresponding to the food based on the depth values corresponding to the food in the images, and then stitch the at least two 3D stitching models together based on the shooting positions of the images to obtain the 3D model.
[0077] A three-dimensional model corresponding to the food in the image can be obtained by the depth value of the food, and the three-dimensional model is used as the three-dimensional stitching model to be spliced and combined. Then, based on the shooting position relationship of each image, the three-dimensional stitching models corresponding to each image are spliced and combined, and the obtained three-dimensional model is used as the three-dimensional 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 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.
[0078] In this embodiment, the collected image information does not have depth value information, so the depth value information is obtained through multiple images.
[0079] In another embodiment, image acquisition can also be performed directly through an image acquisition module that can generate an image with depth value information. When an image is acquired using an image acquisition module that can generate an image with depth value information, the depth value of the food can be directly obtained from the image. When the image acquisition module only acquires 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 the at least two three-dimensional stitching models are stitched 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 images 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.
[0080] In one embodiment, a neural network model can also be used to obtain image depth information. For example, a neural network model is constructed that combines an RGB image and a depth value image. The RGB image and depth value image corresponding to a 3D food model are combined into a set of data. The neural network model is then trained using multiple sets of data, enabling the neural network model to determine the mapping relationship between the RGB image and the depth value image. Based on this mapping relationship and the currently acquired RGB image, a depth value image corresponding to the current RGB image can be obtained, and the 3D model can then be constructed based on the depth value image.
[0081] Referring to FIG10 , FIG10 is a flow chart of a first embodiment of the cooking method of the present application. The method is applied to a cooking device including an image acquisition module. The method comprises the following steps:
[0082] S81: In response to the start of the cooking process, controlling the image acquisition module to capture images of the food to obtain photographed images of the food.
[0083] When the cooking device starts cooking, the image acquisition module is controlled to obtain a captured image of the food. The captured image can be an image without depth value information or a depth value image with depth value information.
[0084] S82: Establish a three-dimensional model corresponding to the food based on the image.
[0085] After acquiring the image, a 3D model of the food is constructed based on the image. If the acquired image lacks depth information, the image's depth value can be further determined by matching the corresponding projection relationship based on feature information, or by using a neural network model of the non-depth-value image and the depth-value image to obtain a depth-value image. Once the depth-value image is obtained, a 3D model of the food can be constructed based on the depth information. For the specific steps for acquiring the 3D model of the food based on the image, please refer to the relevant description in the above embodiments.
[0086] S83: In response to the presence of a missing area in the 3D model, the missing area is filled based on data information of a known area in the 3D model to improve the 3D model.
[0087] In one embodiment, in response to the presence of missing regions in the 3D model, structural information of known regions adjacent to the missing regions may be analyzed to obtain structural clues corresponding to the missing regions. The missing regions are then filled based on the structural clues to complete the 3D model, ensuring that the entire 3D model meets the requirements of continuity, non-abruptness, and spatial closure.
[0088] In one embodiment, in response to a missing region in the 3D model, a continuity function of a known region adjacent to the missing region is obtained. The continuity function is fitted so that the continuity function extends in a direction with the highest probability to fill the missing region, thereby improving the 3D model so that the entire 3D model satisfies the properties of continuity, non-abruptness, and spatial closure.
[0089] In one embodiment, in response to a missing region in the 3D model, symmetry information of known regions adjacent to the missing region is obtained. Symmetry planes are fitted based on the symmetry information to fill the missing region, thereby improving the 3D model so that the entire 3D model satisfies the requirements of continuity, non-abruptness, and spatial closure.
[0090] In one embodiment, the 3D model is improved based on the mapping relationship between the missing regions and the known regions in the neural network model, so that the entire 3D model satisfies the properties of continuity, non-mutation, and spatial closure.
[0091] The steps in this embodiment can refer to the description in the previous embodiment and will not be repeated here.
[0092] S84: Determine corresponding cooking steps according to the three-dimensional model to cook the food.
[0093] After obtaining the corresponding 3D model of the food, relevant parameters such as volume and shape can be determined based on the 3D model. Combined with the food type information, the relevant cooking parameters can be further determined. The corresponding cooking steps are set based on the obtained relevant parameters for subsequent cooking of the food, making the cooking process more precise, saving time, electricity and other resources, and making the cooked food more delicious.
[0094] Referring to FIG11 , FIG11 is a flow chart of a first embodiment of the food display method of the present application. The method is applied to a cooking device including an image acquisition module. The method comprises the following steps:
[0095] 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.
[0096] During the cooking process, the image acquisition module can be controlled to capture images of the food at different time periods. The captured images can be images without depth value information or depth value images with depth value information.
[0097] S92: Establish a three-dimensional model corresponding to the food based on the image.
[0098] After acquiring the image, a 3D model of the food is constructed based on the image. If the image lacks depth information, the depth value of the image can be further determined by matching the corresponding projection relationship based on feature information. Alternatively, a depth image can be obtained using a neural network model of the non-depth image and the depth image. Once the depth image is obtained, the 3D model of the food can be constructed based on the depth information.
[0099] S93: In response to the presence of a missing area in the 3D model, fill the missing area based on data information of a known area in the 3D model to improve the 3D model, and display the 3D model.
[0100] In one embodiment, in response to the presence of missing regions in the 3D model, structural information of known regions adjacent to the missing regions may be analyzed to obtain structural clues corresponding to the missing regions. The missing regions are then filled based on the structural clues to complete the 3D model, ensuring that the entire 3D model meets the requirements of continuity, non-abruptness, and spatial closure.
[0101] In one embodiment, in response to a missing region in the 3D model, a continuity function of a known region adjacent to the missing region is obtained. The continuity function is fitted so that the continuity function extends in a direction with the highest probability to fill the missing region, thereby improving the 3D model so that the entire 3D model satisfies the properties of continuity, non-abruptness, and spatial closure.
[0102] In one embodiment, in response to a missing region in the 3D model, symmetry information of known regions adjacent to the missing region is obtained. Symmetry planes are fitted based on the symmetry information to fill the missing region, thereby improving the 3D model so that the entire 3D model satisfies the requirements of continuity, non-abruptness, and spatial closure.
[0103] In one embodiment, the 3D model is improved based on the mapping relationship between the missing regions and the known regions in the neural network model, so that the entire 3D model satisfies the properties of continuity, non-mutation, and spatial closure.
[0104] The steps in this embodiment can refer to the description in the previous embodiment and will not be repeated here.
[0105] After obtaining the 3D model of the food, the 3D model is displayed so that the user can understand the changes of the food during the cooking process. After obtaining the 3D 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.
[0106] In the above embodiment, there may be one or more image capture devices. The image capture device may be mounted on the cooking device door 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 capture device is controlled to capture images at regular intervals to obtain multiple images. In one embodiment, the image capture device may be mounted at multiple locations within the cooking device to capture images of the internal cavity. In one embodiment, the image capture device may be configured to rotate, allowing it to capture images of the internal cavity of the cooking device from different angles during rotation.
[0107] As shown in FIG12 , FIG12 is a schematic structural diagram of an embodiment of an electronic device of the present application.
[0108] The electronic device includes a processor 110 and a memory 120 .
[0109] The processor 110 controls the operation of the electronic device and may also be referred to as a CPU (Central Processing Unit). The processor 110 may be an integrated circuit chip with the ability to process signal sequences. 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, or a discrete hardware component. The general-purpose processor may be a microprocessor or any conventional processor.
[0110] The memory 120 stores instructions and program data required for the processor 110 to operate.
[0111] The processor 110 is configured 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.
[0112] As shown in FIG13 , FIG13 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application.
[0113] An embodiment of the readable storage medium of the present application includes a memory 210, which stores program data. When the program data is executed, the method provided by any embodiment of the modeling method, cooking method or food display method of the present application and any possible combination thereof is implemented.
[0114] 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.
[0115] In summary, the present application acquires images of food and constructs an initial 3D model corresponding to the food based on the images. Because some areas of the food cannot be perceived during the filming process, the constructed 3D model may contain missing areas. When missing areas exist, since the surface of the food is continuous, the missing areas are associated with known areas and the data information of the known areas already constructed in the 3D model is used to fill in the missing areas. This results in a completed 3D model with more complete structural information than the initial 3D model constructed directly from the image.
[0116] 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 embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or ignoring or not implementing certain features.
[0117] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.
[0118] In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or software functional units.
[0119] 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, 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.
[0120] The above description is merely an embodiment of the present application and does not 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.
Citation Information
Patent Citations
Three-dimensional model surface texture empty filling method guided by geometrical characteristic
CN102521869A
Control method, cooking equipment and storage medium
CN115035237A
Stereoscopic image acquisition method, electronic device and storage medium
US20220351478A1
Missing region prediction
US9760978B1
