OpenCL-based multi-video sensor river topography instant modeling method and device

Through the OpenCL-based multi-video sensor river terrain real-time modeling method, the existing technology has solved the problem of data acquisition and processing lag in rapidly changing environments, and efficient and accurate river terrain data acquisition and processing are achieved. The generated three-dimensional model supports More accurate water resource management and flood control decisions.

CN118890547AInactive Publication Date: 2024-11-01LANZHOU UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917325.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing multi-video sensor river terrain real-time modeling technology is difficult to quickly adapt to light changes under rapidly changing environmental conditions. Data acquisition and processing lag affecting the accuracy and practicality of the model, especially in emergency response and disaster management, resulting in disaster prevention. Disaster reduction measures are not deployed in a timely manner.

Method used

Using the OpenCL-based multi-video sensor river terrain real-time modeling method, by connecting the photography video sensor to the RK3588 control motherboard, synchronously activate the 12V power supply, adjust the exposure time and ISO, perform multi-dimensional startup inspection of the equipment, process the video stream in real time, and fine-tune video streaming. Angle and focal length, time and space encoding, optimize image quality, and generate a three-dimensional river terrain model.

Benefits of technology

Improve data processing efficiency and accuracy, can adapt to ambient light conditions instantly, enhance the applicability and accuracy of video data, improve the ability to capture feature points of river terrain, and the generated three-dimensional model is more accurate, supporting more accurate water resource management and Flood control decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890547A_ABST
    Figure CN118890547A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of real-time geographic modeling, in particular to an OpenCL-based multi-video sensor river topography instant modeling method and device, and the method comprises the following steps: connecting a photographing video sensor to an RK3588 control mainboard, synchronizing and activating a 12v power supply through a mipi interface, adjusting the exposure time and ISO, and matching differentiated light conditions, and carrying out multi-dimensional startup check on the equipment to obtain an equipment startup configuration record. According to the invention, by synchronously controlling the photographing video sensor on the mainboard, activating an independent power supply and adjusting photographing parameters, efficient and accurate data processing is carried out, in field data acquisition, exposure and ISO are adjusted in real time to adapt to variable ambient light, high quality of video data is ensured, and angles and focal lengths in a video stream library are finely adjusted, so that the accuracy of data acquisition is improved. And video parameters are fed back and adjusted in real time, the applicability and accuracy of video data are improved, capture of river topographic feature points is enhanced, and subsequent topographic feature extraction and model establishment are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of real-time geographic modeling, and in particular to a method and device for real-time modeling of river terrain using multiple video sensors based on OpenCL. Background Art

[0002] The field of real-time geographic modeling technology focuses on the instant creation and updating of geospatial information through high-speed and efficient data processing technology. The field integrates geographic information systems (GIS), remote sensing technology, computer vision, and high-performance computing technology. Key technologies include real-time data acquisition, image processing, 3D modeling, and geographic database updates. In applications such as water resource management and flood prevention, real-time geographic modeling enables decision makers to respond based on the latest terrain and landform data, thereby effectively managing water flows and preventing flood disasters. In addition, this technology also supports a variety of applications such as urban planning, environmental monitoring, and disaster management, optimizing planning and emergency response strategies by providing real-time data.

[0003] Among them, the multi-video sensor river terrain real-time modeling method is an advanced geographic modeling technology that uses multiple video sensors to quickly and accurately collect river terrain data. By deploying cameras with multiple tilt angles, it can capture video data of the river from different perspectives, and then use image processing algorithms to generate a three-dimensional model of the river terrain in real time. The main purpose of this method is to improve the efficiency and accuracy of water resources management and flood prevention. By providing accurate terrain information in real time, this technology supports disaster emergency response and daily water resources monitoring, enabling relevant departments to better plan, implement and adjust water resources strategies, optimize the design and operation of water conservancy facilities, and enhance the real-time and effectiveness of flood control measures.

[0004] Although the existing multi-video sensor river terrain real-time modeling method integrates GIS, remote sensing technology and high-performance computing, the real-time data collection and processing capabilities of the existing method are still limited under rapidly changing environmental conditions, such as during heavy rain or floods. The technology is difficult to quickly adapt to light changes in a high-dynamic environment, and the data collection cannot reflect the changes in the real-time environment in a timely manner, thus affecting the accuracy and practicality of the final model. In addition, the existing technology also shows lag in the synchronization of timestamps and geo-tagging of video data, which limits the application effect of data in real-time decision-making, especially in emergency response and disaster management. This lag leads to the deployment of disaster prevention and mitigation measures in a timely manner, thus failing to effectively prevent disaster risks. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a method and device for real-time modeling of river terrain using multiple video sensors based on OpenCL.

[0006] In order to achieve the above purpose, the present invention adopts the following technical solution, a multi-video sensor river terrain real-time modeling method based on OpenCL, comprising the following steps:

[0007] S1: Connect the camera video sensor to the RK3588 control mainboard, synchronize through the mipi interface, activate the 12V power supply, adjust the exposure time and ISO and match the differentiated light conditions, perform multi-dimensional startup checks on the device, and obtain the device startup configuration record;

[0008] S2: based on the device startup configuration record, activate the continuous recording function of the photographic video sensor, adjust the shooting angle and focal length, synchronize the video stream timestamp and geographic tag, and obtain the original video stream library;

[0009] S3: Use OpenCL to perform real-time video processing of the original video stream library, fine-tune the video stream angle and focal length, monitor video quality, adjust the video stream clarity, capture key feature points of river terrain, adjust video parameters through real-time feedback, and obtain a multi-angle video library;

[0010] S4: selecting key video clips from the multi-angle video library, performing temporal and spatial coding on the key video clips, marking positions and shooting times, and performing feature extraction on the terrain to obtain a set of coded video clips;

[0011] S5: Analyze the encoded video clip set, adjust the video contrast and brightness, reduce the noise in the video, and obtain an optimized video analysis set by optimizing the image quality processing;

[0012] S6: Use OpenCL to accelerate the data processing in the optimized video analysis set, adjust the model accuracy and resolution to match the analysis requirements, and obtain a three-dimensional river terrain model through iterative optimization.

[0013] As a further solution of the present invention, the device startup configuration record includes parameter setting values, light adaptation results, and inspection status; the original video stream library includes a video timestamp set, a geographic tag set, and a shooting angle set; the multi-angle video library includes a clarity level, parameter adjustment feedback, and a terrain feature point set; the encoded video clip set includes a time coding set, a spatial coding set, and a terrain feature tag; the optimized video analysis set includes contrast level, brightness level, and image quality improvement details; and the three-dimensional river terrain model includes precision adjustment details, resolution settings, and application requirement matching.

[0014] As a further solution of the present invention, the steps of connecting the photographic video sensor to the RK3588 control mainboard, synchronizing through the mipi interface, activating the 12V power supply, adjusting the exposure time and ISO and matching the differentiated light conditions, and performing a multi-dimensional startup check of the device to obtain the device startup configuration record are as follows:

[0015] S101: Connect the camera and video sensor to the RK3588 control mainboard, synchronize the data between the camera and video sensor and the mainboard through the MIPI interface, activate the 12V independent power supply, perform basic hardware settings, and obtain the hardware connection status;

[0016] S102: using the hardware connection state, adjusting parameters of the photographic video sensor, setting exposure time and ISO and matching external ambient light, optimizing the response of the photographic video sensor to differentiated light by adjusting the receiving sensitivity and exposure control of the photographic video sensor, and obtaining an environment matching configuration;

[0017] S103: Utilizing the environment matching configuration, executing a startup check of the device, verifying that the device settings are correctly applied, recording startup and configuration data, including verification of power supply stability and data transmission efficiency, and obtaining a device startup configuration record.

[0018] As a further solution of the present invention, based on the device startup configuration record, the continuous recording function of the photographic video sensor is activated, the shooting angle and focal length are adjusted, and the video stream timestamp and geographic tag are synchronized to obtain the original video stream library. Specifically, the steps are as follows:

[0019] S201: Based on the device startup configuration record, check the power supply and memory status to determine that continuous recording is supported, adjust the recording settings to start the continuous recording mode, perform a preliminary test on the recording device and determine the startup status, and obtain the recording startup status;

[0020] S202: using the video recording start state, adjusting the shooting angle of the video sensor, fine-tuning the focus through the control software, setting the angle and focus, performing test recording and verifying the adaptability of the viewing angle and focus, and obtaining a viewing angle and focus adjustment record;

[0021] S203: Based on the viewing angle and focal length adjustment records, set the timestamp and geographic tag of each frame of the video stream, automatically obtain the geographic location information from the GPS after calibrating the timestamp, and organize the video data into a database after confirming that the video stream tag is correct to obtain the original video stream library.

[0022] As a further solution of the present invention, the steps of using OpenCL to perform real-time video processing of the original video stream library, fine-tune the video stream angle and focal length, monitor video quality, adjust the video stream clarity, capture key feature points of river terrain, and adjust video parameters through real-time feedback to obtain a multi-angle video library are specifically as follows:

[0023] S301: extracting data from the original video stream library using OpenCL, adjusting the focal length of the video stream, adjusting the zoom level of the camera lens by inputting a focal length parameter, adjusting the shooting angle of the video stream, optimizing the field of view coverage of the shooting by inputting an angle parameter, and obtaining an adjusted video stream;

[0024] S302: Based on the adjusted video stream, adjust the resolution and clarity of each video stream by modifying video encoding parameters, including adjusting contrast and brightness settings to match differentiated viewing environments and device requirements, and generate an optimized definition video stream by real-time monitoring of video stream quality feedback;

[0025] S303: Use OpenCL to accelerate the processing of the optimized definition video stream, identify and mark key feature points of the river terrain in the video, including river banks, rocks and vegetation areas, locate the terrain markers in each frame through frame-by-frame analysis, enhance the visualization of terrain features, and build a multi-angle video library.

[0026] As a further solution of the present invention, the steps of selecting key video clips from the multi-angle video library, temporally and spatially encoding the key video clips, marking the positions and shooting times, and extracting features of the terrain to obtain a set of encoded video clips are specifically as follows:

[0027] S401: Based on the multi-angle video library, identify and filter key video clips, analyze the consistency between video tags and key event standards, refer to the matching of recording time and event time window, check and verify each video tag and time, and obtain a list of filtered video clips;

[0028] S402: using the screened video clip list, performing time and space coding for each clip, including adding a timestamp and a geographic location tag to the video, and obtaining a video set marked with time and location by retrieving video metadata and applying a geocoding tool to tag each clip;

[0029] S403: Using the video set marked with time and place, terrain feature extraction is performed, including visually identifying and classifying terrain elements in each video clip, identifying natural landscapes such as mountains and rivers, extracting and recording natural landscape features through image analysis technology, and obtaining a set of encoded video clips.

[0030] As a further solution of the present invention, the steps of analyzing the encoded video clip set, adjusting the video contrast and brightness, reducing the noise in the video, and obtaining the optimized video analysis set by optimizing the image quality processing are specifically as follows:

[0031] S501: Based on the encoded video clip set, adjusting contrast, matching the ambient light of each video clip by directly inputting an adjustment value, adjusting brightness, and adjusting the light and dark balance of each video by a digital slider to obtain a video contrast brightness adjustment set;

[0032] S502: using the video contrast and brightness adjustment set, enhancing key terrain details, by adjusting color saturation and image sharpness sliders to highlight visual markers of river channels and terrain changes, optimizing the recognition and visual appeal of terrain features, and obtaining a terrain detail enhanced video set;

[0033] S503: Using the terrain detail enhanced video set, adjusting the visual noise in the video, reducing image interference by adjusting the noise filter level, optimizing the video clips and providing a terrain view, and constructing an optimized video analysis set.

[0034] As a further solution of the present invention, OpenCL is used to accelerate the data processing of the optimized video analysis set, and the model accuracy and resolution are adjusted to match the analysis requirements. The steps of obtaining the three-dimensional river terrain model through iterative optimization are specifically as follows:

[0035] S601: Based on the optimized video analysis set, adjusting the resolution parameters of the model, setting the detail level of the model by inputting numerical values, including microscopic features and texture details of the terrain, and generating a refined terrain model;

[0036] S602: using a refined terrain model, adjusting the model to meet key application requirements, adjusting the scale of the model, and obtaining a scene matching model by adjusting the scale and depth parameters of the model;

[0037] S603: Use OpenCL to iteratively optimize the scene matching model, adopt a deep learning algorithm, adjust the terrain boundaries and key features, including river paths and vegetation coverage areas, and construct a three-dimensional river terrain model by verifying the consistency of each terrain element with the real-time geographic data one by one.

[0038] As a further solution of the present invention, the formula of the deep learning algorithm is as follows:

[0039]

[0040] Among them, Δw is the update amount of the weight, η is the learning rate, is the loss function The partial derivative with respect to weight w, α is the momentum factor, Δw prev is the last weight update, β is the second-order derivative adjustment factor, is the second-order derivative of the loss function, γ is the environmental factor adjustment coefficient, is the partial derivative of the environmental factor with respect to the weight w.

[0041] A multi-video sensor river terrain real-time modeling device based on OpenCL, the multi-video sensor river terrain real-time modeling device based on OpenCL is used to execute the multi-video sensor river terrain real-time modeling method based on OpenCL, the device comprises:

[0042] The sensor configuration module configures the photography and video sensors on the RK3588 control motherboard, activates the independent 12V power supply, synchronizes multiple sensors, sets exposure parameters, adjusts the adaptability to ambient light, performs multi-dimensional equipment inspection, and obtains equipment configuration logs;

[0043] The video stream processing module uses the device configuration log to activate the sensor's continuous recording function, adjust the shooting angle and focal length, synchronize the timestamps and geotags in the video data, and generate a synchronized video library;

[0044] The video quality optimization module uses the data in the synchronized video library to adjust the video angle and focal length, monitor the video clarity and adjust the recording parameters in real time to match the terrain features to obtain an optimized video library;

[0045] The video clip encoding module selects key video clips from the optimized video library, performs temporal and spatial encoding processing, extracts terrain features in the video, and generates a terrain video encoding set;

[0046] The terrain analysis module analyzes the terrain video encoding set, adjusts the contrast and brightness of the image, performs noise reduction processing, optimizes image details, and constructs a three-dimensional river terrain model.

[0047] Compared with the prior art, the advantages and positive effects of the present invention are:

[0048] In the present invention, by synchronizing the photographic video sensor on the control mainboard, and on this basis activating the independent power supply and adjusting the photographic parameters, the efficiency and accuracy of data processing are improved. In terms of on-site data collection, by adjusting the exposure and ISO in real time, it is possible to instantly adapt to different ambient light conditions to ensure the quality of the collected video data. By fine-tuning the video stream angle and focal length in the original video stream library and adjusting the video parameters with real-time feedback, not only the applicability and accuracy of the video data are improved, but also the ability to capture the characteristic points of the river terrain is enhanced. Through the application of time and space coding, each video clip is effectively marked, which greatly facilitates the subsequent terrain feature extraction and model building process. By continuously iteratively optimizing the accuracy and resolution of the model, the generated three-dimensional river terrain model is more accurate, meeting the needs of high-precision geographic information, and supporting more accurate water resources management and flood control decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1It is a schematic diagram of the workflow of the present invention;

[0050] Figure 2 This is a detailed flow chart of S1 of the present invention;

[0051] Figure 3 This is a detailed flow chart of S2 of the present invention;

[0052] Figure 4 This is a detailed flow chart of S3 of the present invention;

[0053] Figure 5 This is a detailed flow chart of S4 of the present invention;

[0054] Figure 6 This is a detailed flow chart of S5 of the present invention;

[0055] Figure 7 This is a detailed flow chart of S6 of the present invention;

[0056] Figure 8 It is a flow chart of the device of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0058] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0059] Embodiment 1

[0060] See also Figure 1 The present invention provides a technical solution, a multi-video sensor river terrain real-time modeling method based on OpenCL, comprising the following steps:

[0061] S1: Connect the camera and video sensor to the RK3588 control mainboard, synchronize through the mipi interface, activate the 12V independent power supply, adjust the camera and video sensor operating parameters, including exposure time and ISO, match the differentiated ambient light conditions, and perform a multi-dimensional startup check of the device to obtain the device startup configuration record;

[0062] S2: based on the device startup configuration record, activate the continuous recording function of the photographic video sensor, adjust the shooting angle and focal length of the photographic video sensor, synchronize the timestamp and geographic tag of the video library of the tilt video sensor in terms of shooting at different angles, and obtain the original video stream library;

[0063] S3: Use OpenCL to perform real-time video processing of the original video stream library, fine-tune the angle and focal length of the video stream, monitor the video quality, adjust the clarity of each video stream, and capture the key feature points of the river terrain. Adjust the video parameters through real-time feedback to obtain a multi-angle video library;

[0064] S4: Filter key video clips from the multi-angle video library, perform temporal and spatial encoding on each video clip, mark the location and shooting time of the video segment, and perform feature extraction on the terrain to obtain a set of encoded video clips;

[0065] S5: Analyze the encoded video clip set, adjust the video contrast and brightness parameters and enhance the visibility of terrain details, reduce the noise in the video, and obtain the optimized video analysis set by adjusting and optimizing the image quality;

[0066] S6: Use OpenCL to accelerate and optimize data processing in the video analysis center, adjust the accuracy and resolution of the model to match differentiated analysis and application requirements, and obtain a three-dimensional river terrain model through iterative optimization.

[0067] The device startup configuration record includes parameter setting values, light adaptation results, and inspection status. The original video stream library includes a video timestamp set, a geographic tag set, and a shooting angle set. The multi-angle video library includes a clarity level, parameter adjustment feedback, and a terrain feature point set. The encoded video clip set includes a time coding set, a spatial coding set, and a terrain feature tag. The optimized video analysis set includes contrast level, brightness level, and image quality improvement details. The three-dimensional river terrain model includes accuracy adjustment details, resolution settings, and application requirement matching.

[0068] Specifically, if Figure 2 As shown in the figure, connect the photography video sensor to the RK3588 control motherboard, synchronize through the mipi interface, activate the 12V power supply, adjust the exposure time and ISO and match the differentiated light conditions, perform a multi-dimensional startup check on the device, and obtain the device startup configuration record in the following steps:

[0069] S101: Connect the camera and video sensor to the RK3588 control mainboard, synchronize the data between the camera and video sensor and the mainboard through the MIPI interface, activate the 12V independent power supply, and perform basic hardware settings. The execution process of obtaining the hardware connection status is as follows;

[0070] S101: Connect the camera and video sensor to the RK3588 control motherboard, synchronize the data between the camera and video sensor and the motherboard through the MIPI interface, set the interface transmission parameters to ensure that the data transmission rate matches the sensor output, set parameters such as transmission frequency and number of channels n, activate the 12V independent power supply, and monitor the power output current to ensure stable power supply, perform basic hardware settings, including sensor initialization and interface configuration, read the hardware connection status through the motherboard's diagnostic tool to obtain the status indicator S to indicate whether the connection is successful, and obtain the hardware connection status using the formula:

[0071]

[0072] Among them, f represents the transmission frequency, n represents the number of channels, I represents the power supply output current, and S represents the status indicator. A value of 1 indicates normal, and a value less than 1 indicates a problem.

[0073] S102: In the hardware connection state, adjust the parameters of the photographic video sensor, set the exposure time and ISO and match the external ambient light, and optimize the response of the photographic video sensor to differentiated light by adjusting the receiving sensitivity and exposure control of the photographic video sensor. The execution process of obtaining the environment matching configuration is as follows;

[0074] S102: Using the hardware connection state, adjust the parameters of the photographic video sensor, and calculate the ideal exposure time t and ISO value x based on the ambient light intensity L and the current sensitivity d of the sensor. Set the exposure time and ISO and match the external ambient light, including calculating the initial values ​​of the exposure time t and ISOx, and then adjusting to the optimal configuration based on the light sensor reading. By adjusting the receiving sensitivity and exposure control of the photographic video sensor, optimize the response of the photographic video sensor to differentiated light, dynamically adjust the parameters to adapt to the changing external environment, and obtain the environment matching configuration, using the formula:

[0075]

[0076] Among them, L represents the ambient light intensity, d represents the current sensitivity of the sensor, t represents the exposure time, and x represents the ISO value.

[0077] S103: using the environment matching configuration, executing the startup check of the device, verifying that the device settings are correctly applied, recording the startup and configuration data, including the verification of the power supply stability and data transmission efficiency, and obtaining the execution process of the device startup configuration record is as follows;

[0078] S103: Using the environment matching configuration, perform the startup check of the device. First, check whether the device hardware configuration item h meets the preset standard P, including sensor configuration, power supply and interface settings, check the correct application of the device settings, ensure that all configuration items meet the requirements of the environment matching configuration, and record the startup and configuration data. During the startup process, record the power supply stability E and data transmission efficiency R of the device, including real-time monitoring of current and data packet loss rate, and obtain the device startup configuration record, using the formula:

[0079]

[0080] Among them, E represents power supply stability, R represents data transmission efficiency, h represents hardware configuration items, and P represents preset standards. This formula evaluates the consistency between configuration and actual application.

[0081] Specifically, if Figure 3 As shown in the figure, based on the device startup configuration record, the continuous recording function of the camera video sensor is activated, the shooting angle and focal length are adjusted, and the video stream timestamp and geographic tag are synchronized to obtain the original video stream library. The specific steps are:

[0082] S201: Based on the device startup configuration record, check the power and memory status to determine whether continuous recording is supported, adjust the recording settings to start the continuous recording mode, perform a preliminary test on the recording device and determine the startup status. The execution process of obtaining the recording startup status is as follows;

[0083] S201: Based on the device startup configuration record, first analyze the data of the power supply voltage value V and the memory available capacity M in the record and calculate their average and To determine whether the minimum operating requirements V are met min and M min After the power and memory status are determined, enter the setting phase and adjust the recording settings to start the continuous recording mode. The recording mode of the device is controlled by an adjustment parameter R, which determines the resolution and frame rate of the recording. Conduct preliminary tests on the recording device, verify its stability and storage efficiency through simulated recording, ensure that it can continue to work under the specified parameter P, and obtain the recording start state, using the formula:

[0084]

[0085] Among them, V represents the power supply voltage value, M represents the available memory capacity, and V and M are their average values, V min and M min It is the minimum requirement for system operation. R is the setting parameter of the recording device, and P is the performance coefficient of the device.

[0086] S202: using the video recording start state, adjusting the shooting angle of the video sensor, fine-tuning the focus through the control software, setting the angle and focus, performing test recording and verifying the adaptability of the viewing angle and focus, and obtaining the execution flow of the viewing angle and focus adjustment record as follows;

[0087] S202: Using the video recording start state, accurately adjust the shooting angle of the camera video sensor, set the angle θ and focal length f, and dynamically adjust θ and f through the control software, involving K and L in the software, which are used to control the angle increment and focal length change rate. Through the simulation test of the actual scene, verify whether the field of view coverage of the video sensor after adjustment matches the expectation, and confirm the adaptability of the focal length. After each adjustment, perform test recording, record the viewing angle and focal length results of each test, and finally obtain the viewing angle and focal length adjustment record, using the formula:

[0088] A=K·Δθ+L·Δf

[0089] Among them, θ represents the shooting angle of the video sensor, f represents the focal length, Δθ and Δf represent the adjustment amounts of the angle and focal length respectively, K and L are the adjustment coefficients of the control software, and A is the total score of the adjustment activity, which is used to evaluate the adaptability and accuracy of the adjustment.

[0090] S203: Based on the view angle and focal length adjustment records, set the timestamp and geographic tag of each frame of the video stream, automatically obtain the geographic location information from the GPS after calibrating the timestamp, and organize the video data into the database after confirming that the video stream tag is correct. The execution process of obtaining the original video stream library is as follows;

[0091] S203: Based on the viewing angle and focal length adjustment records, optimize the video stream settings, set the timestamp T and geographic marker G of each frame in the video stream, and obtain accurate time and geographic location information through the timestamp calibration program and GPS module. The timestamp calibration involves an error adjustment parameter E. T , while the accuracy of the geographic location depends on the geographic tag accuracy parameter E G All data are calibrated and organized into a database, and a data verification algorithm is used to ensure the integrity and accuracy of the video data, ultimately forming an original video stream library using the formula:

[0092]

[0093] Where T and G represent the timestamp and geographic tag values, respectively. T and E G is the corresponding calibration error parameter, N is the number of data entries, which is used for normalization calculation, and S is the total score set for the video stream, which is used to evaluate the accuracy and completeness of the video stream labeling.

[0094] Specifically, if Figure 4As shown in the figure, the steps of using OpenCL to perform real-time video processing of the original video stream library, fine-tune the video stream angle and focal length, monitor the video quality, adjust the video stream clarity, capture the key feature points of the river terrain, adjust the video parameters through real-time feedback, and obtain the multi-angle video library are as follows:

[0095] S301: Use OpenCL to extract data from the original video stream library, adjust the focal length of the video stream, adjust the zoom level of the camera lens by inputting the focal length parameter, adjust the shooting angle of the video stream, optimize the field of view coverage of the shooting by inputting the angle parameter, and obtain the execution process of the adjusted video stream as follows;

[0096] S301: After extracting key data from the original video stream library, first adjust the focal length of the video stream, including inputting the focal length parameter, which directly affects the zoom level of the camera lens, thereby adjusting the depth of the field of view, and then adjust the shooting angle of the video stream, and input the angle parameter to optimize the coverage of the shooting field of view. Use OpenCL to accelerate the calculation of the coverage efficiency of the field of view corresponding to the focal length and angle after each adjustment, to ensure that the adjusted video stream can cover the predetermined target area. The adjusted video stream is re-encoded and saved to form an adjusted video stream library. The role of OpenCL here is to improve the processing speed of video parameter adjustment and calculation, and support more complex real-time video processing tasks. , using the formula:

[0097] V=Z·f+cos(θ)·E

[0098] Among them, f is the input focal length parameter, Z is the zoom level, θ is the input shooting angle, and E is the field of view coverage efficiency. This formula combines the effects of focal length and angle adjustment to calculate the final video stream adjustment effect V to ensure effective coverage and image quality of the video stream.

[0099] S302: Based on the adjusted video stream, the resolution and definition of each video stream are adjusted by modifying the video encoding parameters, including adjusting the contrast and brightness settings, to match the differentiated viewing environment and device requirements, and the execution process of generating an optimized definition video stream by real-time monitoring the picture quality feedback of the video stream is as follows;

[0100] S302: Based on the adjusted video stream, first adjust the resolution and clarity of each video stream by modifying the video encoding parameters, including adjusting the video contrast C and brightness B, to adapt to different viewing environments and device requirements. During the operation, by inputting contrast and brightness adjustment parameters, monitor the image quality feedback of the video stream in real time, evaluate the effect of the adjustment, and use an effect evaluation coefficient Q to quantify the improvement in image quality. The data is looped through feedback to ensure that the performance of the video stream on different devices is optimal, and a video stream with optimized clarity is generated, using the formula:

[0101] P=Q·(C+B)

[0102] Among them, C and B represent the input parameters of contrast and brightness settings respectively, Q is the effect evaluation coefficient of image quality improvement, and the formula calculates the overall image quality score P after video encoding adjustment to help technicians determine the best video stream output settings.

[0103] S303: Use OpenCL to accelerate and optimize the processing of the high-definition video stream, identify and mark the key feature points of the river terrain in the video, including the river bank, rocks and vegetation areas, locate the terrain markers in each frame through frame-by-frame analysis, enhance the visualization of terrain features, and build a multi-angle video library. The execution process is as follows;

[0104] S303: Using the optimized definition video stream, perform the recognition and labeling of key feature points of the river terrain in the video, including the recognition of riverbanks, rocks and vegetation areas. Through frame-by-frame analysis technology, input terrain feature marking parameters to locate the terrain markers of each frame. In the process, OpenCL is used to accelerate the calculation of positioning accuracy parameters and feature enhancement parameters to enhance the visualization of terrain features in the video and build a multi-angle video library. In this link, OpenCL provides the ability to accelerate image processing and feature recognition algorithms, effectively improving processing speed and accuracy. The formula is:

[0105] T=D·L+S

[0106] Among them, D represents the terrain feature marking parameter, L is the positioning accuracy parameter, S is the feature enhancement parameter, and formula T is used to evaluate the overall effect of terrain feature recognition and annotation to ensure the quality and accuracy of terrain visualization in the video library.

[0107] Specifically, if Figure 5 As shown in the figure, the steps of selecting key video clips from the multi-angle video library, temporally and spatially encoding the key video clips, marking the location and shooting time, and extracting features of the terrain to obtain the encoded video clip set are as follows:

[0108] S401: Based on the multi-angle video library, identify and filter key video clips, analyze the consistency of video tags and key event standards, refer to the matching of recording time and event time window, check and verify each video tag and time, and obtain the list of filtered video clips. The execution process is as follows;

[0109] S401: Filtering key video clips from the multi-angle video library first involves analyzing the consistency of video tags with preset key event standards. By defining the consistency parameter U and the video event time window matching parameter W, it is ensured that each video tag matches the actual recording time and the event occurrence time window. The deviation between the time tag of each video and the key event is calculated as the deviation value D. By setting the deviation tolerance δ, the video is checked and verified. This process ensures that only video clips that meet the event time window and tag consistency standards are selected into the final list. The formula is:

[0110] V s =U·WD·δ

[0111] Among them, U represents the consistency parameter between the video label and the event standard, W represents the matching parameter between the recording time and the event time window, D is the time label deviation, and δ is the deviation tolerance. This formula is used to calculate the total score V of the video clip screening. s , high-scoring video clips are selected as key clips.

[0112] S402: Filter the video clip list, perform time and space coding for each clip, including adding timestamps and geographic location tags to the video, retrieve the video metadata and apply the geocoding tool to tag each clip, and obtain a video set tagged with time and location as follows;

[0113] S402: Using the filtered video clip list, perform time and space coding for each clip, add a timestamp T and a geographic location tag G to each video clip, and use the time coding parameter E T and geocoding parameters E G Optimize the accuracy of timestamps and geo-tags. By retrieving video metadata and applying geocoding tools, ensure that the time and location tags of each clip are accurate. The entire process is recorded and a video set of time and location tags is generated to provide data support for subsequent analysis. The formula is used:

[0114] M=T·E T +G·E G

[0115] T and G are the timestamp and geographic location tag of the video clip, respectively. T and E G are the corresponding encoding parameters, and formula M calculates the time and geocoding quality scores of each video clip, ensuring the high consistency and accuracy of the time and location data.

[0116] S403: Using the video set marked with time and location, terrain feature extraction is performed, including visual recognition and classification of terrain elements in each video clip, identifying natural landscapes such as mountains and rivers, extracting and recording natural landscape features through image analysis technology, and obtaining the encoded video clip set. The execution process is as follows;

[0117] S403: Using the video set marked with time and location, extract the terrain features in each video clip, define visual recognition parameters V and classification parameters C, which are used to identify and classify natural landscapes in the video, such as mountains and rivers, and extract and record landscape features through image analysis technology combined with feature extraction parameters F. Each feature extraction is recorded in detail to form a coded video clip set containing detailed terrain feature data, which provides a basis for further geographic information system (GIS) analysis and application. The formula is:

[0118] S=V·F+C

[0119] Among them, V is the visual recognition parameter of the natural landscape in the video clip, F is the feature extraction parameter, C is the landscape classification parameter, and the formula S calculates the comprehensive score of terrain feature extraction and classification, which is used to evaluate the extraction and recording effects and ensure the quality and application value of video analysis.

[0120] Specifically, if Figure 6 As shown, the steps of analyzing the encoded video clip set, adjusting the video contrast and brightness, reducing the noise in the video, and obtaining the optimized video analysis set by optimizing the image quality processing are as follows:

[0121] S501: Based on the encoded video clip set, adjust the contrast, match the ambient light of each video clip by directly inputting the adjustment value, adjust the brightness, and adjust the light and dark balance of each video through the digital slider, and obtain the execution process of the video contrast brightness adjustment set as follows;

[0122] S501: Based on the encoded video clip set, adjust the contrast and brightness of each video clip to match the respective ambient light conditions, by inputting the adjustment value A c Directly set the contrast of the video by entering a digital slider b , adjust the brightness of the video to ensure that the brightness and darkness balance of each video clip adapts to its shooting environment, use the brightness and darkness balance score B to evaluate the effect of each adjustment, ensure that the video contrast brightness reaches the optimal state after adjustment, and form a video contrast brightness adjustment set, using the formula:

[0123] L=A c ×B+log(A b )

[0124] Among them, A cRepresents the input contrast adjustment value, A b represents the brightness adjustment value, B is the brightness and darkness balance score, and this formula is used to calculate the overall brightness effect score L of the video clip after adjustment, which is convenient for tracking and optimizing the adjustment effect.

[0125] S502: using the video contrast and brightness adjustment set, enhancing key terrain details, by adjusting the color saturation and image sharpness sliders to highlight the visual marks of river channels and terrain changes, and optimizing the recognition and visual appeal of terrain features. The execution process of obtaining the terrain detail enhanced video set is as follows;

[0126] S502: Use the video contrast brightness adjustment set to enhance key terrain details. By adjusting the color saturation SR slider, the visual markers of river channels and terrain changes are particularly highlighted. The process not only optimizes the recognition of terrain features, but also increases visual appeal. The enhancement effect score E is used to quantify the effect of color and sharpness adjustment, thereby obtaining a terrain detail enhanced video set. The formula is:

[0127]

[0128] Among them, S is the color saturation adjustment value, R is the image sharpness adjustment value, and E is the visual effect score of the video terrain features after the enhanced color and sharpness are adjusted, which is used to evaluate the effectiveness of detail enhancement.

[0129] S503: Using the terrain detail enhancement video set, adjusting the visual noise in the video, reducing the image interference by adjusting the noise filter level, optimizing the video clips and providing a terrain view, the execution process of constructing the optimized video analysis set is as follows;

[0130] S503: Use the terrain detail enhanced video set to adjust the visual noise in the video, adjust the noise filter level F to reduce the image interference, optimize the visual quality of the video clip, evaluate the effect of the noise filter through the visual quality optimization coefficient Q, ensure that each video clip provides the clearest terrain view visually, and construct an optimized video analysis set, using the formula:

[0131] N = F × log (Q)

[0132] Among them, F represents the noise filtering level, Q is the visual quality optimization coefficient, and formula N calculates the total effect score after video noise adjustment, which is used to quantify the improvement of visual quality in the video.

[0133] Specifically, if Figure 7 As shown in the figure, OpenCL is used to accelerate and optimize the data processing in the video analysis center, and the model accuracy and resolution are adjusted to match the analysis requirements. The specific steps of obtaining the 3D river terrain model through iterative optimization are as follows:

[0134] S601: Based on the optimized video analysis set, the resolution parameters of the model are adjusted, and the detail level of the model is set by inputting numerical values, including the microscopic features and texture details of the terrain, and the execution process of generating a refined terrain model is as follows;

[0135] S601: Starting from the optimized video analysis set, adjust the model resolution parameters to generate a refined terrain model, and set the model's level of detail by inputting a value R to ensure that the model can display the microscopic features and texture details of the terrain, including the resolution adjustment coefficient C r The setting of this coefficient controls the rendering accuracy of details. By evaluating the effect of the adjusted model resolution E r , to ensure that the generated terrain model accurately reflects the terrain features identified in the video analysis data, using the formula:

[0136] M=R·C r +E r

[0137] Among them, R is the input resolution value, C r is the resolution adjustment factor, which is used to control the rendering degree of model details. r The resolution adjustment effect score is used to calculate the overall quality score M of the refined terrain model to optimize the accuracy and visual effect of the terrain model.

[0138] S602: Using a refined terrain model, adjusting the model to meet key application requirements, adjusting the scale of the model, and obtaining a scene matching model by adjusting the scale and depth parameters of the model. The execution process is as follows;

[0139] S602: Use the refined terrain model to adjust the model for key application requirements. By adjusting the model scale parameter P and depth parameter D, ensure that the model can adapt to different scene requirements. This involves the model adaptability score A, which is based on the adaptive adjustment of the model scale and depth. By precisely controlling the parameters, a scene matching model is generated to meet specific visual and analysis requirements. The formula is:

[0140] S=P·D+A

[0141] Among them, P represents the model scale parameter, D represents the depth parameter, A is the model adaptability score, and formula S is used to evaluate the scene adaptability score after model adjustment to ensure that the model can be accurately applied in different analysis and visual environments.

[0142] S603: Use OpenCL to iteratively optimize the scene matching model, adopt a deep learning algorithm, adjust the terrain boundaries and key features, including the river path and vegetation coverage area, and verify the consistency of each terrain element with the real-time geographic data one by one to build a three-dimensional river terrain model. The execution process is as follows;

[0143] S603: Iteratively optimize the scene matching model and adjust the terrain boundaries and key features, including river paths and vegetation coverage areas, through deep learning algorithms. Use OpenCL to accelerate the calculation of the adaptability parameters and boundary adjustment coefficients of terrain elements. The parameters are used to verify the consistency of each terrain element with the real-time geographic data one by one. By optimizing the parameters, a three-dimensional river terrain model is constructed.

[0144] The formula for the deep learning algorithm is as follows:

[0145]

[0146] Among them, Δw is the update amount of the weight, η is the learning rate, is the loss function The partial derivative with respect to weight w, α is the momentum factor, Δw prev is the last weight update, β is the second-order derivative adjustment factor, is the second-order derivative of the loss function, γ is the environmental factor adjustment coefficient, is the partial derivative of the environmental factor with respect to the weight w.

[0147] The execution process is as follows:

[0148] The weight update not only considers the current gradient, but also introduces the momentum factor α to consider the last weight update, increases the continuity of the weight adjustment, considers the curvature of the loss curve through the second-order derivative adjustment factor β to adapt to different learning environments, introduces the environmental factor adjustment coefficient γ and the partial derivative of the environmental factor The model is enabled to consider the impact of external variables, optimize the adaptability and stability of the algorithm, and through a series of parameter adjustments, the weight update amount Δw can be adjusted more accurately, thereby effectively optimizing the performance of the deep learning model. The method steps to ensure the coefficient value include repeated trials and adjustments using a validation data set to determine the optimal values ​​of α, β, and γ, thereby ensuring that the model has the best performance on new input data.

[0149] like Figure 8 As shown, a multi-video sensor river terrain real-time modeling device based on OpenCL, the device includes:

[0150] The sensor configuration module configures the photography and video sensors on the RK3588 control motherboard, activates the independent 12V power supply, synchronizes multiple sensors, sets exposure parameters, adjusts the adaptability to ambient light, performs multi-dimensional equipment inspection, and obtains equipment configuration logs;

[0151] The video stream processing module uses the device configuration log to activate the sensor's continuous recording function, adjust the shooting angle and focal length, synchronize the timestamps and geotags in the video data, and generate a synchronized video library;

[0152] The video quality optimization module uses the data in the synchronized video library to adjust the video angle and focal length, monitor the video clarity and adjust the recording parameters in real time to match the terrain features to obtain an optimized video library;

[0153] The video clip encoding module selects key video clips from the optimized video library, performs temporal and spatial encoding processing, extracts terrain features in the video, and generates a terrain video encoding set;

[0154] The terrain analysis module analyzes the terrain video encoding set, adjusts the contrast and brightness of the image, performs noise reduction processing, optimizes image details, and constructs a three-dimensional river terrain model.

[0155] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A multi-video sensor river terrain real-time modeling method based on OpenCL, characterized in that: The following steps are involved: Connect the photography video sensor to the RK3588 control motherboard, synchronize through the mipi interface, activate the 12v power supply, adjust the exposure time and ISO and match the differentiated light conditions, perform a multi-dimensional startup check on the device, and obtain the device startup configuration record; Based on the device startup configuration record, the continuous recording function of the photographic video sensor is activated, the shooting angle and focal length are adjusted, the video stream timestamp and geographic tag are synchronized, and the original video stream library is obtained; Use OpenCL to perform real-time video processing of the original video stream library, fine-tune the video stream angle and focal length, monitor video quality, adjust the video stream clarity, capture key feature points of river terrain, adjust video parameters through real-time feedback, and obtain a multi-angle video library; Select key video clips from the multi-angle video library, perform temporal and spatial coding on the key video clips, mark the positions and shooting times, perform feature extraction on the terrain, and obtain a set of coded video clips; Analyze the encoded video clip set, adjust the video contrast and brightness, reduce the noise in the video, and obtain an optimized video analysis set by optimizing image quality processing; OpenCL is used to accelerate data processing in the optimized video analysis set, and the model accuracy and resolution are adjusted to match the analysis requirements. Through iterative optimization, a three-dimensional river terrain model is obtained.

2. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1 is characterized in that: The device startup configuration record includes parameter setting values, light adaptation results, and inspection status; the original video stream library includes a video timestamp set, a geographic tag set, and a shooting angle set; the multi-angle video library includes a clarity level, parameter adjustment feedback, and a terrain feature point set; the encoded video clip set includes a time coding set, a space coding set, and a terrain feature tag; the optimized video analysis set includes contrast level, brightness level, and image quality improvement details; the three-dimensional river terrain model includes precision adjustment details, resolution settings, and application requirement matching.

3. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1 is characterized in that: Connect the camera video sensor to the RK3588 control motherboard, synchronize through the mipi interface, activate the 12V power supply, adjust the exposure time and ISO and match the differentiated light conditions, perform a multi-dimensional startup check on the device, and obtain the device startup configuration record in the following steps: Connect the camera and video sensor to the RK3588 control mainboard, synchronize the data between the camera and video sensor and the mainboard through the MIPI interface, activate the 12V independent power supply, perform basic hardware settings, and obtain the hardware connection status; Using the hardware connection state, adjust the parameters of the photographic video sensor, set the exposure time and ISO and match the external ambient light, optimize the response of the photographic video sensor to differentiated light by adjusting the receiving sensitivity and exposure control of the photographic video sensor, and obtain the environment matching configuration; Using the environment matching configuration, a startup check of the device is performed to verify that the device settings are correctly applied, and startup and configuration data are recorded, including verification of power supply stability and data transmission efficiency, to obtain a device startup configuration record.

4. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1, characterized in that: Based on the device startup configuration record, the steps of activating the continuous recording function of the photographic video sensor, adjusting the shooting angle and focal length, synchronizing the video stream timestamp and geographic tag, and obtaining the original video stream library are specifically as follows: Based on the device startup configuration record, check the power supply and memory status to determine that continuous recording is supported, adjust the recording settings to start the continuous recording mode, perform a preliminary test on the recording device and determine the startup status, and obtain the recording startup status; Using the video recording start state, adjusting the shooting angle of the photographic video sensor, fine-tuning the focus through the control software, setting the angle and focal length, performing test recording and verifying the adaptability of the viewing angle and focal length, and obtaining the viewing angle and focal length adjustment record; Based on the viewing angle and focal length adjustment records, the timestamp and geographic tag of each frame of the video stream are set, and the geographic location information is automatically obtained from the GPS after the timestamp is calibrated. After confirming that the video stream tag is correct, the video data is sorted and entered into the database to obtain the original video stream library.

5. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1, characterized in that: The steps of using OpenCL to perform real-time video processing of the original video stream library, fine-tuning the video stream angle and focal length, monitoring video quality, adjusting the video stream clarity, capturing key feature points of river terrain, and adjusting video parameters through real-time feedback to obtain a multi-angle video library are as follows: Using OpenCL to extract data from the original video stream library, adjusting the focal length of the video stream, adjusting the zoom level of the camera lens by inputting a focal length parameter, adjusting the shooting angle of the video stream, optimizing the field of view coverage of the shooting by inputting an angle parameter, and obtaining an adjusted video stream; Based on the adjusted video stream, the resolution and clarity of each video stream are adjusted by modifying video encoding parameters, including adjusting contrast and brightness settings to match differentiated viewing environments and device requirements, and by real-time monitoring of video stream quality feedback, a video stream with optimized clarity is generated; OpenCL is used to accelerate the processing of the optimized definition video stream, identify and annotate key feature points of the river terrain in the video, including riverbanks, rocks and vegetation areas, locate the terrain markers in each frame through frame-by-frame analysis, enhance the visualization of terrain features, and build a multi-angle video library.

6. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1, characterized in that: The steps of selecting key video clips from the multi-angle video library, performing temporal and spatial coding on the key video clips, marking the positions and shooting times, and performing feature extraction on the terrain to obtain a set of coded video clips are specifically as follows: Based on the multi-angle video library, identify and filter key video clips, analyze the consistency between video tags and key event standards, refer to the matching between recording time and event time window, check and verify each video tag and time, and obtain a list of filtered video clips; Using the screened video clip list, performing time and space coding for each clip, including adding a timestamp and a geographic location tag to the video, and obtaining a video set marked with time and location by retrieving video metadata and applying a geocoding tool to tag each clip; The video set marked with time and place is used to extract terrain features, including visually identifying and classifying terrain elements in each video clip, identifying natural landscapes such as mountains and rivers, extracting and recording natural landscape features through image analysis technology, and obtaining a set of encoded video clips.

7. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1, characterized in that: The steps of analyzing the encoded video clip set, adjusting the video contrast and brightness, reducing the noise in the video, and obtaining the optimized video analysis set by optimizing the image quality processing are specifically as follows: Based on the encoded video clip set, adjusting contrast, adjusting brightness by directly inputting adjustment values ​​to match the ambient light of each video clip, and adjusting the light and dark balance of each video by a digital slider to obtain a video contrast brightness adjustment set; Using the video contrast and brightness adjustment set, key terrain details are enhanced, and visual markers of river channels and terrain changes are highlighted by adjusting color saturation and image sharpness sliders to optimize the recognition and visual appeal of terrain features, thereby obtaining a terrain detail enhanced video set; The terrain detail enhanced video set is used to adjust visual noise in the video, reduce image interference by adjusting the noise filter level, optimize video clips and provide terrain views, and construct an optimized video analysis set.

8. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 1 is characterized in that: The steps of using OpenCL to accelerate the data processing in the optimized video analysis set, adjusting the model accuracy and resolution to match the analysis requirements, and obtaining the three-dimensional river terrain model through iterative optimization are as follows: Based on the optimized video analysis set, adjusting the resolution parameters of the model, setting the level of detail of the model by inputting numerical values, including microscopic features and texture details of the terrain, and generating a refined terrain model; Use a refined terrain model, adjust the model to meet key application requirements, adjust the scale of the model, and obtain a scene matching model by adjusting the scale and depth parameters of the model; OpenCL is used to iteratively optimize the scene matching model, and a deep learning algorithm is used to adjust terrain boundaries and key features, including river paths and vegetation coverage areas. A three-dimensional river terrain model is constructed by verifying the consistency of each terrain element with the real-time geographic data one by one.

9. The method for real-time river terrain modeling based on multiple video sensors of OpenCL according to claim 8, characterized in that: The formula of the deep learning algorithm is as follows: Among them, Δw is the update amount of the weight, η is the learning rate, is the loss function The partial derivative with respect to weight w, α is the momentum factor, Δw prev is the last weight update, β is the second-order derivative adjustment factor, is the second-order derivative of the loss function, γ is the environmental factor adjustment coefficient, is the partial derivative of the environmental factor with respect to the weight w.

10. A multi-video sensor river terrain real-time modeling device based on OpenCL, characterized in that: According to the OpenCL-based multi-video sensor river terrain real-time modeling method according to any one of claims 1 to 9, the device comprises: The sensor configuration module configures the photography and video sensors on the RK3588 control motherboard, activates the independent 12V power supply, synchronizes multiple sensors, sets exposure parameters, adjusts the adaptability to ambient light, performs multi-dimensional equipment inspection, and obtains equipment configuration logs; The video stream processing module uses the device configuration log to activate the sensor's continuous recording function, adjust the shooting angle and focal length, synchronize the timestamps and geotags in the video data, and generate a synchronized video library; The video quality optimization module uses the data in the synchronized video library to adjust the video angle and focal length, monitor the video clarity and adjust the recording parameters in real time to match the terrain features to obtain an optimized video library; The video clip encoding module selects key video clips from the optimized video library, performs temporal and spatial encoding processing, extracts terrain features in the video, and generates a terrain video encoding set; The terrain analysis module analyzes the terrain video encoding set, adjusts the contrast and brightness of the image, performs noise reduction processing, optimizes image details, and constructs a three-dimensional river terrain model.