場景三維建模與大範圍監控系統
Large-scale Surveillance System of Environment with Reconstructed 3D Model
摘要
傳統主控室僅能分割式地顯示各個攝影機所拍攝到的影像,因受限於二維影像而無法呈現多攝影機之間的相對空間方位。本研究的目的是要發展出一套能將多頻道監控攝影機所拍攝的視訊無接縫地融合在監控環境的三維場景模型中,使中控人員可直覺沉浸式操控的安全監控系統 。
首先,我們操控無人飛行機來拍攝監控環境的影像,並採用 structure from motion 技術透過這些照片得到稀疏點雲與每張照片拍攝時的相對位置,接著我們使用 OpenMVS 涵式庫來重建模型表面與獲得紋理貼圖。但由於產生出來的點雲數量過於龐大,使在重建模型表面時需要非常高的運算量。我們將稀疏點雲分成數個區塊並同時保持它們之間的相對位置,並各自重建三維模型來克服運算上的瓶頸。
建立好環境模型後,我們透過影像校準技術獲得了監控攝影機與三維場景模型間的相對位置,並根據此結果將視訊影像投影至三維場景模型。投影時我們需注意會有投影穿透的議題,視訊不只會被投影至三維虛擬場景中我們預期的區域,且會穿透模型至更後面的區域。因此我們實作陰影紋理演算法來區分我們預期的區域與穿透的區域以解決此議題。除了整合二維視訊至三維虛擬環境中,我們同時也優化了系統的效能。我們簡化了三維場景模型以加速所有有關圖學的計算,並實現了一個機制,讓系統不會浪費運算資源在投影不必要的視訊上,以此增加系效能。
根據我們的實驗結果,此監控系統可提供兼具大監控範圍、高解析度、且即時動態的監控視訊,讓中控人員可同時看到靜態的場景模型與監控視訊,自由地穿梭於虛擬監控場景之中進行監控。
首先,我們操控無人飛行機來拍攝監控環境的影像,並採用 structure from motion 技術透過這些照片得到稀疏點雲與每張照片拍攝時的相對位置,接著我們使用 OpenMVS 涵式庫來重建模型表面與獲得紋理貼圖。但由於產生出來的點雲數量過於龐大,使在重建模型表面時需要非常高的運算量。我們將稀疏點雲分成數個區塊並同時保持它們之間的相對位置,並各自重建三維模型來克服運算上的瓶頸。
建立好環境模型後,我們透過影像校準技術獲得了監控攝影機與三維場景模型間的相對位置,並根據此結果將視訊影像投影至三維場景模型。投影時我們需注意會有投影穿透的議題,視訊不只會被投影至三維虛擬場景中我們預期的區域,且會穿透模型至更後面的區域。因此我們實作陰影紋理演算法來區分我們預期的區域與穿透的區域以解決此議題。除了整合二維視訊至三維虛擬環境中,我們同時也優化了系統的效能。我們簡化了三維場景模型以加速所有有關圖學的計算,並實現了一個機制,讓系統不會浪費運算資源在投影不必要的視訊上,以此增加系效能。
根據我們的實驗結果,此監控系統可提供兼具大監控範圍、高解析度、且即時動態的監控視訊,讓中控人員可同時看到靜態的場景模型與監控視訊,自由地穿梭於虛擬監控場景之中進行監控。
Conventional surveillance systems provide environment monitoring only through 2D videos displayed on a screen wall. It is difficulty to intuitively perceive the relative position of the targets moving in the environment due to the limited field of view of each camera. In this work, we aimed to construct an immersive surveillance system that integrates the 2D videos of surveillance cameras with a 3D model of environment. First, we used drones to capture a bunch of images of the surveillance environment and adopted the structure from motion technique to generate the sparse points cloud and the camera poses. Then we used OpenMVS library to reconstruct surface and generates texture. But the resulted sparse point cloud was too large that causes high computation required by surface reconstruction. To conquer the bottleneck of the computation, we split the sparse point cloud into sets and keeps the relative position between each sets. Each set was reconstructed individually. Next, we applied image registration technique to get the relative pose information between the model and cameras. According to the result of image registration, we project the video into our 3D virtual environment. In texture mapping, we need to consider an issue called back-projection penetration. The video were not only projecting to the expected area but those behind the model surface. We implemented the shadow mapping algorithm distinguish the viewable area and the area behind it to solve this issue. In addition to integrating the videos with the 3D virtual environment, we also optimized the system performance. The 3D model was simplified to improve the efficiency about all the graphic computation. And we implemented a mechanism that could avoid system wasting any computation resource on projecting unnecessary videos. In summary, the proposed system can allows a large number of camera streams. The security guards can interactively navigate in the environment while simultaneously viewing the static environment together with surveillance videos.