Security monitoring system and method based on multi-image fusion
By constructing a joint optimization objective function, the attitude and position parameters of the image sensor are optimized, solving the fusion problem of multi-layer spherical image sensors, generating seamless and realistic panoramic monitoring images, and improving the situational awareness accuracy and reliability of the security system.
Patent Information
- Application Number
- CN202611192318.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-07
- Publication Date
- 2026-11-24
AI Technical Summary
Existing security monitoring systems, with their multi-layered spherical image sensor layout, suffer from geometric misalignment, radiation differences, and visual artifacts during image fusion, making it difficult to generate seamless and realistic panoramic monitoring images.
A security monitoring system based on multi-image fusion is adopted. By constructing a joint optimization objective function, including basic reprojection error term, intra-layer geometric constraint term and inter-layer smoothing constraint term, the pose and position parameters of the image sensor are optimized to generate a panoramic image covering the hemispherical space.
It achieves seamless, realistic, and spatially accurate panoramic monitoring images, significantly improving the situational awareness accuracy and reliability of security systems.
Smart Images

Figure CN123164196A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image fusion technology, and in particular to a security monitoring system and method based on multi-image fusion. Background Technology
[0002] In security monitoring applications, deploying multiple cameras and stitching videos together to expand the field of view is a common practice. However, existing stitching technologies are mainly designed for horizontal or limited pitch angle scenarios, making it difficult to construct a seamless upper hemisphere view centered on a single observation point. This upper hemisphere spatial coverage is crucial for protecting critical areas such as prison cells, financial institution vaults, and data center server rooms where blind spots at the top must be eliminated. To meet this requirement, multiple image sensors need to be arranged according to a specific multi-layered spherical geometry. While this arrangement physically achieves coverage, it also presents challenges for multi-source image fusion. Since the sensors are distributed at different latitudes and longitudes on the sphere, their imaging angles, spatial scales, perspective distortions, and lighting conditions vary significantly, resulting in severe geometric misalignment, radiation differences, and visual artifacts in the directly stitched images. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a security monitoring system and method based on multi-image fusion, so as to solve the problems of poor fusion accuracy and consistency of images acquired by multi-layer spherical image sensors, as well as the technical problems of security monitoring image distortion caused by the above-mentioned situations.
[0004] The first aspect of this invention discloses a security monitoring system based on multi-image fusion. The system includes an image acquisition module for acquiring multi-view images collected by an image sensor array; the image sensor array is distributed on a multi-layer spherical surface centered on a virtual sphere; an image fusion module for generating a panoramic image based on the multi-view images; and a monitoring module for performing real-time security monitoring based on the panoramic image.
[0005] The image fusion module specifically includes:
[0006] The first construction unit is used to construct a joint optimization objective function, which is a weighted sum of a basic reprojection error term, an intra-layer geometric constraint term, and an inter-layer smoothing constraint term. The intra-layer geometric constraint term is used to constrain the spatial position and orientation of each image sensor within the same layer, so as to conform to the layer geometric model centered on the sphere. The inter-layer smoothing constraint term is used to constrain the smoothness of the changes in the orientation and position parameters of corresponding image sensors between adjacent layers.
[0007] An optimization unit is configured to optimize the pose parameters, position parameters of all image sensors, and parameters of the layer geometry model simultaneously by minimizing the joint optimization objective function.
[0008] The fusion unit is used to project multi-view images onto a unified spherical coordinate system centered on the sphere's center based on optimized parameters, and then fuse them to generate a panoramic image covering the hemispherical space.
[0009] Furthermore, the intra-layer geometric constraint term includes an intra-layer radial distance constraint term, and the specific configuration process includes:
[0010] Determine the layer radius parameter for each layer of the image sensor array;
[0011] Calculate the actual distance from the optical center of each image sensor in the same layer to the center of the virtual sphere;
[0012] Based on the difference between the actual distance of all image sensors in the same layer and the layer radius parameter of the layer to which they belong, a first penalty term is constructed. The first penalty terms of each layer are combined as a radial distance constraint term within the layer. The value of the first penalty term increases as the total degree to which the actual distance of each image sensor in the same layer deviates from the layer radius parameter of the layer to which it belongs increases.
[0013] Furthermore, the intra-layer geometric constraint terms also include intra-layer tangential constraint terms, and the specific configuration process includes:
[0014] Calculate the optical principal axis direction vector for each image sensor in the same layer;
[0015] The optical principal axis direction vectors of all image sensors in each layer are weighted, averaged, and normalized to obtain the layer normal direction of each layer.
[0016] Based on the angular deviation between the optical principal axis direction vector of each image sensor layer and the layer normal direction of the corresponding layer, a second penalty term is constructed. The second penalty terms of each layer are combined as an intra-layer tangential constraint term. The value of the second penalty term increases as the total degree of the angular deviation of each image sensor in the same layer increases.
[0017] Furthermore, the configuration process of the inter-layer smoothing constraint term specifically includes:
[0018] Between two adjacent image sensor layers, a correspondence between the image sensors is established based on the proximity of the projection positions of the optical centers of the image sensors on the horizontal plane.
[0019] Calculate the difference in optical principal axis direction vector and the difference in magnitude of optical center position vector between each pair of corresponding interlayer image sensors, and set the value of the interlayer smoothing constraint term to increase as the difference increases.
[0020] Furthermore, the image fusion module also includes a second construction unit, used to establish image point correspondences across different image sensors based on feature points detected and matched from multi-view images; each set of image point correspondences represents the same physical space point observed in images from different image sensors.
[0021] Furthermore, the process for determining the basic reprojection error term specifically includes:
[0022] Based on the image point correspondence and the intrinsic and extrinsic parameters of the corresponding image sensor, the position estimate of the corresponding three-dimensional spatial point is calculated;
[0023] Based on the estimated position of the three-dimensional spatial point and the intrinsic and extrinsic parameters of the image sensor, the sum of squared errors between the position of the three-dimensional spatial point reprojected onto the image plane of the image sensor and the actual detected image feature point position is calculated.
[0024] Furthermore, the process of establishing the correspondence between image points across different image sensors also includes:
[0025] Based on the prior information of the multi-layer spherical distribution of the image sensor array, and based on the standard that the angle between the spatial line connecting the optical centers of two image sensors and their respective optical principal axes is less than the preset field of view threshold, a set of adjacent image sensors that are allowed to perform feature matching is defined for each image sensor.
[0026] After initial feature matching, the epipolar geometric relationship is calculated based on the initial parameters of the image sensor, and mismatches that do not conform to the epipolar constraints are eliminated based on the epipolar geometric relationship.
[0027] Furthermore, the process of projecting multi-view images onto a unified spherical coordinate system centered at the sphere's center and then fusing them includes:
[0028] Discretize the target hemisphere into a spherical mesh defined by the azimuth and elevation angles;
[0029] Determine the first image sensor covering the field of view of each target point on the spherical grid, and acquire the corresponding pixel values on the image of the first image sensor;
[0030] Based on the directional angle of the target point relative to the optical principal axis of the first image sensor, the position and distortion degree of the target point in the image of the first image sensor, and the parameter uncertainty of the first image sensor after optimization, the fusion weight of all first image sensors corresponding to each target point is determined.
[0031] The pixel values from different image sensors are weighted and averaged based on the fusion weights to obtain the pixel value of the target point in the final panoramic image.
[0032] Furthermore, the image fusion module also includes an adaptive adjustment unit, which periodically evaluates the current satisfaction level of the intra-layer geometric constraint term and the inter-layer smoothing constraint term, and dynamically adjusts the weight coefficients of the intra-layer geometric constraint term and / or the inter-layer smoothing constraint term in the joint optimization objective function based on the evaluation results.
[0033] The second aspect of this invention discloses a security monitoring method based on multi-image fusion, which is applied to the system disclosed in the first aspect. The method includes:
[0034] Acquire multi-view images captured by an image sensor array; the image sensor array is distributed on a multi-layered spherical surface centered on a virtual sphere.
[0035] A panoramic image is generated based on the multi-view images, and security monitoring is performed in real time based on the panoramic image.
[0036] The process of generating the panoramic image specifically includes:
[0037] A joint optimization objective function is constructed, which is a weighted sum of the basic reprojection error term, the intra-layer geometric constraint term, and the inter-layer smoothing constraint term. The intra-layer geometric constraint term is used to constrain the spatial position and orientation of each image sensor within the same layer, so as to conform to the layer geometric model centered on the sphere. The inter-layer smoothing constraint term is used to constrain the smoothness of the changes in the orientation and position parameters of the image sensors at corresponding positions between adjacent layers.
[0038] By minimizing the joint optimization objective function, the pose parameters, position parameters of all image sensors, and parameters of the layer geometry model are simultaneously optimized.
[0039] Based on the optimized parameters, the multi-view images are projected onto a unified spherical coordinate system centered on the sphere's center and fused to generate a panoramic image covering the hemispherical space.
[0040] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0041] This invention effectively solves the image fusion challenge of multi-layer spherical sensor arrays by introducing a joint optimization framework of intra-layer geometric constraints and inter-layer smoothing constraints. During the image fusion stage, layer constraints ensure precise geometric consistency of images from the same spherical layer, eliminating stitching misalignments; furthermore, inter-layer smoothing constraints achieve a natural transition between images from different layers, avoiding field-of-view jumps. Simultaneously, by optimizing the sensor's intrinsic and extrinsic parameters based on multi-view imaging, reprojection accuracy is significantly improved, resulting in highly geometrically coherent panoramic images. Ultimately, a seamless, realistic, and spatially accurate panoramic monitoring image is generated, greatly enhancing the situational awareness accuracy and reliability of security systems. Attached Figure Description
[0042] The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and form part of this application, do not constitute a limitation thereof. In the drawings:
[0043] Figure 1 This is a schematic diagram of the structure of a security monitoring system based on multi-image fusion disclosed in Embodiment 1 of the present invention;
[0044] Figure 2 This is a schematic diagram of the image fusion module disclosed in Embodiment 1 of the present invention. Detailed Implementation
[0045] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0046] Example 1
[0047] The first aspect of this invention discloses a security monitoring system based on multi-image fusion. Please refer to [link / reference]. Figure 1 , Figure 1 This is a schematic diagram of a security monitoring system based on multi-image fusion disclosed in an embodiment of the present invention. The system includes an image acquisition module for acquiring multi-view images collected by an image sensor array; the image sensor array is distributed on a multi-layer spherical surface centered on a virtual sphere; an image fusion module for generating a panoramic image based on the multi-view images; and a monitoring module for performing real-time security monitoring based on the panoramic image.
[0048] It should be noted that the multi-view images in this embodiment of the invention are acquired through a specific multi-layer spherical sensor array. The physical structure of this array is centered on a virtual sphere, with multiple image sensors arranged in three-dimensional space to form at least two surrounding sensor layers. Each layer contains multiple sensors, distributed along the azimuth direction to achieve 360-degree horizontal coverage; adjacent layers have overlapping fields of view in the vertical pitch direction. This arrangement ensures that any direction in the entire upper hemisphere space originating from the sphere's center can be covered by the field of view of one or more sensors, thus providing the subsequent image fusion module with complete, multi-view, and geometrically accurate raw image data.
[0049] However, multi-view images acquired through the aforementioned methods present multiple complex challenges in image fusion. Because the image sensors are physically distributed across different spherical locations and orientations, their imaging angles, perspective relationships, and spatial scales differ significantly, leading to severe geometric misalignment and structural distortion when directly stitched together. Overlapping areas between adjacent sensor images often suffer from poor alignment in texture detail and depth of field due to differences in shooting angles. Furthermore, improper handling of vertical transitions between layers in a multi-layered structure can easily result in field-of-view jumps or distortions. These factors make it difficult to generate geometrically accurate, radially consistent, and visually coherent panoramic surveillance images. In this context, this invention proposes a security monitoring system based on multi-image fusion to address the aforementioned image fusion problems.
[0050] Please see Figure 2 , Figure 2 This is a schematic diagram of the image fusion module disclosed in an embodiment of the present invention. The image fusion module specifically includes:
[0051] The first construction unit is used to construct a joint optimization objective function, which is a weighted sum of a basic reprojection error term, an intra-layer geometric constraint term, and an inter-layer smoothing constraint term. The intra-layer geometric constraint term is used to constrain the spatial position and orientation of each image sensor within the same layer, so as to conform to the layer geometric model centered on the sphere. The inter-layer smoothing constraint term is used to constrain the smoothness of the changes in the orientation and position parameters of corresponding image sensors between adjacent layers.
[0052] An optimization unit is used to optimize the pose parameters, position parameters of all image sensors, and parameters of the layer geometry model by minimizing the joint optimization objective function.
[0053] The fusion unit is used to project multi-view images onto a unified spherical coordinate system centered on the sphere's center based on optimized parameters, and then fuse them to generate a panoramic image covering the hemispherical space.
[0054] Specifically, in this embodiment of the invention, the layer geometry model refers to an ideal mathematical geometry defined for each layer of the image sensor array. That is, the optical centers of all image sensors in the same layer are constrained on a sphere with the virtual sphere center as the common sphere center and the preset layer radius parameter as the radius. Furthermore, their optical principal axis directions tend to be consistent with the normal direction of the sphere at the sensor position. The purpose is to provide an accurate and ideal reference frame that conforms to the spherical imaging theory for the spatial pose of the sensors in the same layer.
[0055] The intra-layer geometric constraint term is a mathematical penalty term constructed based on the above-mentioned layer geometric model. Its purpose is to apply soft constraints to the actual poses of each sensor in the same layer to the ideal geometric model of that layer during the joint optimization process, thereby ensuring that the images from the same layer have inherent geometric consistency and laying the foundation for the smooth transition of subsequent cross-layer images.
[0056] The interlayer smoothing constraint is a mathematical penalty term used to constrain the continuity of the change in the pose parameters of the corresponding sensors between adjacent layers. It is mainly to avoid visual jumps or geometric distortions in the fused image at the layer boundary caused by abrupt changes in the pose of sensors in different layers, so as to ensure the natural and smooth transition of the field of view in the entire hemispherical space.
[0057] The basic reprojection error term is a core error term built on the principle of multi-view geometry. It calculates the error by reprojecting three-dimensional spatial points back to the image planes of each sensor and comparing them with the actual observed feature points. This directly optimizes the estimation accuracy of sensor parameters and three-dimensional scene structure, ensuring the geometric accuracy when mapping multi-view images to the spherical coordinate system.
[0058] This invention sets the joint optimization objective function as a weighted sum of a basic reprojection error term, an intra-layer geometric constraint term, and an inter-layer smoothing constraint term. This ensures that, in minimizing the objective function, the system does not pursue the optimality of a single metric in isolation, but rather strives for an optimal balance among the three objectives of geometric accuracy, intra-layer consistency, and inter-layer continuity. Specifically, the basic reprojection error term, as a data-driven term, guarantees a high degree of consistency between the fused result and the original image observation data, laying the foundation for the geometric accuracy of the panoramic image. The intra-layer geometric constraint term, as a regularization term, utilizes prior physical knowledge of the array to force the layout of sensors in the same layer to conform to an ideal spherical geometric model, thereby fundamentally eliminating intra-layer image misalignment and distortion caused by the discrete distribution of sensor poses. The inter-layer smoothing constraint term, as a transition guarantee term, ensures a natural transition in the vertical direction of the image stitched from different layers, avoiding field-of-view jumps. By assigning appropriate weight coefficients to these three factors and performing a weighted summation, the optimization process can adaptively balance the fidelity of data fit with the prior constraints of the model, ultimately enabling the fused panoramic image to simultaneously possess high geometric fidelity, excellent intra-layer consistency, and smooth inter-layer transition effects.
[0059] Furthermore, the intra-layer geometric constraints include intra-layer radial distance constraints, and the specific configuration process includes:
[0060] Determine the layer radius parameter for each layer of the image sensor array;
[0061] Calculate the actual distance from the optical center of each image sensor in the same layer to the center of the virtual sphere;
[0062] Based on the difference between the actual distance of all image sensors in the same layer and the layer radius parameter of the layer to which they belong, a first penalty term is constructed. The first penalty terms of each layer are combined as a radial distance constraint term within the layer. The value of the first penalty term increases as the total degree to which the actual distance of each image sensor in the same layer deviates from the layer radius parameter of the layer to which it belongs increases.
[0063] In this embodiment of the invention, the layer radius parameter can be determined in two ways, including but not limited to: First, it can be directly preset as a known physical design constant. That is, the layer radius parameter can be obtained in advance based on the precise mechanical design drawings or installation blueprints of the sensor array and remains fixed throughout the optimization process. In this case, the optimization process will focus on converging the actual positions of each sensor towards the ideal sphere. Second, it can participate in the overall solution as a variable to be optimized. In this mode, the system only sets an initial reference radius value for each layer, and then iteratively optimizes it together with the sensor pose parameters during the minimization of the joint optimization objective function, thereby automatically fitting the actual geometric distribution that best balances reprojection accuracy and intra-layer consistency. This method can effectively absorb and compensate for unavoidable minor errors in machining and on-site installation, improving the system's fault tolerance and actual calibration accuracy.
[0064] Through the above operations, this invention can explicitly and powerfully constrain each layer of image sensors to approximate a common sphere in the radial dimension. This constraint mainly targets the core geometric features of the multi-layer spherical array, transforming the physical prior that sensors in the same layer should be distributed on the same sphere into a mathematical penalty mechanism introduced into the optimization. During optimization, the radial displacement of the optical centers of each sensor from the ideal sphere due to various errors can be actively corrected, thus fundamentally ensuring that images from different sensors in the same layer have a highly consistent geometric basis when projected onto a unified spherical coordinate system. This greatly reduces intra-layer image misalignment and stretching distortion caused by radial position mismatch, which is a key prerequisite for generating geometrically coherent and seamless panoramic images. At the same time, the design of independent layer constraints also allows the system to flexibly adapt to non-uniform array structures where the radii of each layer may be different.
[0065] Furthermore, the intra-layer geometric constraints also include intra-layer tangential constraints, the specific configuration process of which includes:
[0066] Calculate the optical principal axis direction vector for each image sensor in the same layer;
[0067] The optical principal axis direction vectors of all image sensors in each layer are weighted, averaged, and normalized to obtain the layer normal direction of each layer.
[0068] Based on the angular deviation between the optical principal axis direction vector of each image sensor layer and the layer normal direction of the corresponding layer, a second penalty term is constructed. The second penalty terms of each layer are combined as an intra-layer tangential constraint term. The value of the second penalty term increases as the total degree of the angular deviation of each image sensor in the same layer increases.
[0069] Through the above operations, this invention can explicitly constrain the optical principal axis orientation of all image sensors within the same layer, making them more consistent in the tangential (orientation) dimension. By constructing and minimizing the second penalty term, the system can actively correct the divergence of optical axis orientation caused by installation tolerances or calibration errors of each sensor during the fusion process. This ensures that when images from different sensors in the same layer are mapped onto a unified sphere, their texture and structural features can be aligned and fused based on similar viewing angles. This effectively avoids local image distortion, stretching, or matching failure caused by excessive differences in viewing angles, and is a key guarantee for generating visually natural and geometrically consistent panoramic images.
[0070] As a further preferred implementation, the weight coefficients of the intra-layer radial distance constraint and the intra-layer tangential constraint are greater than the weight coefficient of the inter-layer smoothing constraint. It is understood that the intra-layer radial and tangential constraints determine whether each layer of the sensor array conforms to its preset fundamental geometric model, which serves as the basis for imaging. If this foundation is weak, the entire spherical coordinate system will lose its reliable reference frame, and all subsequent fusion will be impossible. Therefore, this invention assigns them higher weights in the early stages of optimization, which is equivalent to prioritizing the establishment of a stable and self-consistent geometric structure for each layer, a prerequisite for obtaining a globally correct solution. In contrast, the inter-layer smoothing constraint essentially refines and enhances the stable intra-layer structure, ensuring a natural transition. If inter-layer smoothing is emphasized too early or excessively, it may lead to sacrificing the geometric accuracy of the underlying layers in pursuit of surface continuity, resulting in a deviation in the optimization direction and potentially masking the true sensor pose error. Through the above operations, it can be ensured that the final fusion result is fundamentally geometrically accurate, and on this basis, visual smoothness and coherence are achieved.
[0071] Furthermore, the configuration process for inter-layer smoothing constraints specifically includes:
[0072] Between two adjacent image sensor layers, a correspondence between the image sensors is established based on the proximity of the projection positions of the optical centers of the image sensors on the horizontal plane.
[0073] Calculate the difference in optical principal axis direction vector and the difference in magnitude of optical center position vector between each pair of corresponding interlayer image sensors, and set the value of the interlayer smoothing constraint term to increase as the difference increases.
[0074] Specifically, when establishing the correspondence between image sensors in different layers, for two adjacent sensor arrays, each sensor in the upper layer (the layer with the larger pitch angle) is associated with the sensor in the lower layer (the layer with the smaller pitch angle) that is horizontally closest to it. This proximity is measured by vertically projecting the three-dimensional optical center positions of the sensors onto the same horizontal plane (e.g., the ground plane) and then calculating the two-dimensional Euclidean distance between the projected points. The purpose of establishing this correspondence is to provide a clear and physically meaningful pair of computational objects for subsequent smoothness constraints, ensuring that the optimization force can be accurately applied between spatially adjacent and visually overlapping sensors, thereby effectively guiding the natural connection of adjacent image layers during fusion.
[0075] In this embodiment of the invention, the degree of abrupt changes in the pose of adjacent layer sensors is quantified based on the difference in the optical principal axis direction vector and the difference in the magnitude of the optical center position vector between each pair of corresponding interlayer image sensors. The difference in the optical principal axis direction vector is mainly characterized by calculating the angle between two unit direction vectors or directly calculating the norm of their vector difference, which reflects the degree of continuous change in the direction viewed by the upper and lower sensors. The difference in the magnitude of the optical center position vector refers to the absolute value of the difference in the distance from the optical center of each of the two sensors to the virtual sphere center, reflecting the degree of jump in the radial distribution of the sensors. By constructing a penalty term to increase the value of the interlayer smoothing constraint term as these two types of differences increase, the system is driven to reduce these differences during the optimization process, thereby actively eliminating drastic changes in the orientation and layout of adjacent layer sensors, ultimately achieving a smooth visual transition in the vertical direction of the fused image without abrupt geometric jumps.
[0076] Furthermore, the image fusion module also includes a second building unit, which is used to detect and match feature points based on multi-view images to establish image point correspondences across different image sensors; each set of image point correspondences represents the same physical space point observed in images from different image sensors.
[0077] Furthermore, the process of establishing the correspondence between image points across different image sensors also includes:
[0078] Based on the prior information of the multi-layer spherical distribution of the image sensor array, and based on the standard that the angle between the spatial line connecting the optical centers of two image sensors and their respective optical principal axes is less than the preset field of view threshold, a set of adjacent image sensors that are allowed to perform feature matching is defined for each image sensor.
[0079] After initial feature matching, the epipolar geometric relationship is calculated based on the initial parameters of the image sensor, and mismatches that do not conform to the epipolar constraints are eliminated based on the epipolar geometric relationship.
[0080] In this embodiment of the invention, the image point correspondence refers to a data structure that connects images from different sensors to represent points in the same physical scene. Specifically, when the same spatial point (such as a corner of a wall or a landmark) is captured by sensors at two or more different locations, it will form an imaging point on its respective image plane. The system finds these points through a feature matching algorithm and associates them to form an image point correspondence.
[0081] Furthermore, the aforementioned prior information regarding the multi-layered spherical distribution specifically includes the known geometric layout parameters of the sensor array, such as the approximate position of the optical center of each sensor in the global coordinate system, the approximate orientation of its optical principal axes, and the nominal field of view range of each sensor. This information originates from the array's mechanical design drawings or preliminary calibration process, and together defines the spatial distribution relationship of the sensors on the sphere.
[0082] The initial parameters of the image sensor specifically include, but are not limited to, intrinsic parameters (such as focal length, principal point coordinates, and lens distortion coefficients) and extrinsic parameters (such as the initial rotation matrix and translation vector of the sensor relative to the global coordinate system) obtained through preliminary calibration or other means before the start of joint optimization.
[0083] During the initial feature matching operation, salient local feature points are extracted from each sensor image using computer vision algorithms (such as SIFT, ORB, or AKAZE) and their descriptors are calculated. Then, by comparing the similarity between descriptors (such as calculating Hamming distance or Euclidean distance), the most similar candidate points for the feature points in the current sensor image are found in all other sensor images, thus forming a series of preliminary matching pairs.
[0084] After obtaining initial matching pairs, incorrect matches that do not conform to epipolar constraints are eliminated based on epipolar geometry. Epipolar geometry is a strict projective geometric constraint; correct matching point pairs must satisfy its constraint conditions. Through the above operations, this invention can significantly improve the purity and reliability of the image point correspondence set and eliminate a large number of erroneous associations caused by texture repetition, illumination changes, or noise. This improves the accuracy, stability, and convergence speed of sensor parameter optimization and 3D reconstruction, laying a reliable data foundation for generating high-precision panoramic images from the source.
[0085] Furthermore, the process of determining the basic reprojection error term specifically includes:
[0086] Based on the image point correspondence and the intrinsic and extrinsic parameters of the corresponding image sensor, the position estimate of the corresponding three-dimensional spatial point is calculated;
[0087] Based on the estimated position of the three-dimensional spatial point and the intrinsic and extrinsic parameters of the image sensor, the sum of squared errors between the position of the three-dimensional spatial point reprojected onto the image plane of the image sensor and the actual detected image feature point position is calculated.
[0088] Understandably, the above process essentially utilizes observational consistency for iterative correction. Specifically, using the currently estimated sensor intrinsic and extrinsic parameters, the correspondence between 2D image points from different viewpoints is inversely calculated using the triangulation principle to determine their most probable 3D spatial positions. This operation establishes a geometric mapping from 2D images to a 3D scene. Subsequently, this estimated 3D point is reprojected back onto the image plane of each participating sensor using the same set of sensor parameters, following the forward process of the imaging model, generating a set of theoretically predicted 2D coordinates. By calculating the sum of squared errors between these predicted coordinates and the coordinates of the actually detected feature points, a quantifiable and differentiable optimization objective is ultimately formed. This error term sensitively reflects the overall accuracy of the currently estimated sensor parameters (extrinsic parameters determine the viewpoint position and orientation, while intrinsic parameters determine the imaging model) and the 3D point positions. By iteratively minimizing this error, the system can automatically and collaboratively optimize the intrinsic and extrinsic parameters of all sensors and the 3D structure of the scene, forcing them to continuously adjust until they reach a state of high geometric consistency with all actual observation data. This lays the most crucial mathematical and physical foundation for generating geometrically accurate and seamlessly aligned panoramic fused images.
[0089] As a further preferred implementation, the process of minimizing the joint optimization objective function employs a hierarchical optimization strategy. Specifically, in the first optimization stage, intra-layer geometric constraints and inter-layer smoothing constraints are temporarily relaxed or fixed, with the primary objective being to minimize the basic reprojection error term, and the pose and position parameters of the image sensor are initially optimized. The purpose of this stage is to allow the sensor parameters to quickly converge to a geometrically roughly correct initial solution based on the multi-view observation data itself without introducing strong geometric priors, thus establishing a reasonable starting point for the subsequent introduction of structured constraints. Subsequently, in the second optimization stage, based on the results obtained in the first stage, the intra-layer geometric constraint term is activated, and the layer geometric model parameters of each layer are optimized. The core task of this stage is to use the physical priors of the array to guide the layout of the sensors within the same layer towards a preset ideal spherical geometric model, thereby establishing a stable and self-consistent geometric structure within each layer. Finally, in the third optimization stage, the basic reprojection error term, the optimized intra-layer geometric constraint term, and the inter-layer smoothing constraint term are all activated and combined to perform a comprehensive and refined iterative optimization of all image sensor parameters and layer geometric model parameters until the convergence condition is met. The above operations effectively avoid the problems of convergence to local optima or oscillation that may occur in multi-objective optimization, and significantly improve the stability, efficiency and overall quality of the final fusion result of the optimization process.
[0090] Furthermore, the process of projecting multi-view images onto a unified spherical coordinate system centered on the sphere's center and then fusing them includes:
[0091] Discretize the target hemisphere into a spherical mesh defined by the azimuth and elevation angles;
[0092] Determine the first image sensor covering the field of view of each target point on the spherical grid, and acquire the corresponding pixel values on the image of the first image sensor;
[0093] Based on the directional angle of the target point relative to the optical principal axis of the first image sensor, the position and distortion degree of the target point in the image of the first image sensor, and the parameter uncertainty of the first image sensor after optimization, the fusion weight of all first image sensors corresponding to each target point is determined.
[0094] The pixel values from different image sensors are weighted and averaged based on the fusion weights to obtain the pixel value of the target point in the final panoramic image.
[0095] In this embodiment of the invention, the fusion weight is a quantified numerical value used to characterize the proportion or importance of corresponding pixel values from different sensors when calculating a specific pixel in the final panoramic image. The setting of the weight determines how the final color and brightness information of that point is synthesized from multiple data sources.
[0096] It is understandable that not all sensors that can see the same spatial point provide pixel information of equal quality or reliability. Therefore, to achieve optimal fusion, this invention evaluates the observations of each sensor in real time from three dimensions. Specifically, the angle between the target point and the sensor's optical axis reflects the straightness of the observation viewpoint. The smaller the angle, the closer the target point is to the center of the sensor's field of view, and the smaller the perspective distortion and the higher the resolution of its image. Therefore, it should be given higher confidence. At the same time, the specific location and distortion degree of the target point in the sensor image further reveal the local quality distribution within a single image. Even with the same sensor, the geometric fidelity and signal-to-noise ratio of pixel information in the image edge areas are often lower than those in the central area due to lens distortion and light attenuation. This factor must be compensated for in the weight allocation. In addition, the parameters (such as position and orientation) obtained by each sensor after the initial joint optimization are accompanied by a certain degree of uncertainty estimation. The reliability of all geometric mapping relationships provided by a sensor with low confidence in parameter optimization results is questionable. Therefore, the weight of its data in the fusion should be adjusted accordingly.
[0097] By comprehensively considering the aforementioned geometric, imaging, and confidence factors, this invention dynamically calculates the fusion weights for each target point across all covered sensors. It prioritizes sensor data with better observation angles, superior imaging positions, and more reliable self-calibration, while suppressing interference from data sources with unfavorable observation conditions or high inherent uncertainty. Based on weighted average fusion, the system achieves optimal synthesis of multi-source information at the pixel level, thereby ensuring that the generated panoramic image is seamlessly continuous and possesses high accuracy and visual realism in both geometric and radiometric characteristics.
[0098] Example 2
[0099] Based on the content disclosed in Embodiment 1, the image fusion module in this embodiment of the invention further includes an adaptive adjustment unit, which is used to periodically evaluate the current satisfaction level of the intra-layer geometric constraint term and the inter-layer smoothing constraint term, and dynamically adjust the weight coefficients of the intra-layer geometric constraint term and / or the inter-layer smoothing constraint term in the joint optimization objective function according to the evaluation results.
[0100] By periodically evaluating the actual satisfaction of intra-layer geometric constraints and inter-layer smoothness constraints, and adjusting their weight coefficients in the objective function in real time, the system can intelligently manage the focus of the optimization process, avoiding optimization rigidity caused by fixed weights. This allows the system to adaptively allocate optimization attention according to the main contradictions at different stages, improving the convergence speed and stability of the entire joint optimization process, and ensuring high-quality fusion results with geometric accuracy and visual smoothness under various initial conditions and real-world scenarios.
[0101] Example 3
[0102] A second aspect of this invention discloses a security monitoring method based on multi-image fusion, the method comprising:
[0103] Acquire multi-view images captured by an image sensor array; the image sensor array is distributed on a multi-layered spherical surface centered on a virtual sphere.
[0104] A panoramic image is generated based on the multi-view images, and security monitoring is performed in real time based on the panoramic image.
[0105] The process of generating the panoramic image specifically includes:
[0106] A joint optimization objective function is constructed, which is a weighted sum of the basic reprojection error term, the intra-layer geometric constraint term, and the inter-layer smoothing constraint term. The intra-layer geometric constraint term is used to constrain the spatial position and orientation of each image sensor within the same layer, so as to conform to the layer geometric model centered on the sphere. The inter-layer smoothing constraint term is used to constrain the smoothness of the changes in the orientation and position parameters of the image sensors at corresponding positions between adjacent layers.
[0107] By minimizing the joint optimization objective function, the pose parameters, position parameters of all image sensors, and parameters of the layer geometry model are simultaneously optimized.
[0108] Based on the optimized parameters, the multi-view images are projected onto a unified spherical coordinate system centered on the sphere's center and fused to generate a panoramic image covering the hemispherical space.
[0109] It should be noted that the specific implementation process of Embodiment 3 is similar to that of Embodiments 1 and 2, and will not be repeated in this embodiment.
[0110] Finally, it should be noted that the above-described embodiments include multiple parallel implementations of the present invention. Deleting or otherwise adjusting one or more implementations will not affect the implementation of the solution. Furthermore, the security monitoring system and method based on multi-image fusion disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A security monitoring system based on multi-image fusion, the system comprising an image acquisition module for acquiring multi-view images collected by an image sensor array; the image sensor array being distributed on multiple spherical surfaces centered on a virtual sphere. An image fusion module is used to generate a panoramic image based on the multi-view images; A monitoring module is used for real-time security monitoring based on panoramic images; characterized in that the image fusion module specifically includes: The first construction unit is used to construct a joint optimization objective function, which is a weighted sum of a basic reprojection error term, an intra-layer geometric constraint term, and an inter-layer smoothing constraint term. The intra-layer geometric constraint term is used to constrain the spatial position and orientation of each image sensor within the same layer, so as to conform to the layer geometric model centered on the sphere. The inter-layer smoothing constraint term is used to constrain the smoothness of the changes in the orientation and position parameters of corresponding image sensors between adjacent layers. An optimization unit is configured to optimize the pose parameters, position parameters of all image sensors, and parameters of the layer geometry model simultaneously by minimizing the joint optimization objective function. The fusion unit is used to project multi-view images onto a unified spherical coordinate system centered on the sphere's center based on optimized parameters, and then fuse them to generate a panoramic image covering the hemispherical space.
2. The security monitoring system based on multi-image fusion according to claim 1, characterized in that, The intra-layer geometric constraints include intra-layer radial distance constraints, and the specific configuration process includes: Determine the layer radius parameter for each layer of the image sensor array; Calculate the actual distance from the optical center of each image sensor in the same layer to the center of the virtual sphere; Based on the difference between the actual distance of all image sensors in the same layer and the layer radius parameter of the layer to which they belong, a first penalty term is constructed. The first penalty terms of each layer are combined as a radial distance constraint term within the layer. The value of the first penalty term increases as the total degree to which the actual distance of each image sensor in the same layer deviates from the layer radius parameter of the layer to which it belongs increases.
3. The security monitoring system based on multi-image fusion according to claim 2, characterized in that, The intra-layer geometric constraint terms also include intra-layer tangential constraint terms, and the specific configuration process includes: Calculate the optical principal axis direction vector for each image sensor in the same layer; The optical principal axis direction vectors of all image sensors in each layer are weighted, averaged, and normalized to obtain the layer normal direction of each layer. Based on the angular deviation between the optical principal axis direction vector of each image sensor layer and the layer normal direction of the corresponding layer, a second penalty term is constructed. The second penalty terms of each layer are combined as an intra-layer tangential constraint term. The value of the second penalty term increases as the total degree of the angular deviation of each image sensor in the same layer increases.
4. The security monitoring system based on multi-image fusion according to claim 1, characterized in that, The configuration process for the inter-layer smoothing constraint term specifically includes: Between two adjacent image sensor layers, a correspondence between the image sensors is established based on the proximity of the projection positions of the optical centers of the image sensors on the horizontal plane. Calculate the difference in optical principal axis direction vector and the difference in magnitude of optical center position vector between each pair of corresponding interlayer image sensors, and set the value of the interlayer smoothing constraint term to increase as the difference increases.
5. The security monitoring system based on multi-image fusion according to claim 1, characterized in that, The image fusion module also includes a second construction unit, which is used to establish image point correspondences across different image sensors based on feature points detected and matched from multi-view images; each set of image point correspondences represents the same physical space point observed in images from different image sensors.
6. The security monitoring system based on multi-image fusion according to claim 5, characterized in that, The process of determining the basic reprojection error term specifically includes: Based on the image point correspondence and the intrinsic and extrinsic parameters of the corresponding image sensor, the position estimate of the corresponding three-dimensional spatial point is calculated; Based on the estimated position of the three-dimensional spatial point and the intrinsic and extrinsic parameters of the image sensor, the sum of squared errors between the position of the three-dimensional spatial point reprojected onto the image plane of the image sensor and the actual detected image feature point position is calculated.
7. The security monitoring system based on multi-image fusion according to claim 6, characterized in that, The process of establishing the correspondence between image points across different image sensors also includes: Based on the prior information of the multi-layer spherical distribution of the image sensor array, and based on the standard that the angle between the spatial line connecting the optical centers of two image sensors and their respective optical principal axes is less than the preset field of view threshold, a set of adjacent image sensors that are allowed to perform feature matching is defined for each image sensor. After initial feature matching, the epipolar geometric relationship is calculated based on the initial parameters of the image sensor, and mismatches that do not conform to the epipolar constraints are eliminated based on the epipolar geometric relationship.
8. The security monitoring system based on multi-image fusion according to claim 1, characterized in that, The process of projecting multi-view images onto a unified spherical coordinate system centered on the sphere's center and then fusing them includes: Discretize the target hemisphere into a spherical mesh defined by the azimuth and elevation angles; Determine the first image sensor covering the field of view of each target point on the spherical grid, and acquire the corresponding pixel values on the image of the first image sensor; Based on the directional angle of the target point relative to the optical principal axis of the first image sensor, the position and distortion degree of the target point in the image of the first image sensor, and the parameter uncertainty of the first image sensor after optimization, the fusion weight of all first image sensors corresponding to each target point is determined. The pixel values from different image sensors are weighted and averaged based on the fusion weights to obtain the pixel value of the target point in the final panoramic image.
9. The security monitoring system based on multi-image fusion according to any one of claims 1-8, characterized in that, The image fusion module further includes an adaptive adjustment unit, which periodically evaluates the current satisfaction level of the intra-layer geometric constraints and inter-layer smoothing constraints, and dynamically adjusts the weight coefficients of the intra-layer geometric constraints and / or inter-layer smoothing constraints in the joint optimization objective function based on the evaluation results.
10. A security monitoring method based on multi-image fusion, the method being applied to the system according to any one of claims 1-9, the method comprising: Acquire multi-view images captured by an image sensor array; The image sensor array is distributed on multiple spherical surfaces centered on a virtual sphere. A panoramic image is generated based on the multi-view images, and security monitoring is performed in real time based on the panoramic image. The process of generating the panoramic image is characterized by specifically including: A joint optimization objective function is constructed, which is a weighted sum of the basic reprojection error term, the intra-layer geometric constraint term, and the inter-layer smoothing constraint term. The intra-layer geometric constraint term is used to constrain the spatial position and orientation of each image sensor within the same layer, so as to conform to the layer geometric model centered on the sphere. The inter-layer smoothing constraint term is used to constrain the smoothness of the changes in the orientation and position parameters of the image sensors at corresponding positions between adjacent layers. By minimizing the joint optimization objective function, the pose parameters, position parameters of all image sensors, and parameters of the layer geometry model are simultaneously optimized. Based on the optimized parameters, the multi-view images are projected onto a unified spherical coordinate system centered on the sphere's center and fused to generate a panoramic image covering the hemispherical space.
