Refrigerator internal space modeling method and apparatus, electronic device, and storage medium
By combining a flash device, a camera device, and an inertial sensor to acquire polarization information and capture attitude, a 3D modeling result is generated and displayed in an augmented reality manner. This solves the reconstruction error problem caused by reflection and complex materials in refrigerator modeling, and achieves high-precision, real-time 3D visualization management.
Patent Information
- Application Number
- CN202510926953.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing refrigerator modeling methods are prone to losing feature points when facing white inner walls or transparent materials, leading to the accumulation of spatial structure reconstruction errors. Devices integrating RGB-D sensors are expensive and easily affected by humid and cold environments. Cloud-based modeling solutions are limited by upload latency and privacy issues, making it difficult to meet the needs of real-time interaction on mobile devices.
By jointly controlling the flash device, camera device and inertial sensor, multiple frames of target images and their polarization information and acquisition posture are acquired, generating 3D modeling results, and displaying them in an augmented reality manner, avoiding reflection interference, improving the accuracy of surface details in 3D reconstruction, and reducing point cloud mismatch or structural distortion.
It maintains good 3D accuracy under conditions of weak texture and highly reflective surfaces, providing clear, real-time, and naturally interactive 3D visualization effects, and improving the level of digital perception and management of the refrigerator's internal space.
Smart Images

Figure CN123181699A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of refrigerator technology, and particularly relates to a method, device, electronic device and storage medium for modeling the internal space of a refrigerator. Background Technology
[0002] With the improvement of mobile computing device performance and the rise of Augmented Reality (AR) technology, users have raised higher demands for digital modeling and visual management of home scenarios. For enclosed home appliances, such as refrigerators, internal space modeling is expected to provide intelligent support for food storage monitoring, space planning, and interactive experiences.
[0003] Existing refrigerator modeling methods can be mainly divided into three categories: the first is the structure reconstruction method based on monocular vision, which uses ordinary cameras to capture multi-angle images and uses the SFM (Structure from Motion) algorithm to recover the scene point cloud; the second is the depth scanning technology based on RGB-D sensors, which relies on devices such as iPhone LiDAR to collect information about the internal space of the refrigerator; and the third is the solution based on cloud modeling services, which uploads image data and executes neural rendering algorithms such as NeRF on the server to generate modeling results.
[0004] However, existing solutions generally suffer from the following technical bottlenecks: First, monocular vision methods are prone to losing feature points when facing white inner walls or transparent materials, leading to the accumulation of spatial structure reconstruction errors; second, devices integrating RGB-D sensors are expensive and easily affected by humid and cold environments, affecting modeling stability; third, cloud-based modeling solutions are limited by upload latency and privacy issues, making it difficult to meet the needs of real-time interaction on mobile devices. Summary of the Invention
[0005] This application aims to address at least one of the technical problems existing in the related art. To this end, this application proposes a method, device, electronic device, and storage medium for modeling the internal space of a refrigerator, so as to achieve efficient three-dimensional modeling of the internal space of the refrigerator and realistic immersive visualization without the need for a dedicated depth sensor, thereby improving the real-time performance, accuracy, and user interaction experience of digital management of refrigerator space.
[0006] In a first aspect, this application provides a method for modeling the internal space of a refrigerator, applicable to an electronic device equipped with a flashing device, a camera device, and an inertial sensor; the method includes:
[0007] By jointly controlling the flash device, camera device and inertial sensor, the internal space of the refrigerator is photographed to obtain multiple frames of target images; each frame of target image corresponds to polarization information and acquisition attitude;
[0008] Based on the multi-frame target images and their corresponding polarization information and acquisition posture, a three-dimensional modeling result corresponding to the internal space of the refrigerator is generated.
[0009] The 3D modeling results are overlaid on the 3D view in an augmented reality manner to visualize the interior space of the refrigerator.
[0010] According to the refrigerator interior space modeling method provided in this application, by taking multiple photos and using flash illumination at different polarization angles, detailed information about the refrigerator interior under different lighting and reflection conditions can be fully acquired. This enables subsequent algorithms to distinguish the material characteristics of the real surface, avoid reflection interference, and improve the accuracy of surface details in 3D reconstruction. The device posture information corresponding to the acquisition of each frame of image can ensure the geometric consistency between multiple frames of images, assisting in 3D coordinate positioning in the subsequent reconstruction process and reducing the risk of point cloud mismatch or structural distortion. The 3D modeling results generated based on multiple target images, polarization information, and acquisition posture enable the spatial geometry to maintain good 3D accuracy even under weak texture and highly reflective surface conditions, reducing point cloud voids, drift, or surface damage. Finally, the 3D model and real-time image are aligned using augmented reality mode, and the real image is superimposed in an augmented reality manner, resulting in a clear, real-time, and naturally interactive 3D visualization effect, significantly improving the digital perception and management level of the refrigerator interior space.
[0011] Secondly, this application provides a refrigerator interior space modeling device, applied to an electronic device equipped with a flashing device, a camera device, and an inertial sensor; the device includes:
[0012] The acquisition module is used to capture images of the interior space of the refrigerator by jointly controlling the flash device, camera device and inertial sensor to obtain multiple frames of target images; each frame of target image corresponds to polarization information and acquisition attitude;
[0013] The modeling module is used to generate a three-dimensional modeling result corresponding to the internal space of the refrigerator based on the multi-frame target images, their corresponding polarization information, and the acquisition posture.
[0014] The display module is used to overlay the 3D modeling results onto the 3D view in an augmented reality manner to visualize the interior space of the refrigerator.
[0015] According to the refrigerator interior space modeling device provided in this application, through multiple shots and flash illumination at different polarization angles, detailed information of the refrigerator interior under different lighting and reflection conditions can be fully acquired, enabling subsequent algorithms to distinguish the material characteristics of the real surface, avoid reflection interference, and improve the accuracy of surface details in 3D reconstruction. The device posture information corresponding to the acquisition of each frame of image can ensure the geometric consistency between multiple frames of images, assisting in 3D coordinate positioning in the subsequent reconstruction process and reducing the risk of point cloud mismatch or structural distortion. The 3D modeling results generated based on multiple target images, polarization information, and acquisition posture enable the spatial geometry to maintain good 3D accuracy even under weak texture and highly reflective surface conditions, reducing point cloud voids, drift, or surface damage. Finally, the 3D model and real-time image are aligned through augmented reality mode, and the real image is superimposed in an augmented reality manner, bringing a clear, real-time, and naturally interactive 3D visualization effect, significantly improving the digital perception and management level of the refrigerator interior space.
[0016] Thirdly, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the refrigerator internal space modeling method as described in the first aspect above.
[0017] Fourthly, this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the refrigerator internal space modeling method as described in the first aspect above.
[0018] Fifthly, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the refrigerator internal space modeling method as described in the first aspect above.
[0019] In a sixth aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the refrigerator internal space modeling method as described in the first aspect above.
[0020] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0021] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0022] Figure 1 This is a flowchart illustrating a refrigerator internal space modeling method provided in some embodiments of this application;
[0023] Figure 2 This is a schematic diagram of the principle architecture of a three-dimensional modeling system for the internal space of a refrigerator provided in some embodiments of this application;
[0024] Figure 3 This is a schematic diagram of the refrigerator space modeling process provided in some embodiments of this application;
[0025] Figure 4 This is a timing diagram of the multi-sensor data acquisition collaborative control process provided in some embodiments of this application;
[0026] Figure 5 This is a schematic diagram of the refrigerator space modeling neural radiation field processing structure provided in some embodiments of this application;
[0027] Figure 6 This is a schematic diagram of the refrigerator space modeling, calibration, and compensation execution process provided in some embodiments of this application;
[0028] Figure 7 This is a schematic diagram of the refrigerator internal space modeling device provided in some embodiments of this application;
[0029] Figure 8 This is a schematic diagram of the structure of an electronic device provided in some embodiments of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0031] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used in the description of this application is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms "comprising" and "having," and any variations thereof, in the description, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the description, claims, or accompanying drawings of this application are used to distinguish different objects, not to describe a specific order or hierarchy.
[0032] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0033] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "attachment" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0034] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0035] In this application, "multiple" refers to two or more (including two), and similarly, "multiple groups" refers to two or more (including two), and "multiple pieces" refers to two or more (including two).
[0036] The following detailed description, in conjunction with the accompanying drawings, of the refrigerator internal space modeling method provided in this application through specific embodiments and application scenarios, will be provided in detail.
[0037] The refrigerator internal space modeling method provided in this application can be executed by an electronic device or a functional module or entity within an electronic device that can implement the refrigerator internal space modeling method. The following description uses an electronic device as an example to illustrate the refrigerator internal space modeling method provided in this application.
[0038] It should be noted that the electronic devices mentioned in the embodiments of this application are terminal devices equipped with a flash device, a camera device and an inertial sensor, including but not limited to smartphones, tablets, AR glasses or portable scanning devices equipped with a camera device and an inertial sensor.
[0039] The refrigerator mentioned in this application embodiment is not limited to traditional household refrigerators used for home refrigeration and freezing of food, but may also include various refrigeration devices with internal storage space and suitable for spatial modeling, such as commercial freezers, built-in smart refrigerators, and multi-door, multi-layer combined refrigeration equipment. Furthermore, the internal space of the refrigerator may include different functional areas such as a refrigerator compartment, a freezer compartment, and a variable temperature compartment, and its structural form, surface material, and internal arrangement are not limited.
[0040] Figure 1 This is a flowchart illustrating a refrigerator interior space modeling method provided in some embodiments of this application. For example... Figure 1 As shown, the method for modeling the internal space of the refrigerator includes steps 110 to 130.
[0041] Step 110: By jointly controlling the flash device, camera device and inertial sensor, the internal space of the refrigerator is photographed to obtain multiple target images; each target image corresponds to polarization information and acquisition attitude.
[0042] Among them, polarization information refers to the polarization state of light emitted by a flash device at different polarization angles and collected by a camera device, thereby obtaining information on the brightness or color changes of the reflective surface under different polarized light illumination, which is used for subsequent image processing and modeling analysis.
[0043] Attitude acquisition refers to the spatial position and orientation information obtained by an electronic device through an inertial sensor each time an image is captured, including rotation angle (attitude), position coordinates, acceleration, etc.
[0044] Electronic equipment controls a flash unit, a camera unit, and an inertial sensor to work together to acquire images of the refrigerator's interior. The flash unit outputs illumination according to the shooting requirements, the camera unit captures multiple frames of images of the refrigerator's interior, and the inertial sensor records the corresponding acquisition posture for use in subsequent processing. Each frame also records polarization information obtained by the electronic equipment through polarized light illumination, used for subsequent surface property analysis.
[0045] It should be noted that the "flash device," "camera device," and "inertial sensor" mentioned in the embodiments of this application are not limited to physically separate hardware units. They can be independent components or integrated into the same module or the same hardware platform. For example, the flash function and the imaging function can be integrated into the same camera module, and the inertial sensor can be integrated into the motherboard of the mobile terminal or implemented through an external module. The specific implementation method should be based on the hardware architecture and functional requirements of the electronic device. As long as it does not affect the core solution of this application, it falls within the protection scope of this application.
[0046] For example, when the refrigerator door is open, the electronic device can sequentially control the flash to flash polarized light at angles of 0°, 45°, 90°, etc., and quickly capture at least 10 frames of photos of the inside of the refrigerator during the flashing, while the IMU records the three-dimensional pose information of each frame of photo in real time.
[0047] Step 120: Based on multiple frames of target images and their corresponding polarization information and acquisition posture, generate a 3D modeling result corresponding to the internal space of the refrigerator.
[0048] Among them, the 3D modeling result refers to the 3D structural model of the refrigerator's internal space reconstructed based on multiple frames of images and their acquired posture information, which may include point cloud, mesh model, voxel model or neural rendering model results.
[0049] The electronic device performs joint processing on the acquired multiple frames of images, corresponding polarization information, and acquisition posture to reconstruct the 3D model of the refrigerator's internal spatial structure. This process can be based on triangulation, depth estimation, volumetric rendering, or other 3D reconstruction algorithms to complete the reconstruction of point clouds or mesh models based on image-pose registration.
[0050] Step 130: Overlay the 3D modeling results onto the 3D view in an augmented reality manner to visualize the interior space of the refrigerator.
[0051] After the electronic device completes the calculation of the 3D modeling results, it loads them into the augmented reality view. By aligning the coordinates with the real-time images captured by the camera device, the 3D structural model is superimposed onto the real refrigerator image, outputting an interactive visual display effect.
[0052] Overlaying augmented reality onto a 3D view refers to displaying the reconstructed 3D modeling results on the screen of an electronic device, superimposing them with real-time captured images to achieve seamless integration with the real environment.
[0053] For example, when a user observes the freezer drawer area through a mobile phone screen, the three-dimensional structure of the freezer drawer area will be superimposed on the real image in real time and move smoothly with the user's viewing angle. At the same time, text annotations can be superimposed on the three-dimensional model to indicate the remaining space.
[0054] The refrigerator interior space modeling method provided in this application can fully acquire detailed information about the refrigerator interior under different lighting and reflection conditions through multiple shots and flash illumination at different polarization angles. This enables subsequent algorithms to distinguish the material characteristics of the real surface, avoid reflection interference, and improve the accuracy of surface details in 3D reconstruction. The device posture information corresponding to each frame of image acquisition can ensure geometric consistency between multiple frames, assisting in 3D coordinate positioning in the subsequent reconstruction process and reducing the risk of point cloud mismatch or structural distortion. The 3D modeling result is generated based on multiple target images, polarization information, and acquisition posture, so that the spatial geometry can maintain good 3D accuracy even under weak texture and highly reflective surface conditions, reducing point cloud holes, drift, or surface damage. Finally, the 3D model and real-time image are aligned through augmented reality mode, and the real image is superimposed in an augmented reality manner, bringing a clear, real-time, and naturally interactive 3D visualization effect, significantly improving the level of digital perception and management of the refrigerator interior space.
[0055] In existing technologies, the interior of refrigerators often contains a variety of surface materials, such as transparent glass, metal shelves, and plastic trays. The complex surface types make image acquisition susceptible to high reflectivity or excessively low brightness, resulting in missing image details or inaccurate feature extraction. At the same time, the movement of electronic devices during the shooting process can cause mismatch in the poses of multiple frames, increasing the error in 3D reconstruction.
[0056] Therefore, in some embodiments, the interior space of the refrigerator is photographed by jointly controlling a flash device, a camera device, and an inertial sensor to obtain multiple target images. This includes: identifying the surface type of the area to be photographed inside the refrigerator; if the area to be photographed is a reflective surface, controlling the flash device to flash at multiple preset polarization angles and controlling the camera device to acquire images of the interior of the refrigerator during the flashing, thereby obtaining multiple original images with polarization information; if the area to be photographed is a non-reflective surface, controlling the camera device to acquire images of the interior of the refrigerator with different exposure parameters, thereby obtaining multiple original images with brightness information; in any case, the sensing data output by the inertial sensor is simultaneously acquired to determine the acquisition posture of each acquired original image, and the multiple original images under each acquisition posture are synthesized to obtain multiple target images.
[0057] When an electronic device takes a picture of the interior space of a refrigerator, it first analyzes the current image data inside the refrigerator to identify the surface type of the area to be photographed, including but not limited to transparent, metallic, or plastic materials.
[0058] When the area to be photographed is a reflective surface, the electronic device controls the flash device to flash at multiple preset polarization angles, and at the same time controls the camera device to complete the acquisition of multiple frames of raw images during the flashing, thereby recording the reflection information under different polarization conditions.
[0059] When the area to be photographed is a non-reflective surface, the electronic device controls the camera to acquire multiple frames of raw images with different exposure parameters in order to cover the details of the highlight and shadow areas.
[0060] In any of the above situations, the electronic device will synchronously acquire the acquisition attitude information output by the inertial sensor to calibrate the spatial reference of multiple frames of original images. Then, based on each frame of images and its acquisition attitude, it will be synthesized through an image fusion algorithm to generate multiple frames of target images containing uniform exposure and stable geometric information for subsequent 3D modeling processing.
[0061] In the above embodiments, by identifying the surface type of the area to be photographed, and then adopting differentiated shooting parameter control schemes for reflective and non-reflective surfaces, and combining the attitude information of the inertial sensor, the multi-frame original images are spatially consistent through synthesis processing. This effectively reduces image distortion and feature loss in reflective areas in the complex and diverse material environment inside the refrigerator, while ensuring sufficient brightness details in weak texture areas. This provides more stable and accurate data input for subsequent 3D spatial reconstruction. Combining the acquisition attitude with image synthesis can avoid multi-frame misalignment caused by device shaking or attitude changes, thereby improving the overall accuracy and robustness of 3D modeling of the refrigerator space and bringing a more realistic and natural user interaction experience in augmented reality visualization scenarios.
[0062] In some embodiments, a three-dimensional modeling result corresponding to the internal space of a refrigerator is generated based on multiple target images and their corresponding polarization information and acquisition posture. This includes: using a joint filtering algorithm to estimate the pose of the multiple target images and their corresponding acquisition posture to obtain the pose estimation result of each target image; performing triangulation based on the pose estimation result of each target image and the spatial overlap relationship between the images to obtain the position coordinates of feature points on the internal surface of the refrigerator in three-dimensional space, and combining the position coordinates to generate three-dimensional point cloud data for characterizing the internal structure of the refrigerator; extracting target image features from the multiple target images, and performing three-dimensional spatial modeling operations based at least on the target image features and the three-dimensional point cloud data to obtain a three-dimensional modeling result corresponding to the internal space of the refrigerator.
[0063] Among them, the joint filtering algorithm refers to the filtering method that uses image feature information and the acquisition attitude information output by the inertial sensor to jointly optimize and estimate the pose of the image frame, such as extended Kalman filtering and factor graph optimization.
[0064] Based on multiple frames of target images and their corresponding polarization information and acquisition posture, the electronic device first uses a joint filtering algorithm to estimate the pose of each frame of images, obtaining the spatial position and orientation of each frame inside the refrigerator, ensuring the accuracy and consistency of the geometric reference for subsequent calculations. Subsequently, based on these pose estimation results and the spatial overlap areas between image frames, the three-dimensional position coordinates of each feature point on the internal surface of the refrigerator are calculated using triangulation, and these position coordinates are integrated into a set of three-dimensional point cloud data to describe the shape contour of the internal structure of the refrigerator. Finally, the electronic device also extracts image features that can characterize surface texture and color from the multiple frames of target images, and performs spatial modeling operations in combination with the aforementioned three-dimensional point cloud data, thereby obtaining higher quality and more detailed three-dimensional modeling results of the refrigerator's interior.
[0065] In the above embodiments, pose estimation is performed by using a joint filtering algorithm based on multiple target images and their acquisition poses, and triangulation is performed by combining the spatial overlap relationship between each frame of images to obtain the three-dimensional coordinates of feature points on the internal surface of the refrigerator. These coordinates are then integrated to form point cloud data. Simultaneously, image features are extracted and fused into the subsequent spatial modeling process. This significantly improves the geometric accuracy and texture fidelity of the three-dimensional reconstruction results of the internal structure of the refrigerator, thereby significantly improving the interactive visualization performance in augmented reality views.
[0066] For refrigerators with a large number of highly reflective materials such as metal shelves and glass shelves inside, it is difficult to accurately restore their true surface properties by simply relying on ordinary images or depth information for reconstruction. This is especially true in areas with complex lighting, weak texture, or high gloss, which can lead to missing 3D point clouds or surface semantic errors.
[0067] Therefore, in some embodiments, the method further includes: determining the corresponding three-dimensional spatial sampling point based on the acquisition posture of each frame of original image; for each three-dimensional spatial sampling point, fusing original image features from corresponding original images at multiple preset polarization angles to generate fused features for the targeted three-dimensional spatial sampling point; and using a neural radiation field model to identify the fused features to determine whether the targeted three-dimensional spatial sampling point belongs to a reflective surface area and to determine the corresponding reflective material label.
[0068] Three-dimensional spatial sampling points refer to discrete spatial locations selected in the three-dimensional space inside the refrigerator based on the posture and shooting parameters collected by the electronic device, which are used for subsequent surface attribute identification and modeling.
[0069] Neural radiance field models refer to models that use deep learning methods to fit the distribution of color, density, and surface properties in three-dimensional space, such as NeRF (Neural Radiance Fields) and its lightweight variants.
[0070] Based on the acquisition posture of each frame of the original image, the electronic device predetermines a set of representative three-dimensional spatial sampling points in the interior space of the refrigerator. For each sampling point, image features are extracted from the original images acquired at multiple preset polarization angles. A feature fusion algorithm is used to generate a fused feature vector for that sampling point. Subsequently, the electronic device inputs the fused features into a neural radiation field model for inference to determine whether the three-dimensional spatial sampling point is located in a reflective surface area and outputs the corresponding reflective material label information to supplement the material properties and semantic segmentation information for the subsequent three-dimensional structure.
[0071] In the above embodiments, by fusing the image features collected from three-dimensional spatial sampling points under multiple polarization angles and using a neural radiation field model to identify the material of the fused features, more refined surface property estimation can be achieved in areas with reflectivity, weak texture, or uneven lighting inside the refrigerator. This significantly enhances the ability to express material types in subsequent three-dimensional modeling results and provides a more realistic and intuitive visualization effect for augmented reality scenes.
[0072] In some embodiments, fusing original image features from corresponding original images at multiple preset polarization angles to generate fused features for the target three-dimensional spatial sampling point includes: for each three-dimensional spatial sampling point, inputting the original image features from corresponding original images at multiple preset polarization angles and the corresponding acquisition pose into an attention mechanism network, calculating the attention weight of each original image feature; and performing weighted fusion of the original image features based on the attention weights to generate fused features for the target three-dimensional spatial sampling point.
[0073] When generating fused features for each 3D spatial sampling point, the electronic device inputs the original image features captured from multiple preset polarization angles, along with the corresponding frame's acquisition pose information, into an attention mechanism network for processing. The attention mechanism network analyzes the contribution of different image features to the current sampling point, calculates the attention weight of each image feature, and performs weighted fusion of all input features based on this weight. Finally, it outputs the fused feature vector for that 3D spatial sampling point, which is used for subsequent material type or surface reflection property discrimination.
[0074] In the above embodiments, by introducing an attention mechanism into the original image features acquired from multiple polarization perspectives, the contribution of each image feature is dynamically calculated for each three-dimensional spatial sampling point and weighted fusion is performed. This can significantly improve the feature consistency and discriminative power of reflective or weakly textured surface areas in the multi-view modeling process, thereby enhancing the material recognition and surface restoration accuracy of the refrigerator's interior space, and improving the realism and stability of three-dimensional visualization and subsequent augmented reality interactive experience.
[0075] Furthermore, in some embodiments, a three-dimensional spatial modeling operation is performed based at least on the target image features and the three-dimensional point cloud data to obtain a three-dimensional modeling result corresponding to the internal space of the refrigerator, including: fusing the target image features, reflective surface areas and reflective material labels with the three-dimensional point cloud data to obtain fused three-dimensional point cloud data; and performing a three-dimensional spatial modeling operation based on the fused three-dimensional point cloud data to generate a three-dimensional modeling result corresponding to the internal space of the refrigerator.
[0076] After completing material identification and point cloud reconstruction of the sampling points in three-dimensional space, the electronic device fuses the extracted target image features, marked reflective surface areas and their material label information with the spatial coordinates of the three-dimensional point cloud at the feature level, forming a fused three-dimensional point cloud data that includes geometric structure, texture characteristics, and surface attributes. Subsequently, the electronic device performs three-dimensional spatial modeling operations based on this fused point cloud data to generate a more complete three-dimensional modeling result with material differentiation capabilities that can be used for augmented reality visualization.
[0077] In the above embodiments, by fusing image features, material labels and spatial point cloud information to form fused three-dimensional point cloud data, and performing spatial modeling operations based on this, a more accurate, continuous and detailed three-dimensional model can be obtained on complex surfaces and in multi-material environments inside the refrigerator, thereby greatly improving the practicality and robustness of the model in augmented reality visualization and subsequent intelligent management processes.
[0078] When performing 3D spatial modeling of the refrigerator's interior on a mobile electronic device, limitations such as device computing power, battery power, or real-time requirements can lead to low operating efficiency, overheating, or even a sluggish user experience if high-load computing is performed locally. On the other hand, relying entirely on cloud computing may result in visualization interruptions or privacy leaks due to network bandwidth and latency.
[0079] To this end, the method further includes: determining the current local computing power; if the local computing power meets the modeling execution conditions, performing local modeling operations based at least on the target image features and 3D point cloud data to generate a 3D modeling result corresponding to the internal space of the refrigerator; if the local computing power does not meet the modeling execution conditions, at least compressing the target image features and 3D point cloud data, and at least uploading the compressed target image features and 3D point cloud data to a cloud server to receive the 3D modeling result generated by the cloud server.
[0080] The electronic device first detects its current local computing power, including but not limited to CPU / GPU load, available storage space and network status, and determines whether it meets the requirements for direct 3D modeling based on preset modeling execution conditions.
[0081] When local computing resources meet the requirements, the electronic device uses one or more of the currently acquired and processed data, including original image features, target image features, reflective material labels, and 3D point cloud data, to perform 3D spatial reconstruction and generate 3D modeling results locally.
[0082] When the local computing power is insufficient to meet the real-time modeling requirements, the electronic device compresses one or more of the following: original image features, target image features, reflective material labels, and 3D point cloud data, and uploads them to the cloud server. The cloud then completes the 3D modeling and returns the results to ensure that the user always obtains a stable 3D visualization effect.
[0083] In the above embodiments, by using a dynamic scheduling mechanism that prioritizes local modeling when conditions are met based on the current local computing power of electronic devices, and automatically switches to cloud modeling when computing power is insufficient, the speed, accuracy and visualization continuity of 3D modeling can be continuously guaranteed in the complex environment inside the refrigerator, avoiding delays, stutters and model quality degradation during user interaction, while improving overall modeling efficiency and user experience.
[0084] In some embodiments, the 3D modeling results are overlaid on a 3D view in an augmented reality manner to visualize the interior space of the refrigerator, including: aligning the 3D modeling results with the original image of the refrigerator's interior space taken by the camera to determine the projection position of the 3D modeling results in the 3D view; and based on the projection position, overlaying the 3D modeling results as a virtual layer in the 3D view to visualize the interior space of the refrigerator.
[0085] After obtaining the three-dimensional model of the refrigerator's interior space, the electronic device first aligns the spatial coordinate information of the three-dimensional model with the coordinate system of the original image of the refrigerator's interior that has been captured. Then, it determines the projection position of the three-dimensional model from the camera's perspective through feature matching or pose calculation algorithms.
[0086] After the coordinate alignment is completed, the electronic device overlays the 3D modeling results as a virtual layer onto the 3D view based on the projection position. This allows users to see the enhanced 3D structural information while observing the real-time screen, creating an intuitive and immersive visualization effect.
[0087] In the above embodiments, by aligning the coordinates of the 3D modeling results with the original image of the refrigerator's internal space and displaying them as virtual layers in the 3D view, the matching degree between the 3D model and the real image can be significantly improved, reducing the user's visual perception bias, enhancing the management and viewing efficiency of the refrigerator space, and bringing a more intuitive, realistic and easy-to-operate augmented reality interactive experience.
[0088] Because the interior space of a refrigerator is relatively small, and in 3D views, users often only focus on a specific area (such as the area where they are taking out food), rendering the entire 3D model at the same resolution will cause unnecessary resource consumption, leading to overheating of electronic devices, high power consumption, and rendering stuttering, thus reducing the smoothness of the augmented reality experience.
[0089] Therefore, in some embodiments, the 3D modeling results are overlaid on a 3D view in an augmented reality manner to visualize the interior space of the refrigerator. This includes: determining the viewpoint-focused and non-focused areas of the 3D modeling results based on the current display area in the 3D view, the user's interactive operations, and the spatial range occupied by the modeling area; rendering the viewpoint-focused areas using a first resolution; and rendering the non-focused areas using a second resolution or performing interpolation based on the center region; wherein the first resolution is higher than the second resolution.
[0090] When electronic devices overlay 3D modeling results onto a 3D view for augmented reality display, they dynamically identify the current area of interest and non-interest based on the display area of the real-time 3D view, user interactions (such as zooming, rotating, and clicking), and the area occupied by the refrigerator space model. For the area of interest, the electronic device performs high-precision rendering at a first resolution to ensure the visualization quality of details; while for the non-interest areas, it performs low-precision rendering at a second resolution, or supplements details using interpolation techniques based on the central region to reduce computational overhead. The first resolution is higher than the second resolution, thus balancing visual quality and performance load.
[0091] In the above embodiments, by distinguishing between the areas of interest and non-interest in the augmented reality 3D view and adopting multi-resolution or interpolation completion strategies, it is possible to effectively reduce the overall computing power requirements, reduce device energy consumption and heat generation, and significantly improve the real-time performance and user experience of the 3D visualization of the refrigerator's internal space while ensuring that the rendering of the key areas of interest to the user is clear and smooth.
[0092] In some embodiments, the method further includes: responding to an interaction command triggered by a user in a 3D view, performing a display adjustment operation related to the 3D modeling result; the interaction command is used to adjust the display content or display mode of the 3D modeling result; wherein the display adjustment operation includes at least one of the following: hiding, making transparent, or highlighting the material of a portion of the structure in the 3D modeling result; performing viewpoint transformation operations such as zooming in / out, rotating, or perspective switching on the selected area; and performing alignment correction or coordinate reprojection processing on the 3D modeling result based on a reference point selected by the user.
[0093] When an electronic device overlays a 3D model of the refrigerator's interior space onto an augmented reality display, it continuously listens for user input via touch, voice, buttons, or gestures, and executes corresponding display adjustments based on these commands. These adjustments may include hiding or making transparent portions of the 3D model, or highlighting specific materials; they may also include zooming in, zooming out, rotating, or switching perspectives on selected areas; furthermore, based on user-selected reference points, the device can perform coordinate alignment corrections or reprojection on the 3D model, thus achieving a more flexible and personalized visualization.
[0094] In the above embodiments, by introducing user-triggerable interactive commands into the 3D augmented reality visualization and performing targeted display adjustment operations such as hiding, transparency, material highlighting, viewpoint switching, or alignment correction, the operational flexibility and adaptability of the 3D modeling results can be greatly improved. This allows users to perform more granular visualization control according to their own management needs, thereby bringing a more intuitive, efficient, and immersive interactive experience in refrigerator space management and subsequent food preparation.
[0095] In some embodiments, the method further includes: in the initial calibration mode, loading preset calibration parameters and constructing a reference coordinate system for characterizing the spatial relationship between the electronic device and the internal space of the refrigerator; during the process of shooting the internal space of the refrigerator, detecting acquisition errors based on the time synchronization state between the camera device and the inertial sensor, and the registration state between each frame of the original image and the corresponding acquisition posture; when the acquisition error is detected to exceed a preset error threshold, switching to the compensation mode to calculate compensation parameters based on the acquisition error, and updating the reference coordinate system based on the compensation parameters; the reference coordinate system serves as a static reference in subsequent three-dimensional space modeling operations.
[0096] When the electronic device enters the initial calibration mode, it loads the stored preset calibration parameters and constructs a reference coordinate system based on these parameters to describe the relationship between the electronic device and the internal space of the refrigerator. Subsequently, during the actual shooting of the internal space of the refrigerator, the electronic device continuously detects the time synchronization status between the camera and the inertial sensor, as well as the registration status between each frame of the original image and its corresponding acquisition posture, thereby judging the acquisition error. If the acquisition error is detected to exceed a preset threshold, the electronic device automatically switches to the compensation mode, calculates new compensation parameters based on the error, and updates the reference coordinate system to ensure that there is always a stable and accurate spatial reference during the 3D spatial modeling and augmented reality overlay display.
[0097] In the above embodiments, by continuously detecting the synchronization registration status of the image and the acquisition posture during the 3D modeling process and performing compensation correction when the error exceeds the limit, the stability of the spatial coordinate system for modeling the internal space of the refrigerator can be guaranteed, preventing visualization errors caused by sensor drift or time synchronization anomalies, and improving the accuracy, robustness and credibility of the 3D model and augmented reality interaction.
[0098] In some embodiments, the method further includes: taking a new picture of the interior space of the refrigerator after a preset time interval to generate a new three-dimensional modeling result; comparing the new three-dimensional modeling result with the original three-dimensional modeling result, and confirming the validity of the original three-dimensional modeling result if the comparison result meets the consistency condition; and confirming the invalidity of the original three-dimensional modeling result if the comparison result does not meet the consistency condition, and triggering a reconstruction process to update the three-dimensional modeling result.
[0099] After completing the initial 3D modeling of the refrigerator's interior space, the electronic device will automatically re-execute the shooting operation of the refrigerator's interior space at preset time intervals, and generate a new 3D modeling result based on the newly acquired multi-frame images and corresponding acquisition postures. Subsequently, the electronic device will compare and analyze the new 3D modeling result with the original 3D modeling result to determine whether their similarity or difference meets the preset consistency conditions.
[0100] If the comparison results meet the consistency criteria, the original 3D modeling results are confirmed to be valid and do not need to be updated; if the comparison results do not meet the consistency criteria, the original 3D modeling results are confirmed to be invalid and the reconstruction process is triggered to update the 3D model of the refrigerator's internal space to ensure visualization effects and data accuracy.
[0101] In the above embodiments, by re-photographing and 3D modeling the internal space of the refrigerator after a preset time interval, and confirming the validity of the original model or triggering the reconstruction process based on the comparison results, it is possible to ensure that the 3D modeling data of the refrigerator is updated in a timely manner with actual changes, thereby improving the timeliness, accuracy and user trust of spatial information, and continuously providing reliable support for subsequent augmented reality display and intelligent management.
[0102] The following provides a complete embodiment for refrigerator space modeling to facilitate understanding of the implementation of the present application, but does not limit the scope of protection of the present application.
[0103] This embodiment provides a method for modeling the internal space of a refrigerator using an electronic device (such as a regular smartphone) equipped with a flash device, a camera device, and an inertial measurement unit (IMU). The system architecture includes:
[0104] Camera device: Used to acquire multi-angle images of the inside of the refrigerator;
[0105] Flash device: It can emit illumination light at different polarization angles as needed, serving as an active light source;
[0106] Inertial Measurement Unit (IMU): Records the device's position, angular velocity, and acceleration information during shooting;
[0107] Processing module: Enables multimodal information alignment, image fusion, 3D modeling, augmented reality rendering, and dynamic calibration.
[0108] In a specific process, the electronic device performs the following steps:
[0109] (1) Shooting process control
[0110] Based on the identification results of the surface type inside the refrigerator, the electronic device automatically switches between polarization mode and HDR multi-exposure mode. For reflective surfaces, the flash emits flash pulses at preset polarization angles (e.g., 0° / 45° / 90° / 135°), and the camera captures the corresponding images to form an image sequence with polarization information. For ordinary surfaces, the camera takes images under different exposure conditions to enrich the details of light and dark areas. Simultaneously, IMU output data is collected to record the device's attitude information for subsequent 3D reconstruction.
[0111] (2) Image Processing and Spatiotemporal Alignment
[0112] Multi-frame images are synthesized (e.g., HDR fusion) to enhance details; IMU data and camera image features (such as ORB / SIFT keypoints) are used in conjunction, and sliding window optimization or extended Kalman filter (ESKF) is employed to achieve temporal and spatial alignment and pose estimation between multi-frame images; the six-DOF pose sequence corresponding to each frame image is output.
[0113] (3) Extraction of 3D point cloud and material information
[0114] For the aligned image sequence, the three-dimensional position of the points on the internal surface of the refrigerator is calculated based on the triangulation method of the spatially overlapping region; a sparse point cloud is formed, and the polarization information of multiple views is fitted. The normal and roughness are estimated based on the Brewster angle or micro-surface model; combined with the degree of polarization, reflectivity and physical rules, the pixel-level material labels, such as metal, glass and plastic, are output through machine learning (such as decision tree / SVM) or neural radiation field (NeRF) branching.
[0115] (4) Modeling of neural radiation field in edge-cloud collaboration
[0116] When the local computing power of the mobile phone is sufficient, a lightweight NeRF network is used to complete the coarse reconstruction of the model on the device and provide an AR preview. If the local computing power is limited, the compressed feature tensor, point cloud bounding box and material information can be uploaded to the cloud server, where the cloud performs fine NeRF volume rendering, density prediction and material detail optimization. The cloud results are then sent back to the device to achieve a high-precision digital twin model of the refrigerator's interior.
[0117] (5) AR visualization and dynamic interaction
[0118] After the 3D modeling result is generated, the device matches the feature points with the real-time camera footage to align with the coordinate system of the real world and calculates the projection position based on the pose transformation matrix. The model is displayed as a virtual layer in the 3D view and can be dynamically adjusted according to user interaction operations (scaling, rotation, hiding, etc.). High-resolution rendering is used in the areas of interest of the model, while LOD grading (low resolution or interpolation) is used in non-interested areas to ensure smoothness.
[0119] (6) Dynamic calibration mechanism
[0120] In the initial calibration mode, the factory calibration parameters are loaded, and a reference coordinate system is constructed by combining the collected data from the IMU, camera, and light sensor. In the online monitoring mode, the timing synchronization of each sensor and the registration status of multiple frames of images are continuously checked. If the error exceeds the threshold, the system is automatically switched to the compensation mode, the coordinate system is corrected by the compensation matrix, and the parameters are written to non-volatile storage to ensure the modeling accuracy during long-term use.
[0121] (7) Model Continuous Validation and Reconstruction Mechanism
[0122] The system can set time intervals to automatically re-capture and generate new 3D models, and compare the feature points with the original model. If the comparison result is within the consistency threshold range, the original model is confirmed to be valid; otherwise, the user is prompted to re-capture the model and incremental reconstruction is triggered, thereby ensuring that the modeling results remain accurate when the refrigerator status is updated.
[0123] This embodiment achieves significant results in the following aspects:
[0124] By using active polarized illumination with a flash lamp and multi-view image acquisition, the problem of modeling distortion under highly reflective surfaces inside the refrigerator is effectively solved;
[0125] The spatiotemporal alignment based on joint filtering of inertial sensors and visual images significantly reduces jitter and positioning drift, ensuring consistency in reconstruction across multiple consecutive frames.
[0126] The neural radiation field edge-cloud collaborative strategy enables usable fast 3D preview under the limited computing power of mobile phones, while also achieving higher precision detail optimization when conditions permit.
[0127] AR overlay and interactive capabilities enhance user engagement and make the digital refrigerator model more operable.
[0128] Multi-sensor online calibration and error compensation processes ensure stability under long-term use scenarios;
[0129] The dynamic reconstruction mechanism ensures a high degree of matching between the model and the state of the food in the refrigerator, thereby meeting the needs of subsequent intelligent recommendations and food management.
[0130] The three-dimensional modeling method for the internal space of a refrigerator provided in this embodiment can also be applied to a three-dimensional modeling system for the internal space of a refrigerator.
[0131] Figure 2 This is a schematic diagram illustrating the principle architecture of a 3D modeling system for the interior space of a refrigerator provided in some embodiments of this application. For example, as shown... Figure 2 As shown, the system in this embodiment consists of a mobile terminal, edge nodes, and a cloud, and the three form a multi-layered collaborative overall architecture.
[0132] The mobile device includes a camera, an inertial measurement unit (IMU), an LED driver, an LED, a microphone, and a data fusion engine. The camera captures multiple frames of images of the refrigerator's interior. The LED, controlled by the LED driver, provides supplementary lighting through high-frequency flashing at multiple polarization angles. The IMU records six degrees of freedom (DOF) of motion information, and the microphone captures user interaction commands. This multi-source sensor data is fed into the data fusion engine, which achieves time synchronization and spatial coordinate alignment, outputting multimodal registration data containing image features, motion information, polarization information, and interactive voice information.
[0133] Next, the system will perform lightweight rendering and physical simulation locally based on the mobile device's computing power and network status. This includes 3D point cloud reconstruction, material inference, and simulation of the physical state of food ingredients. Alternatively, the fused data can be uploaded to edge nodes. Edge nodes have relatively high computing power and can quickly respond to user interactions in the local model update module. They can also generate augmented reality interfaces through the augmented reality rendering (AR) module and send rendering commands and intermediate results back to the mobile device for display.
[0134] For more refined processing, data can be uploaded to the cloud. The cloud has a federated learning center that can aggregate data from multiple devices to optimize the training network while protecting user privacy. It can also rely on a global model library to achieve high-resolution volume rendering and detailed material structure analysis. The complete digital twin model can be output through a neural rendering framework and then sent back to the mobile device for subsequent visualization management of augmented reality.
[0135] Through this multi-layered architecture, the three-dimensional digital twin information of the refrigerator space can be flexibly switched between multimodal information acquisition, fusion, lightweight inference, rapid local updates, and fine-grained optimization in the cloud, ensuring smooth and accurate augmented reality effects under different hardware and network conditions.
[0136] Figure 3 This is a schematic diagram of a refrigerator space modeling process provided in some embodiments of this application. For example, as shown... Figure 3 As shown, after the user triggers the shooting, the electronic device first enters the environmental detection stage, using optical and depth information to analyze the characteristics of the surface to be photographed inside the refrigerator. If a reflective surface is detected, the polarized light mode is triggered, controlling the flash to blink at multiple preset polarization angles and simultaneously acquire images to obtain sufficient polarization information; if a normal surface is detected, the device enters the standard shooting mode and acquires multiple frames of images under different exposure parameters.
[0137] After acquiring multiple frames of images, a fused image with a rich brightness range is obtained through an HDR synthesis algorithm. Subsequently, feature point extraction and feature descriptor matching are performed on the fused image, and combined with IMU pose information, the image frames and acquisition pose are registered using a spatiotemporal alignment engine.
[0138] After spatiotemporal alignment, the data enters the Neural Radiation Field (NeRF) module. NeRF first performs volumetric density optimization based on sparse point cloud information, and then performs material rendering on different surfaces in the image. After obtaining the preliminary 3D model, the system will determine the accuracy of the model through the model verification module. If the model verification does not reach the threshold, incremental re-image (S3) is executed to re-capture the missing areas and return the images to the process; if the model verification passes, it enters the LOD grading stage, using high-precision rendering for the central area and low-precision rendering or interpolation optimization for the edge areas. After completion, AR projection (S4) is used to accurately overlay the final 3D modeling result onto the real refrigerator scene for display, achieving augmented reality visualization effects.
[0139] Figure 4 This is a timing diagram illustrating the multi-sensor data acquisition and collaborative control process provided in some embodiments of this application. For example, as shown... Figure 4 As shown, in multi-frame shooting, the camera, LED driver, LED, and inertial measurement unit (IMU) achieve efficient multimodal data acquisition through strict timing control.
[0140] Specifically, when the flash begins to blink, the LED Driver sends a high-frequency pulse control signal to the LED, controlling its on / off state with a 5ms cycle. Simultaneously, it sends a trigger signal to the camera via microsecond-level timing logic, ensuring strict alignment between the camera's image acquisition window and the LED flash cycle to guarantee sufficient polarization information acquisition. At each frame of image acquisition, the electronic device also collects the current quaternion attitude and three-axis acceleration data packets via the IMU, performing time synchronization and spatial alignment with the image frame.
[0141] During this process, the image information captured by the camera records the reflection characteristics of different materials under polarized light illumination, facilitating subsequent material classification. Through the aforementioned collaborative control loop, the system forms a continuous and consistent multimodal registration information flow, which is input to the subsequent 3D modeling and AR rendering modules, providing sustainable and accurate multi-source information support for subsequent modeling and augmented reality visualization.
[0142] Figure 5 This is a schematic diagram of a refrigerator space modeling neural radiation field processing structure provided in some embodiments of this application. For example, as shown... Figure 5 As shown, after receiving multiple frames of images and corresponding pose information, the neural radiation field processing structure first enters the encoding module, which jointly encodes the image pixel information and the position of the three-dimensional space sampling point to form a spatial perception feature vector.
[0143] The encoded results are fed into the attention mechanism optimization module, which performs weighted filtering of multi-frame image features based on camera viewpoint direction, sampling point visibility, and lighting conditions, highlighting viewpoint information with higher reference value and weakening occluded or out-of-focus areas.
[0144] Subsequently, the optimized features enter the feature processing network, where pixel appearance, sampling point location, and multi-frame image information are fused to form an intermediate vector for high-fidelity volume reconstruction. This intermediate vector then passes through an expert routing module, automatically routing different regions to appropriate expert sub-networks: for example, areas with strong reflection or highlights are routed to an expert network integrating BSDF (Bidirectional Spreading Distribution Function) for more accurate reconstruction of reflection and refraction behavior; while regular regions are routed to a standard NeRF sub-network for dense volume rendering.
[0145] Finally, the outputs of all sub-networks are integrated in the fusion module, outputting the RGB color prediction value and volume density information of each three-dimensional space sampling point, realizing high-fidelity and interpretable three-dimensional reconstruction of the refrigerator's internal space, and can flexibly take into account the adaptability of various complex materials inside the refrigerator through a modular routing mechanism.
[0146] Figure 6This is a schematic diagram illustrating the refrigerator space modeling, calibration, and compensation execution process provided in some embodiments of this application. For example, as shown... Figure 6 As shown, when the electronic device experiences a significant change in the refrigerator environment or is powered on for the first time, it enters the initial calibration mode, loads the calibration parameter file pre-stored by the device, and establishes a reference coordinate system to characterize the relationship between the internal space of the refrigerator and the device.
[0147] Then it enters the online monitoring mode. In this mode, the system will continuously monitor the time synchronization status between the camera device and the IMU, and detect the registration status between each frame of the original image and its acquisition posture to verify whether it is maintained within a reasonable error range.
[0148] When the detected error exceeds the preset threshold, the system enters the compensation execution mode. The system quickly calculates the compensation parameters (including the compensation matrix or calibration update value) based on the detected registration error, updates the reference coordinate system, and writes the compensation parameters into non-volatile memory (NVM) so that accurate calibration can be maintained on the next startup.
[0149] This closed-loop calibration and compensation mechanism ensures that IMU drift and camera distortion caused by temperature, humidity, or vibration conditions inside the refrigerator can be continuously corrected, guaranteeing that the entire 3D modeling and augmented reality rendering work continuously in a unified and accurate coordinate system, maintaining a stable visualization experience.
[0150] The refrigerator internal space modeling method provided in this application can be executed by a refrigerator internal space modeling device. This application uses the refrigerator internal space modeling device executing the refrigerator internal space modeling method as an example to illustrate the refrigerator internal space modeling device provided in this application.
[0151] This application also provides a refrigerator internal space modeling device, which is applied to electronic devices.
[0152] Figure 7 This is a structural schematic diagram of a refrigerator internal space modeling device provided in some embodiments of this application. For example... Figure 7 As shown, the refrigerator interior space modeling device includes a data acquisition module 701, a modeling module 702, and a display module 703. Wherein:
[0153] The acquisition module 701 is used to capture images of the interior space of the refrigerator by jointly controlling the flash device, the camera device and the inertial sensor, and obtain multiple frames of target images; each frame of target image corresponds to polarization information and acquisition attitude.
[0154] Modeling module 702 is used to generate a 3D modeling result corresponding to the internal space of the refrigerator based on multiple frames of target images, their corresponding polarization information, and acquisition posture.
[0155] The display module 703 is used to overlay the 3D modeling results onto the 3D view in an augmented reality manner to visualize the interior space of the refrigerator.
[0156] According to the refrigerator interior space modeling device provided in this application embodiment, through multiple shots and flash illumination at different polarization angles, detailed information of the refrigerator interior under different lighting and reflection conditions can be fully acquired, enabling subsequent algorithms to distinguish the real surface material characteristics, avoid reflection interference, and improve the accuracy of surface details in 3D reconstruction. The device posture information corresponding to the acquisition of each frame of image can ensure the geometric consistency between multiple frames of images, assist in 3D coordinate positioning in the subsequent reconstruction process, and reduce the risk of point cloud mismatch or structural distortion. The 3D modeling result is generated based on multiple target images, polarization information, and acquisition posture, so that the spatial geometry can maintain good 3D accuracy even under weak texture and highly reflective surface conditions, reducing point cloud holes, drift, or surface damage. Finally, the 3D model and real-time image are aligned through augmented reality mode, and the real image is superimposed in an augmented reality manner, bringing a clear, real-time, and naturally interactive 3D visualization effect, significantly improving the digital perception and management level of the refrigerator interior space.
[0157] In some embodiments, the acquisition module is further configured to identify the surface type of the area to be photographed inside the refrigerator; when the area to be photographed is a reflective surface, the flash device is controlled to flash at multiple preset polarization angles, and the camera device is controlled to acquire images of the inside of the refrigerator during the flashing period, thereby obtaining multiple frames of original images with polarization information; when the area to be photographed is a non-reflective surface, the camera device is controlled to acquire images of the inside of the refrigerator with different exposure parameters, thereby obtaining multiple frames of original images with brightness information; in any case, the sensing data output by the inertial sensor is synchronously acquired to determine the acquisition posture of each frame of original image acquired, and the multiple frames of original images under each acquisition posture are synthesized to obtain multiple frames of target images.
[0158] In some embodiments, the modeling module is further configured to perform pose estimation on multiple target images and their corresponding acquisition poses using a joint filtering algorithm to obtain the pose estimation result of each target image; perform triangulation based on the pose estimation result of each target image and the spatial overlap relationship between the images to obtain the position coordinates of the feature points on the internal surface of the refrigerator in three-dimensional space, and combine the position coordinates to generate three-dimensional point cloud data for characterizing the internal structure of the refrigerator; extract the target image features of the multiple target images, and perform three-dimensional space modeling operations based at least on the target image features and the three-dimensional point cloud data to obtain the three-dimensional modeling result corresponding to the internal space of the refrigerator.
[0159] In some embodiments, the modeling module is further configured to determine the corresponding three-dimensional spatial sampling point based on the acquisition posture of each frame of the original image; for each three-dimensional spatial sampling point, fuse the original image features from the corresponding original images at multiple preset polarization angles to generate the fused features of the targeted three-dimensional spatial sampling point; and use a neural radiation field model to identify the fused features to determine whether the targeted three-dimensional spatial sampling point belongs to a reflective surface area and to determine the corresponding reflective material label.
[0160] In some embodiments, the modeling module is further configured to, for each three-dimensional spatial sampling point, input the original image features from the corresponding original images at multiple preset polarization angles and the corresponding acquisition poses into the attention mechanism network, calculate the attention weights of each original image feature, and, based on the attention weights, perform weighted fusion of the original image features to generate the fused features of the targeted three-dimensional spatial sampling point.
[0161] In some embodiments, the modeling module is further configured to fuse target image features, reflective surface areas, and reflective material labels with three-dimensional point cloud data to obtain fused three-dimensional point cloud data; and to perform three-dimensional spatial modeling operations based on the fused three-dimensional point cloud data to generate a three-dimensional modeling result corresponding to the internal space of the refrigerator.
[0162] In some embodiments, the apparatus further includes a deployment module for determining the current local computing power; if the local computing power meets the modeling execution conditions, performing local modeling operations based at least on the target image features and 3D point cloud data to generate a 3D modeling result corresponding to the internal space of the refrigerator; if the local computing power does not meet the modeling execution conditions, at least compressing the target image features and 3D point cloud data, and at least uploading the compressed target image features and 3D point cloud data to a cloud server to receive the 3D modeling result generated by the cloud server.
[0163] In some embodiments, the display module is further configured to align the coordinates of the 3D modeling result with the original image of the refrigerator's interior space captured by the camera, and determine the projection position of the 3D modeling result in the 3D view; based on the projection position, the 3D modeling result is overlaid and displayed in the 3D view as a virtual layer, so as to visualize the refrigerator's interior space.
[0164] In some embodiments, the display module is further configured to determine the view-focused and non-focused regions of the 3D modeling result based on the current display area in the 3D view, the user's interactive operation, and the spatial range occupied by the modeling area; for the view-focused regions, a first resolution is used for rendering; for the non-focused regions, a second resolution is used for rendering or interpolation completion based on the center region is performed; wherein, the first resolution is higher than the second resolution.
[0165] In some embodiments, the above-described apparatus further includes an interaction module, configured to perform display adjustment operations related to the 3D modeling results in response to an interaction command triggered by a user in a 3D view; the interaction command is used to adjust the display content or display mode of the 3D modeling results; wherein the display adjustment operations include at least one of the following: hiding, making transparent, or highlighting the material of a portion of the structure in the 3D modeling results; performing viewpoint transformation operations such as zooming in / out, rotating, or perspective switching on a selected area; and performing alignment correction or coordinate reprojection processing on the 3D modeling results based on a reference point selected by the user.
[0166] In some embodiments, the device further includes a compensation module, used to load preset calibration parameters and construct a reference coordinate system to characterize the spatial relationship between the electronic device and the internal space of the refrigerator in the initial calibration mode; during the process of shooting the internal space of the refrigerator, the acquisition error is detected based on the time synchronization state between the camera device and the inertial sensor and the registration state between each frame of the original image and the corresponding acquisition posture; when the acquisition error is detected to exceed a preset error threshold, the device switches to the compensation mode to calculate compensation parameters based on the acquisition error and update the reference coordinate system based on the compensation parameters; the reference coordinate system serves as a static reference in subsequent three-dimensional space modeling operations.
[0167] In some embodiments, the above-mentioned device further includes an update module, which is used to re-photograph the internal space of the refrigerator after a preset time interval to generate a new three-dimensional modeling result; compare the new three-dimensional modeling result with the original three-dimensional modeling result, and confirm the validity of the original three-dimensional modeling result if the comparison result meets the consistency condition; and confirm the invalidity of the original three-dimensional modeling result if the comparison result does not meet the consistency condition, and trigger a reconstruction process to update the three-dimensional modeling result.
[0168] The refrigerator interior space modeling device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal device. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. This application embodiment does not specifically limit the specific device.
[0169] The refrigerator internal space modeling device in this application embodiment can be a device with an operating system. This operating system can be a Microsoft (Windows) operating system, an Android operating system, an iOS operating system, or other possible operating systems; this application embodiment does not specifically limit it.
[0170] The refrigerator internal space modeling device provided in this application embodiment can realize the various processes implemented in the various method embodiments. To avoid repetition, it will not be described again here.
[0171] Figure 8 This is a schematic diagram of the structure of an electronic device provided in some embodiments of this application. In some embodiments, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor 801. When the program is executed by the processor 801, it implements the various processes of the above-described method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here.
[0172] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0173] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described refrigerator internal space modeling method embodiment and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0174] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0175] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described refrigerator internal space modeling method.
[0176] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0177] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described refrigerator internal space modeling method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0178] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0179] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0180] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0181] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0182] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0183] Unless otherwise specified, all embodiments and optional embodiments of this application can be combined to form new technical solutions.
[0184] Unless otherwise specified, all technical features and optional technical features of this application may be combined to form new technical solutions.
[0185] Unless otherwise specified, all steps of this application may be performed sequentially or randomly, preferably sequentially. For example, the method includes steps (a) and (b), indicating that the method may include steps (a) and (b) performed sequentially, or it may include steps (b) and (a) performed sequentially. For example, the mention that the method may also include step (c) indicates that step (c) may be added to the method in any order; for example, the method may include steps (a), (b), and (c), or it may include steps (a), (c), and (b), or it may include steps (c), (a), and (b), etc.
[0186] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for modeling the internal space of a refrigerator, characterized in that, Applied to electronic devices equipped with a flash device, a camera device, and an inertial sensor; the method includes: By jointly controlling the flash device, camera device and inertial sensor, the internal space of the refrigerator is photographed to obtain multiple frames of target images; each frame of target image corresponds to polarization information and acquisition attitude; Based on the multi-frame target images and their corresponding polarization information and acquisition posture, a three-dimensional modeling result corresponding to the internal space of the refrigerator is generated. The 3D modeling results are overlaid on the 3D view in an augmented reality manner to visualize the interior space of the refrigerator.
2. The method according to claim 1, characterized in that, The method involves jointly controlling a flash device, a camera device, and an inertial sensor to capture images of the interior space of the refrigerator, obtaining multiple frames of target images, including: Identify the surface type of the area to be photographed inside the refrigerator; When the area to be photographed is a reflective surface, the flash device is controlled to flash at multiple preset polarization angles, and the camera device is controlled to capture images of the inside of the refrigerator during the flashing, so as to obtain multiple frames of original images with polarization information. When the area to be photographed is a non-reflective surface, the camera device is controlled to capture images of the inside of the refrigerator with different exposure parameters to obtain multiple frames of original images with brightness information. In any case, the sensing data output by the inertial sensor is acquired synchronously to determine the acquisition posture of each frame of the original image, and the multiple frames of the original image under each acquisition posture are synthesized to obtain multiple frames of target image.
3. The method according to claim 1, characterized in that, The process of generating a 3D modeling result corresponding to the internal space of the refrigerator based on the multi-frame target images, their corresponding polarization information, and acquisition posture includes: A joint filtering algorithm is used to estimate the pose of the multi-frame target images and their corresponding acquisition poses to obtain the pose estimation results of each frame of the target image. Based on the pose estimation results of each frame of the target image and the spatial overlap relationship between each frame of the image, triangulation is performed to obtain the position coordinates of the feature points on the internal surface of the refrigerator in three-dimensional space. The position coordinates are then combined to generate three-dimensional point cloud data for characterizing the internal structure of the refrigerator. Extract the target image features from the multiple target images, and perform a three-dimensional spatial modeling operation based at least on the target image features and three-dimensional point cloud data to obtain a three-dimensional modeling result corresponding to the internal space of the refrigerator.
4. The method according to claim 3, characterized in that, The method further includes: Based on the acquisition posture of each frame of the original image, the corresponding three-dimensional spatial sampling points are determined. For each three-dimensional spatial sampling point, the original image features from the corresponding original images at multiple preset polarization angles are fused to generate the fused features of the targeted three-dimensional spatial sampling point. The fused features are identified using a neural radiation field model to determine whether the targeted three-dimensional spatial sampling point belongs to a reflective surface area and to identify the corresponding reflective material label.
5. The method according to claim 4, characterized in that, The fusion process involves fusing original image features from multiple preset polarization angles to generate fused features for the targeted three-dimensional spatial sampling points, including: For each three-dimensional spatial sampling point, the original image features and corresponding acquisition poses from the corresponding original images at multiple preset polarization angles are input into the attention mechanism network to calculate the attention weights of each original image feature. Based on the attention weights, the original image features are weighted and fused to generate fused features for the targeted three-dimensional spatial sampling points.
6. The method according to claim 4, characterized in that, The step of performing a three-dimensional spatial modeling operation based at least on the target image features and three-dimensional point cloud data to obtain a three-dimensional modeling result corresponding to the internal space of the refrigerator includes: The target image features, the reflective surface area, and the reflective material label are fused with the 3D point cloud data to obtain the fused 3D point cloud data. Based on the fused 3D point cloud data, a 3D spatial modeling operation is performed to generate a 3D modeling result corresponding to the internal space of the refrigerator.
7. The method according to any one of claims 3 to 5, characterized in that, The method further includes: Determine the current local computing capacity; If the local computing power meets the modeling execution conditions, at least the target image features and 3D point cloud data are used to perform local modeling operations to generate a 3D modeling result corresponding to the internal space of the refrigerator. If the local computing power is insufficient to meet the modeling execution conditions, the target image features and 3D point cloud data shall be compressed at least, and the compressed target image features and 3D point cloud data shall be uploaded to the cloud server to receive the 3D modeling results generated by the cloud server.
8. The method according to claim 1, characterized in that, The step of overlaying the 3D modeling results onto a 3D view in an augmented reality manner to visualize the interior space of the refrigerator includes: Align the three-dimensional modeling result with the original image of the refrigerator's interior space by coordinates to determine the projection position of the three-dimensional modeling result in the three-dimensional view. Based on the projection position, the 3D modeling results are overlaid and displayed in the 3D view as virtual layers to visualize the interior space of the refrigerator.
9. The method according to claim 1 or 8, characterized in that, The step of overlaying the 3D modeling results onto a 3D view in an augmented reality manner to visualize the interior space of the refrigerator includes: Based on the current display area in the 3D view, the user's interactive operations, and the spatial range occupied by the modeling area, determine the viewpoint of interest and non-interest areas of the 3D modeling result; For the area of interest in the viewpoint, a first resolution is used for rendering. For the non-interested areas, a second resolution is used for rendering or interpolation based on the center region is performed; wherein, the first resolution is higher than the second resolution.
10. The method according to claim 1 or 8, characterized in that, The method further includes: In response to an interaction command triggered by the user in the 3D view, a display adjustment operation related to the 3D modeling result is executed; the interaction command is used to adjust the display content or display mode of the 3D modeling result. The display adjustment operation includes at least one of the following: Hide, make transparent, or highlight the materials of some structures in the 3D modeling results; Perform perspective transformation operations such as zooming in / out, rotating, or switching perspective on the selected area; Based on the user-selected reference point, the 3D modeling results are aligned or reprojected.
11. The method according to claim 1, characterized in that, The method further includes: In the initial calibration mode, preset calibration parameters are loaded, and a reference coordinate system is constructed to characterize the spatial relationship between the electronic device and the internal space of the refrigerator. During the process of filming the interior space of the refrigerator, the acquisition error is detected based on the time synchronization status between the camera device and the inertial sensor, and the registration status between each frame of the original image and the corresponding acquisition posture. When the acquisition error is detected to exceed a preset error threshold, the system switches to compensation mode to calculate compensation parameters based on the acquisition error and update the reference coordinate system based on the compensation parameters; the reference coordinate system serves as a static reference in subsequent 3D space modeling operations.
12. The method according to claim 1, characterized in that, The method further includes: After a preset time interval, the interior space of the refrigerator is photographed again to generate a new 3D model result; The new 3D modeling result is compared with the original 3D modeling result, and if the comparison result meets the consistency condition, the original 3D modeling result is confirmed to be valid. If the comparison results do not meet the consistency conditions, the original 3D modeling results are confirmed to be invalid, and the reconstruction process is triggered to update the 3D modeling results.
13. A refrigerator interior space modeling device, characterized in that, An electronic device comprising a flash unit, a camera unit, and an inertial sensor; the device includes: The acquisition module is used to capture images of the interior space of the refrigerator by jointly controlling the flash device, camera device and inertial sensor to obtain multiple frames of target images; each frame of target image corresponds to polarization information and acquisition attitude; The modeling module is used to generate a three-dimensional modeling result corresponding to the internal space of the refrigerator based on the multi-frame target images, their corresponding polarization information, and the acquisition posture. The display module is used to overlay the 3D modeling results onto the 3D view in an augmented reality manner to visualize the interior space of the refrigerator.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the refrigerator internal space modeling method as described in any one of claims 1-12.
15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the refrigerator internal space modeling method as described in any one of claims 1-12.
