## 2 Research and Design of Slope Displacement Monitoring System  
### Analysis of the Technical Programme for the Slope Displacement Monitoring System  
Slope displacement detection is a labour-intensive and time-consuming task, and as the monitoring duration increases, the volume of data to be collected grows substantially. To comprehensively analyse the causes of slope disasters, it is essential to record video data  
Figure 1: Schematic diagram of the new greenable gravity retaining wall structure. 1: Special geobags. 2: Cement-modified loess. 3: Remoulded loess. 4: Steel nails. 5: Geogrids. of the slope conditions to aid in reconstructing the site conditions during the disaster. The development of a slope displacement detection system, coupled with advanced computer data management, not only reduces the workload on personnel, but also enhances the accuracy of slope displacement monitoring. This system enables the precise detection of slope movements and the recording of the entire process of slope disasters. This, in turn, facilitates timely response efforts and the complete reconstruction of the disaster sequence. Based on the above needs, the technical programme of the slope displacement monitoring system proposed in this paper is as follows:  
1. Video streaming programme  
The prevailing video stream codec standards in current use are H.264 and MPEG-4. In this study, we leverage Hangzhou Hikvision's SDK (Software Development Kit) for secondary development. The SDK is version 2.0, encompasses essential components such as a software decoding library and a network communication library. Through the relevant functions provided by the SDK, specific features can be realised, such as the real-time video playback of slope site footage. Additionally, we make use of the hardware resources available at Chongqing Jiaotong University's remote video laboratory, which includes a range of network-based devices such as hard disk recorders, storage servers, video codec servers, and video cameras. These resources are instrumental in supporting our research and development efforts. 2. Selection of system architecture model  
Currently, two primary architectural patterns are widely utilised: the Client/Server (C/S) pattern and the Browser/Server (B/S) pattern. When dealing with substantial data volumes that demand rapid response times, a system structured on the C/S architecture framework outperforms one built on the B/S model. In the context of slope displacement measurement, it is imperative to periodically capture and process images swiftly. This process involves significant mathematical computations. In light of these requirements, the system adopts the C/S architecture to enhance system performance and stability, ensuring efficient image processing and data analysis. 3. Choice of development technology  
In selecting the development technology for this system, we implemented it using MFC (Microsoft Foundation Classes). Visual C++ serves as a robust development tool. Although other programming languages like C# are available for development, the flexibility of C++ surpasses them. Additionally, many standard class libraries are implemented in C++ or C. MFC, being a fundamental class library built in C++, encapsulates a significant portion of the APIs (Application Programming Interfaces). The use of MFC's provided classes greatly simplifies and expedites software development, making it the preferred choice. 4. Video Stream Database Management  
Managing the video stream data from slope monitoring is a critical consideration due to its substantial data volume and continuous nature. Most systems employ file management to store video streams via files. Furthermore, these systems offer the capability to store the configuration file's address in the management module, enhancing flexibility. Commonly employed database management systems include Oracle, DB2, and SQL Server. In the realm of database development, data access technology holds a central role.