Three-dimensional digital modeling system and method based on real scene video
By using the movable camera platform and inter-frame difference method in dynamic real scenes, combined with the neural network model, the problems of interference from acquisition equipment and illumination changes are solved, efficient and accurate 3D modeling is achieved, and the realism of modeling is improved. and consistency.
Patent Information
- Application Number
- CN202410987992.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-10
AI Technical Summary
Three-dimensional modeling of dynamic real scenes has difficulties in the processing of acquisition device interference, illumination changes, and transient occlusion objects, resulting in low modeling quality and complex operations.
A freely movable camera platform is equipped with a video acquisition module, combined with the inter-frame difference method and neural network model, to distinguish basic modeling objects and gradient objects, and build a three-dimensional model through dense depth maps and brightness compensation technology to reduce equipment interference and adapt to lighting changes. .
It achieves efficient and accurate three-dimensional modeling of dynamic real scenes, reduces operational difficulty and errors, improves the realism and consistency of the model, and adapts to different lighting conditions.
Smart Images

Figure CN118628663A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital image processing, and in particular to a three-dimensional digital modeling system and method based on real scene video. Background Art
[0002] The so-called dynamic real scene is a scene in which the content of the scene or the content of the objects in the scene changes over time. In real life, many fields involve the application of 3D modeling of dynamic scenes, such as the full-process and comprehensive recording of archaeological excavation sites and the generation of archaeological reports, the production of film and television animation, advertising, etc.
[0003] The 3D modeling methods of dynamic real scenes are mainly divided into traditional modeling methods and neural network-based 3D modeling methods. Among them, the traditional 3D modeling method mainly uses video images from multiple different viewpoints to build a 3D model at each moment, and then uses the relationship between the models to build the model's deformation matrix, and finally forms a dynamic 3D digital model. This image-based 3D modeling method requires a large amount of image data and complex operations such as camera calibration. Therefore, the modeling is difficult, and the quality of the constructed 3D model is low. It is impossible to perform 3D modeling on trees, flowers, transparent and translucent objects, etc.
[0004] In recent years, the 3D modeling method using neural networks has developed rapidly. This 3D modeling method mainly uses neural networks to implicitly express 3D scenes. The obtained 3D model is remembered by the neural network. Only the camera's viewpoint and position need to be provided, and the neural network can automatically render a realistic image. This method is simple to collect and requires a small number of collected images. Moreover, its 3D modeling process is the training process of the neural network. The process is relatively simple and can model highlights, transparent and translucent objects, trees, flowers, etc. The modeling has a strong sense of reality (of course, it also depends on the quality of the neural network, but it can also be solved by the amount of training).
[0005] Although the 3D digital modeling technology using neural networks has the above advantages, it still has the following technical difficulties for dynamic real scenes: 1. Since dynamic real scenes are often large, many video cameras need to be deployed on site to record the real scenes in all directions. However, too many acquisition devices will interfere with the dynamic real scenes. 2. Dynamic scenes often last for a long time, and some even last for several months. The lighting of the scene will change over time. Therefore, how to remove the impact of scene lighting on the modeled dynamic real scene is a key technical problem; 3. Dynamic scenes often have transient occlusions or moving objects, such as the movement of workers and animals, and this information does not need to be recorded. How to remove these unnecessary transient objects is a technical challenge. Summary of the invention
[0006] The present invention provides a three-dimensional digital modeling system and method based on real-scene videos, which can reduce the interference of acquisition equipment on dynamic real scenes, compensate for lighting changes in dynamic real scenes, and avoid recording erroneous information.
[0007] In order to solve the above technical problems, this application provides the following technical solutions: The 3D digital modeling system based on real scene video includes: A video acquisition module, which is mounted on a freely movable camera platform and is used to capture two-way dynamic stereoscopic video images in a dynamic real scene in real time after the camera platform is in a stable position; The video analysis module is used to determine the difference between adjacent frames according to the inter-frame difference method, and define the objects in the two-way dynamic stereoscopic video image as basic modeling objects, transient moving objects and gradual modeling objects according to the difference according to the contours; take out a pair of key frames from the two-way dynamic stereoscopic video image after a preset time interval, delete the relevant information of the transient moving objects and the gradual modeling objects, calculate the dense depth map, and obtain three-dimensional point cloud data according to the preset neural network model, and then establish a three-dimensional model M1 of the basic modeling object in the dynamic real scene according to the three-dimensional point cloud data; extract sparse feature points at the same time; then adopt a sparse feature point tracking strategy for all intermediate frames in the two-way dynamic stereoscopic video image, and combine the position of the sparse feature points in the image to obtain the estimated position and posture of the camera; The overall modeling module is used to extract the gradient modeling object, add the time series of the gradient modeling object to the three-dimensional model M1, and obtain the three-dimensional point cloud data of the gradient modeling object by calculating the dense depth map. Then, a pair of key frames are taken out from the dual-channel dynamic stereoscopic video image after a preset interval and sorted, and the average brightness is selected as the brightness compensation coefficient. The three-dimensional point cloud data of the gradient modeling object is mapped and colored to obtain the three-dimensional model M2; then, the pair of key frames taken out of the three-dimensional model M1 and the three-dimensional model M2 are compared, and the brightness of the pair of key frames closest to the taken out is selected as the brightness compensation coefficient. The brightness of the pair of key frames that are significantly different from the taken out is compensated to obtain the final three-dimensional model M3.
[0008] The basic scheme principle and beneficial effects are as follows: In this scheme, a freely movable camera platform is used to carry a video acquisition module to achieve all-round real-time video acquisition of dynamic real scenes. Through the acquisition of two-way dynamic stereo video images, stereoscopic visual information is provided for subsequent modeling.
[0009] The video analysis module uses the inter-frame difference method to determine the difference between adjacent frames and distinguish different types of objects in the scene. Objects are classified into basic modeling objects, transient moving objects, and gradual modeling objects to facilitate precise control of the subsequent modeling process. Through the calculation of dense depth maps and the preset neural network model, the two-way dynamic stereo video images are converted into three-dimensional point cloud data, and then the three-dimensional model M1 of the basic modeling object is established. The extraction and tracking of sparse feature points are used to estimate the position and posture of the camera, providing accurate perspective information for dynamic scene modeling.
[0010] Extract the gradient modeling object and combine it with the time series information to realize the modeling of the changing object in the dynamic scene. Use the dense depth map calculation and brightness compensation coefficient to color the 3D point cloud data of the gradient modeling object to form a 3D model M2. Through the brightness contrast and compensation of the key frames, optimize the final 3D model M3 to adapt to the lighting changes in the dynamic scene.
[0011] The movable camera platform reduces physical interference with dynamic real scenes, making the acquisition process more natural and realistic. The brightness compensation coefficient effectively solves the impact of illumination changes in dynamic scenes on modeling effects, improving the realism and consistency of the model. Through inter-frame difference method and object classification, transient moving objects and unnecessary gradual modeling objects are accurately distinguished and excluded, ensuring the accuracy of modeling information.
[0012] The use of neural network models and sparse feature point tracking technology simplifies the modeling process and improves modeling efficiency. Combining dense depth maps and time series information makes the three-dimensional model of dynamic real scenes more delicate and realistic. The system can adapt to different lighting conditions and dynamically changing scenes, and has strong adaptability and flexibility. The entire modeling process is highly automated, reducing manual intervention, operation difficulty and error rate.
[0013] Through the above solution, the present invention can provide an efficient, accurate and automated three-dimensional digital modeling system and method, which is suitable for three-dimensional modeling of dynamic real scenes and has broad application prospects and practical value.
[0014] Furthermore, the video analysis module is also used to dynamically determine the degree of difference by calculating the local grayscale mean and standard deviation of the image, and use image fusion to reduce random noise and motion blur by combining multiple frames of image data. By analyzing the static background in the video sequence, a background model is established to differentiate the current frame from the background model to extract the moving target. For the detected moving target, a contour tracking algorithm is used to analyze its motion trajectory to predict the position of the target in future frames so as to accurately distinguish between basic modeling objects, transient moving objects and gradual modeling objects.
[0015] Furthermore, the video analysis module is also used to utilize the frame rate control and time interval setting in the video analysis technology to automatically extract key frames from the dual-channel dynamic stereoscopic video stream, and identify and distinguish transient moving objects and gradual modeling objects through background subtraction, optical flow method and deep learning algorithm.
[0016] Furthermore, the video analysis module is also used to use a target detection and classification network to identify and delete these unnecessary objects from key frames, use stereoscopic vision technology, combine the parallax between the left and right dual-channel video images, calculate a dense depth map, use a semi-global matching algorithm or a deep learning-based depth estimation method to restore the three-dimensional structure of the scene, convert the dense depth map into three-dimensional point cloud data, and through an inverse projection process, map each pixel point into a three-dimensional space to form a point cloud; use a point cloud processing algorithm to perform filtering and feature extraction.
[0017] Furthermore, the video analysis module is also used to use a deep learning framework to design and train a neural network model for learning and predicting the structural features of the scene from the three-dimensional point cloud data; based on the three-dimensional point cloud data, a three-dimensional model M1 of the basic modeling object is established using three-dimensional modeling software or a library; the geometry and topological structure of the model are optimized by fusing the point cloud data and the prediction of the neural network model; a feature point detection algorithm is applied to extract sparse feature points from key frames, and the tracking of these feature points in the video sequence is used to estimate the change in the camera's posture.
[0018] Furthermore, the video analysis module is also used to combine the sparse feature point tracking results and the three-dimensional point cloud data, and use the visual ranging method or the structured light coding technology to estimate the position and posture of the camera in the dynamic scene; for all the intermediate frames in the two-way dynamic stereo video image, a sparse feature point tracking strategy is adopted, combined with time series analysis, to predict and smooth the motion trajectory of the feature points, so as to obtain the estimated camera position and posture.
[0019] Furthermore, the overall modeling module is also used to extract gradient modeling objects from videos using image segmentation technology; associate the extracted gradient modeling objects with timestamps to create time series data; use time series analysis methods to analyze and model the change patterns of objects over time; use multi-view geometry and computer vision technology, combined with a stereo matching algorithm, to calculate a dense depth map of the gradient modeling object, and use machine learning methods to optimize the accuracy of depth estimation.
[0020] Furthermore, the overall modeling module is also used to recover three-dimensional point cloud data from the dense depth map, and optimize the quality of the point cloud data through point cloud processing technology; analyze the illumination changes between key frames, and calculate the average brightness as the brightness compensation coefficient. Use image processing technology to adjust the impact of illumination conditions on modeling, combine time series data with three-dimensional point cloud data, and construct a preliminary three-dimensional model of the gradient modeling object; map and color the three-dimensional model according to the brightness compensation coefficient. Use texture mapping technology to map the texture information in the video to the three-dimensional model; sort the extracted key frames to ensure the continuity and consistency of the time series; apply the brightness compensation coefficient to adjust the illumination and color of the model to simulate the visual effects under different illumination conditions; use the global illumination algorithm or physically based rendering to simulate the illumination changes in dynamic scenes, and merge the three-dimensional model M2 of the gradient modeling object with the three-dimensional model M1 of the basic modeling object.
[0021] Furthermore, the overall modeling module is also used to perform brightness analysis on key frames extracted from the three-dimensional models M1 and M2, defining brightness as the average or median of image pixel values; calculating the brightness difference between two pairs of key frames, using color space conversion to quantify the brightness difference, and using statistical methods to evaluate the size of the difference; based on the brightness difference analysis, selecting the closest pair of key frames as a benchmark for brightness compensation, and using gamma correction or linear correction to determine the required brightness compensation coefficient; adjusting the model according to the brightness compensation coefficient, using shadow and lighting transfer algorithms to simulate the impact of lighting changes on the model; fusing the adjusted three-dimensional model M2 with M1, and using Alpha blending to smoothly transition the joints of different models; performing texture mapping and color correction on the fused model, verifying the lighting consistency of the fused model under different key frames, using virtual rendering technology to reproduce the lighting conditions of the key frames in a simulated environment, and checking the visual effect of the model; enhancing the details of the fused model, and at the same time, optimizing the shading and lighting models of the model, and integrating the brightness compensated and detail optimized models into the final three-dimensional model M3. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a connection block diagram of a 3D digital modeling system based on real scene video; Figure 2Schematic diagram of the camera platform structure; Figure 3 Schematic diagram of the effect of the preliminary 3D model M2 in archaeological excavation site modeling Figure 4 for Figure 3 Schematic diagram of the effect of the three-dimensional model M3 under the same viewing angle. DETAILED DESCRIPTION
[0023] The following is further described in detail through specific implementation methods: The symbols in the drawings of the specification include: a traveling mechanism 1 , a lifting mechanism 2 , a horizontal rotating mechanism 3 , a vertical rotating mechanism 4 , a chassis 11 , a horizontal rotating disk 30 , and an extension rod 40 .
[0024] 3D digital modeling system based on real scene video (such as Figure 1 shown), including: A video acquisition module, which is mounted on a freely movable camera platform and is used to capture two-way dynamic stereoscopic video images in a dynamic real scene in real time after the camera platform is in a stable position; The video analysis module is used to determine the difference between adjacent frames according to the inter-frame difference method, and define the objects in the two-way dynamic stereoscopic video image as basic modeling objects, transient moving objects and gradual modeling objects according to the difference according to the contours; take out a pair of key frames from the two-way dynamic stereoscopic video image after a preset time interval, delete the relevant information of the transient moving objects and the gradual modeling objects, calculate the dense depth map, and obtain three-dimensional point cloud data according to the preset neural network model, and then establish a three-dimensional model M1 of the basic modeling object in the dynamic real scene according to the three-dimensional point cloud data; extract sparse feature points at the same time; then adopt a sparse feature point tracking strategy for all intermediate frames in the two-way dynamic stereoscopic video image, and combine the position of the sparse feature points in the image to obtain the estimated position and posture of the camera; The overall modeling module is used to extract the gradient modeling object, add the time series of the gradient modeling object to the three-dimensional model M1, and obtain the three-dimensional point cloud data of the gradient modeling object by calculating the dense depth map. Then, a pair of key frames are taken out from the dual-channel dynamic stereoscopic video image after a preset interval and sorted, and the average brightness is selected as the brightness compensation coefficient. The three-dimensional point cloud data of the gradient modeling object is mapped and colored to obtain the three-dimensional model M2; then, the pair of key frames taken out of the three-dimensional model M1 and the three-dimensional model M2 are compared, and the brightness of the pair of key frames closest to the taken out is selected as the brightness compensation coefficient. The brightness of the pair of key frames that are significantly different from the taken out is compensated to obtain the final three-dimensional model M3.
[0025] In specific use, for the video analysis module, it specifically calculates the local grayscale mean and standard deviation of the image, dynamically determines the difference, combines multi-frame image data, uses image fusion to reduce random noise and motion blur, and analyzes the static background in the video sequence to establish a background model to differentiate the current frame from the background model to extract the moving target. For the detected moving target, use the contour tracking algorithm to analyze its motion trajectory to predict the position of the target in future frames so as to accurately distinguish between basic modeling objects, transient moving objects and gradual modeling objects; utilizes the frame rate control and time interval setting in the video analysis technology to automatically extract key frames from the dual-channel dynamic stereo video stream, and uses background subtraction, optical flow and deep learning algorithms to identify and distinguish transient moving objects and gradual modeling objects.
[0026] The video analysis module is then used to use a target detection and classification network to identify and delete these unwanted objects from key frames, using stereo vision technology, combined with the parallax between the left and right dual-channel video images, to calculate a dense depth map, and using a semi-global matching algorithm or a deep learning-based depth estimation method to restore the three-dimensional structure of the scene, converting the dense depth map into three-dimensional point cloud data, and through the inverse projection process, mapping each pixel point into a three-dimensional space to form a point cloud; using a point cloud processing algorithm for filtering and feature extraction.
[0027] Next, the video analysis module is also used to use the deep learning framework to design and train a neural network model to learn and predict the structural features of the scene from the 3D point cloud data; based on the 3D point cloud data, a 3D model M1 of the basic modeling object is established using 3D modeling software or a library; the geometry and topology of the model are optimized by fusing the point cloud data and the prediction of the neural network model; a feature point detection algorithm is applied to extract sparse feature points from key frames, and these feature points are tracked in the video sequence to estimate the camera's posture changes; the sparse feature point tracking results and the 3D point cloud data are combined to use visual ranging or structured light coding technology to estimate the camera's position and posture in dynamic scenes; for all intermediate frames in the two-way dynamic stereoscopic video image, a sparse feature point tracking strategy is used, combined with time series analysis, to predict and smooth the motion trajectory of the feature points to obtain the estimated camera position and posture.
[0028] For the overall modeling module, it specifically uses image segmentation technology to extract gradient modeling objects from videos; associates the extracted gradient modeling objects with timestamps to create time series data; uses time series analysis methods to analyze and model the change patterns of objects over time; uses multi-view geometry and computer vision technology, combined with stereo matching algorithms, to calculate dense depth maps of gradient modeling objects, and uses machine learning methods to optimize the accuracy of depth estimation; restores three-dimensional point cloud data from dense depth maps, and optimizes the quality of point cloud data through point cloud processing technology; analyzes the illumination changes between key frames, and calculates the average brightness as the brightness compensation coefficient. Use image processing technology to adjust the impact of illumination conditions on modeling, combine time series data with three-dimensional point cloud data, and construct a preliminary three-dimensional model of the gradient modeling object; and map and color the three-dimensional model according to the brightness compensation coefficient. Use texture mapping technology to map texture information in the video to the three-dimensional model; sort the extracted key frames to ensure the continuity and consistency of the time series; apply the brightness compensation coefficient to adjust the lighting and color of the model to simulate the visual effects under different lighting conditions; use the global illumination algorithm or physically based rendering to simulate the lighting changes in dynamic scenes, and merge the three-dimensional model M2 of the gradient modeling object with the three-dimensional model M1 of the basic modeling object.
[0029] In addition, the overall modeling module is also used to perform brightness analysis on the key frames extracted from the three-dimensional models M1 and M2, defining brightness as the average or median of the image pixel values; calculating the brightness difference between the two pairs of key frames, using color space conversion to quantify the brightness difference, and using statistical methods to evaluate the size of the difference; based on the brightness difference analysis, selecting the closest pair of key frames as the benchmark for brightness compensation, and using gamma correction or linear correction to determine the required brightness compensation coefficient; adjusting the model according to the brightness compensation coefficient, using shadow and lighting transfer algorithms to simulate the impact of lighting changes on the model; merging the adjusted three-dimensional model M2 with M1, and using Alpha blending to smoothly transition the joints of different models; performing texture mapping and color correction on the fused model, verifying the lighting consistency of the fused model under different key frames, using virtual rendering technology to reproduce the lighting conditions of the key frames in a simulated environment, and checking the visual effect of the model; enhancing the details of the fused model, and at the same time, optimizing the shading and lighting models of the model, integrating the brightness compensated and detail optimized model into the final three-dimensional model M3.
[0030] The following is a further explanation based on a specific scenario. A freely movable camera platform is deployed at the archaeological excavation site to ensure that it covers the entire excavation area. Each platform is equipped with a high-definition camera. This method provides comprehensive coverage of the viewing angle, but there may be blind spots. To overcome this problem, multiple camera platforms can be used to overlap the viewing angle.
[0031] The video acquisition module on the camera platform collects dual-channel dynamic stereo video images in real time to ensure the stability and image quality of the camera platform during movement. The video analysis module is used to process the collected video stream, calculate the local grayscale average and standard deviation of the image through the inter-frame difference method, and dynamically determine the difference between adjacent frames.
[0032] Using background modeling technology, we extract moving objects from video sequences and distinguish between basic modeling objects, transient moving objects, and gradually changing modeling objects. We automatically extract key frames from dual-channel dynamic stereo video streams and use object detection and classification networks to identify and remove unwanted objects.
[0033] Stereo vision technology is used to calculate dense depth maps in combination with parallax, and semi-global matching algorithms or deep learning methods are used to restore the three-dimensional structure of the scene. The dense depth map is converted into three-dimensional point cloud data, and the pixels are mapped to three-dimensional space through the inverse projection process. Using three-dimensional modeling software or libraries, combined with the prediction of the neural network model, a three-dimensional model M1 of the basic modeling object is established. The feature point detection algorithm is used to extract sparse feature points, and track them in the video sequence to estimate the change in the camera's posture.
[0034] Combine the sparse feature point tracking results and 3D point cloud data to estimate the position and posture of the camera in the dynamic scene. Use image segmentation technology to extract the gradient modeling object and create time series data associated with the timestamp. Perform dense depth map calculation and 3D point cloud data processing on the gradient modeling object to construct a preliminary 3D model M2 (such as Figure 3 as shown).
[0035] Analyze the illumination changes between key frames, calculate the average brightness as the brightness compensation coefficient, and map and color the model M2. Perform brightness analysis and difference measurement on the key frames of the 3D models M1 and M2, and select the closest brightness as the compensation benchmark. Apply the brightness compensation coefficient to adjust the model, merge M1 and M2, optimize the illumination and color, and generate the final 3D model M3 (such as Figure 4 ). Detail enhancement and lighting optimization were performed on M3 to ensure the visual consistency of the model under different lighting conditions. The lighting conditions of the archaeological excavation site were reproduced in a simulated environment, and virtual rendering technology was used to verify the lighting consistency and realism of model M3. Figure 4 and Figure 3 Compared with the traditional 3D model, the 3D model can obviously obtain more details of the shadow part, compensate for the lighting changes in the dynamic real scene, and the 3D model can be more accurate. The 3D model M3 is used in archaeological report generation, educational display or virtual reproduction to provide detailed on-site information for archaeologists and the public.
[0036] In other embodiments, the imaging platform (such as Figure 2The lifting mechanism 2 includes a walking mechanism 1, a lifting mechanism 2, a horizontal rotating mechanism 3 and a vertical rotating mechanism 4. The walking mechanism 1 includes a chassis 11 and four walking wheels. The walking wheels are provided with a first Hall sensor, and the first Hall sensor is used to detect the rotation angle information of the walking wheels. The bottom of the lifting mechanism 2 is fixed to the chassis 11, the top of the lifting mechanism 2 is rotationally connected to the bottom of the horizontal rotating mechanism 3, the upper part of the horizontal rotating mechanism 3 is rotationally connected to the vertical rotating mechanism 4, and the vertical rotating mechanism 4 is fixedly connected to the video acquisition module. The lifting mechanism 2 can adopt a scissor-type lifting mechanism 2 or a screw lift. In this embodiment, a screw lift (with a travel range of 2-4m) is selected. A second Hall sensor is provided at the drive motor of the screw lift. The second Hall sensor is used to collect the rotation angle information of the drive motor of the screw lift.
[0037] The driving motor of the horizontal rotating mechanism 3 is fixedly connected to the top of the lifting mechanism 2, and a third Hall sensor for collecting its rotation angle information is provided at the driving motor of the horizontal rotating mechanism 3. The specific horizontal rotating mechanism 3 includes a horizontal turntable 30 (thickness is 10cm) and a horizontal rotating motor (specifically a servo motor with a power of 200w). The horizontal turntable 30 is rotatably connected to the top of the screw screw elevator, and the horizontal rotating motor is fixed to the top of the screw screw elevator. A force gear is provided at the bottom of the horizontal turntable 30, and the force gear is concentric with the turntable. A power gear is provided on the output shaft of the horizontal rotating motor, and the power gear drives the force gear to rotate (the power transmission method can be selected from gears or belts, etc.).
[0038] The driving motor of the vertical rotating mechanism 4 is fixedly connected to the top of the horizontal rotating mechanism 3 (the specific structure can refer to the horizontal rotating mechanism 3, except that the direction is vertical. Of course, an extension rod 40 can be added according to actual conditions to adjust the relative position). The driving motor of the vertical rotating mechanism 4 is provided with a fourth Hall sensor for collecting its rotation angle information.
[0039] The video analysis module is also used to receive the first Hall sensor, the second Hall sensor, the third Hall sensor and the fourth Hall sensor, and define it as the coordinate origin when the data collected by the first Hall sensor, the second Hall sensor, the third Hall sensor and the fourth Hall sensor is 0, and then establish the relative position relationship between the video acquisition module and the three-dimensional model M1 according to the corresponding data changes of the first Hall sensor, the second Hall sensor, the third Hall sensor and the fourth Hall sensor.
[0040] Specific use: By installing Hall sensors on the walking wheels, lifting mechanism 2, horizontal rotation mechanism 3 and vertical rotation mechanism 4 of the camera platform, every tiny movement of the camera platform can be accurately tracked. These sensors provide detailed angle information, making the motion control of the camera platform more precise. The coordinate origin (i.e. initialization) is defined as 0 when the sensor data is 0, which provides a reference starting point for the movement of the entire camera platform. This setting helps to maintain data consistency and traceability in complex scenes. The relative position relationship between the video acquisition module and the three-dimensional model M1 is established by using the data changes collected by the sensor and combining the relevant algorithms for determining the relative spatial position. This relationship helps to achieve accurate spatial alignment and data fusion in the modeling process. By fusing sensor data in four directions, the system can achieve comprehensive perception of the spatial position and posture of the camera platform, providing a dynamic, multi-dimensional reference system for three-dimensional modeling. The precise control of the camera platform enables it to adapt to changes in dynamic scenes, such as the entry and exit of moving objects, and adjust the position and angle in real time to ensure the continuity and integrity of scene information.
[0041] By accurately tracking the position and posture of the camera platform, the modeling accuracy of the 3D model M1 can be significantly improved, especially in dynamic real-world scenes. The precisely controlled camera platform can achieve comprehensive coverage of complex scenes, including hard-to-reach areas, thereby improving the integrity of the modeling. Accurate sensor data helps to simplify the data processing process and reduce the workload of error correction and data alignment in post-processing. Accurate camera platform control helps to capture details in the scene and improve the realism and visual effect of scene reconstruction (even when viewing, if the rendering is not timely, if the viewing angle of the virtual camera is the same as that of the actual acquisition, the data of the actual acquisition can be directly called, reducing hardware requirements and increasing the response speed).
[0042] The above are only embodiments of the present invention. The invention is not limited to the fields involved in this implementation case. The common sense such as the known specific structures and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field to which the invention belongs before the application date or the priority date, can obtain all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the protection scope of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The protection scope required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to explain the content of the claims.
Claims
1. A three-dimensional digital modeling system based on real-life scene videos, characterized by: include: A video acquisition module, which is mounted on a freely movable camera platform and is used to capture two-way dynamic stereoscopic video images in a dynamic real scene in real time after the camera platform is in a stable position; The video analysis module is used to determine the difference between adjacent frames according to the inter-frame difference method, and define the objects in the two-way dynamic stereoscopic video image as basic modeling objects, transient moving objects and gradual modeling objects according to the difference according to the contours; take out a pair of key frames from the two-way dynamic stereoscopic video image after a preset time interval, delete the relevant information of the transient moving objects and the gradual modeling objects, calculate the dense depth map, and obtain three-dimensional point cloud data according to the preset neural network model, and then establish a three-dimensional model M1 of the basic modeling object in the dynamic real scene according to the three-dimensional point cloud data; extract sparse feature points at the same time; then adopt a sparse feature point tracking strategy for all intermediate frames in the two-way dynamic stereoscopic video image, and combine the position of the sparse feature points in the image to obtain the estimated position and posture of the camera; The overall modeling module is used to extract the gradient modeling object, add the time series of the gradient modeling object to the three-dimensional model M1, and obtain the three-dimensional point cloud data of the gradient modeling object by calculating the dense depth map, and then take out a pair of key frames from the two-way dynamic stereo video image after a preset interval and sort them, select the average brightness as the brightness compensation coefficient, and map and color the three-dimensional point cloud data of the gradient modeling object to obtain the three-dimensional model M2; Then, a pair of key frames extracted from the three-dimensional model M1 and the three-dimensional model M2 are compared, and the brightness closest to the pair of key frames extracted is selected as the brightness compensation coefficient. The brightness is compensated for the pair of key frames that are significantly different from the extracted pair of key frames to obtain the final three-dimensional model M3.
2. The three-dimensional digital modeling system based on real scene video according to claim 1, characterized in that: The video analysis module is also used to dynamically determine the difference by calculating the local grayscale mean and standard deviation of the image, and combine multiple frames of image data to use image fusion to reduce random noise and motion blur. By analyzing the static background in the video sequence, a background model is established to differentiate the current frame from the background model to extract the moving target. For the detected moving target, a contour tracking algorithm is used to analyze its motion trajectory to predict the position of the target in future frames so as to accurately distinguish between basic modeling objects, transient moving objects and gradual modeling objects.
3. The three-dimensional digital modeling system based on real scene video according to claim 2 is characterized in that: The video analysis module is also used to utilize the frame rate control and time interval setting in the video analysis technology to automatically extract key frames from the dual-channel dynamic stereoscopic video stream, and to identify and distinguish transient moving objects and gradually modeled objects through background subtraction, optical flow and deep learning algorithms.
4. The three-dimensional digital modeling system based on real scene video according to claim 3 is characterized in that: The video analysis module is also used to use a target detection and classification network to identify and delete these unnecessary objects from key frames, use stereoscopic vision technology, combine the disparity between left and right dual-channel video images, calculate a dense depth map, use a semi-global matching algorithm or a deep learning-based depth estimation method to restore the three-dimensional structure of the scene, convert the dense depth map into three-dimensional point cloud data, and map each pixel point into a three-dimensional space through an inverse projection process to form a point cloud; use a point cloud processing algorithm for filtering and feature extraction.
5. The three-dimensional digital modeling system based on real scene video according to claim 4 is characterized in that: The video analysis module is also used to design and train a neural network model using a deep learning framework to learn and predict the structural features of the scene from the three-dimensional point cloud data; to establish a three-dimensional model M1 of the basic modeling object based on the three-dimensional point cloud data using three-dimensional modeling software or a library; to optimize the geometry and topological structure of the model by fusing the point cloud data and the prediction of the neural network model; to apply a feature point detection algorithm to extract sparse feature points from key frames, and to estimate the camera's posture changes by tracking these feature points in the video sequence.
6. The three-dimensional digital modeling system based on real scene video according to claim 5, characterized in that: The video analysis module is also used to combine the sparse feature point tracking results and three-dimensional point cloud data, use visual ranging or structured light coding technology to estimate the position and posture of the camera in the dynamic scene; for all intermediate frames in the two-way dynamic stereo video image, a sparse feature point tracking strategy is adopted, combined with time series analysis, to predict and smooth the motion trajectory of the feature points to obtain the estimated camera position and posture.
7. The three-dimensional digital modeling system based on real scene video according to claim 6, characterized in that: The overall modeling module is also used to extract the gradient modeling object from the video using image segmentation technology; associate the extracted gradient modeling object with a timestamp to create time series data; Use time series analysis methods to analyze and model the changing patterns of objects over time; use multi-view geometry and computer vision technology, combined with stereo matching algorithms, to calculate dense depth maps of gradually modeled objects, and use machine learning methods to optimize the accuracy of depth estimation.
8. The three-dimensional digital modeling system based on real scene video according to claim 7, characterized in that: The overall modeling module is also used to recover three-dimensional point cloud data from the dense depth map and optimize the quality of the point cloud data through point cloud processing technology; analyze the lighting changes between key frames and calculate the average brightness as a brightness compensation coefficient.
9. The three-dimensional digital modeling system based on real scene video according to claim 8, characterized in that: The overall modeling module is also used to perform brightness analysis on the key frames extracted from the three-dimensional models M1 and M2, defining brightness as the average or median value of the image pixel values; calculating the brightness difference between two pairs of key frames, using color space conversion to quantify the brightness difference, and using statistical methods to evaluate the size of the difference; Based on the brightness difference analysis, the closest pair of key frames are selected as the benchmark for brightness compensation, and the required brightness compensation coefficient is determined by using gamma correction or linear correction; the model is adjusted according to the brightness compensation coefficient, and the shadow and light transfer algorithm is used to simulate the impact of lighting changes on the model; the adjusted three-dimensional model M2 is fused with M1, and the joints of different models are smoothly transitioned by using Alpha blending; texture mapping and color correction are performed on the fused model to verify the lighting consistency of the fused model under different key frames, and virtual rendering technology is used to reproduce the lighting conditions of the key frames in a simulated environment to check the visual effect of the model; The fused model is enhanced in detail, and the shading and lighting models of the model are optimized. The model that has undergone brightness compensation and detail optimization is integrated into the final three-dimensional model M3.
10. A three-dimensional digital modeling method based on real scene video, characterized in that: A system as claimed in any one of claims 1 to 9 is employed.
Citation Information
Cited By
Digital human modeling method and device, equipment, storage medium and program product
CN119295682A
Substation safety control method and system based on three-dimensional reconstruction model
CN119672233A
A Substation Safety Control Method and System Based on a 3D Reconstruction Model
CN119672233B
Method and system for processing video elements in 3D scene
CN120495480A
