Image fusion method, device and computer storage medium
By acquiring and processing the original images and position information of multiple cameras, a fused image in a panoramic space is generated, which solves the problem of difficulty in correlating multiple cameras in the existing technology, and realizes highly accurate monitoring and cross-camera and cross-field tracking functions. .
Patent Information
- Application Number
- CN202110990307.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-26
AI Technical Summary
The existing airport customs surveillance system cannot effectively correlate multiple cameras, leading to the risk of losing traces of people in large spaces. It also relies on manual analysis with limited accuracy.
By obtaining the original images and position information of each shooting device, performing conversion processing and fusion processing, generating a fused image in the panoramic space, and achieving cross-camera and cross-field tracking.
It improves the accuracy and processing efficiency of monitoring tasks, reduces manpower investment and response time, and supports monitoring tasks in real-life video splicing.
Smart Images

Figure CN113781373B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to an image fusion method, device and computer storage medium. Background Art
[0002] In the customs inspection work at the airport, being able to accurately identify, locate and track some passengers who are marked in the system has always been one of the important tasks of customs inspection officers. At the same time, for the identified passengers, how to continuously track, respond quickly, and effectively dispatch and carry out related work depends more on the subjective analysis and experience summary of customs officers, which not only requires a high level of personal work experience of customs officers, but also has very limited judgment accuracy due to incomplete pre-information.
[0003] Currently, airports are equipped with cameras and video surveillance systems, which can support the tracing, storage and search of video results, as well as the face detection and reporting functions of front-end face capture. However, since the existing monitoring system of airport customs cannot effectively associate multiple cameras in a large space, if only manual video recording is used, there is a risk of losing the trace of passengers due to situations such as passengers crossing the camera, using obstacles to avoid, changing clothes, etc.
[0004] In view of this, a low-cost and high-accuracy monitoring processing technology is urgently needed. Summary of the invention
[0005] In view of the above problems, the present application provides an image fusion method, device and computer storage medium, which can improve the image fusion effect and provide monitoring in the real scene of video splicing to improve the monitoring accuracy.
[0006] The first aspect of the present application provides an image fusion method, which includes: obtaining each original image corresponding to each shooting device and each position information corresponding to each original image; performing conversion processing on each position information corresponding to each original image according to a preset conversion rule to obtain each converted image corresponding to each original image; and performing fusion processing on each converted image to obtain a fused image.
[0007] A second aspect of the present application provides a computer storage medium, characterized in that the computer storage medium stores instructions for executing each step in the image fusion method described in the first aspect.
[0008] The third aspect of the present application provides an image fusion device, which includes: an acquisition module, used to acquire each original image corresponding to each shooting device and each position information corresponding to each original image; a conversion module, used to perform conversion processing on each position information corresponding to each original image according to a preset conversion rule, and obtain each converted image corresponding to each original image; a fusion module, used to perform fusion processing on each converted image, and obtain a fused image.
[0009] To sum up, the image fusion method, device and computer storage medium of the embodiments of the present application, by performing conversion processing on the position information of each original image to generate a fused image in a panoramic space, not only have a better image fusion effect, but also can support the execution of various monitoring tasks in the real scene of video stitching, which can effectively improve the processing efficiency of monitoring tasks while reducing manpower input and response time. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0011] Figure 1 This is a processing flow chart of the image fusion method according to the first embodiment of the present application.
[0012] Figure 2 This is a processing flow chart of the image fusion method according to the second embodiment of the present application.
[0013] Figure 3 This is a processing flow chart of the image fusion method according to the third embodiment of the present application.
[0014] Figure 4 This is a schematic structural diagram of an image fusion device according to the fifth embodiment of the present application.
[0015] Component number
[0016] 400: image fusion device; 402: acquisition module; 404: conversion module; 406: fusion module; 50: shooting device. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0018] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0019] First embodiment
[0020] Figure 1 The flowchart of the image fusion method of the first embodiment of the present application is shown. As shown in the figure, this embodiment mainly includes the following steps:
[0021] Step S102, acquiring each original image corresponding to each shooting device and each position information corresponding to each original image.
[0022] Optionally, each physical parameter information corresponding to each shooting device may be acquired, and each position information corresponding to each original image captured by each shooting device may be determined according to each physical parameter information corresponding to each shooting device.
[0023] Optionally, the photographing device may include a spherical camera, which may adjust the horizontal angle and / or the pitch angle according to the location of the photographing target, so that the photographing target is located in the photographing area of the photographing device.
[0024] In this embodiment, the physical parameter information of the camera may include the camera position parameter and the camera attitude parameter of the camera, wherein the camera position parameter is, for example, the latitude and longitude parameter of the camera, and the camera attitude parameter includes, for example, the horizontal angle parameter and the pitch angle parameter of the camera.
[0025] Optionally, the number of original images to be fused may be no less than 3.
[0026] Step S104 , performing conversion processing on each position information corresponding to each original image according to a preset conversion rule, to obtain each conversion image corresponding to each original image.
[0027] Optionally, the conversion processing performed on each position information corresponding to each original image may include plane conversion processing, projection conversion processing, and scaling conversion processing, so as to prepare for subsequent image fusion processing.
[0028] Step S106: Perform fusion processing on each converted image to obtain a fused image.
[0029] Optionally, a registration process may be performed on each conversion image according to a geometric motion model to convert each conversion image into the same coordinate system; and then a fusion process may be performed on the registered conversion images to synthesize them into a stitched image in a panoramic space.
[0030] Optionally, each original video of each shooting device can be obtained, and each original image frame with the same timestamp in each original video can be extracted, and the steps shown in this embodiment (i.e., step S102 to step S106) can be used to perform image fusion processing on each original image frame to obtain each fused image frame corresponding to each timestamp, and then the fused image frames are arranged in order based on the timestamp to obtain a fused video of the original videos.
[0031] Specifically, the above-mentioned fused video can be further combined with cross-camera tracking (ReID) technology, video full structuring technology, etc. For example, in the fusion space or plane map corresponding to the fused video, the position of the monitored target can be identified, analyzed, and displayed, thereby achieving the technical effect of cross-camera and cross-field tracking.
[0032] In summary, the image fusion method of this embodiment converts the position information of the original images to generate a fused image of the original images, thereby realizing the monitoring function in a panoramic space and achieving a better monitoring effect.
[0033] Second embodiment
[0034] Figure 2 The flowchart of the image fusion method of the second embodiment of the present application is shown. This embodiment is a specific implementation plan of the above step S104. As shown in the figure, this embodiment mainly includes the following steps:
[0035] Step S202: based on the preset reference planes corresponding to the original images, transform the original images to obtain the plane-transformed images corresponding to the original images.
[0036] Optionally, the position information of the original image includes coordinate information.
[0037] Specifically, in practical applications, obtaining panoramic images often requires cameras to be arranged in different positions and at different inclination angles. However, due to the different arrangements of cameras, it cannot be guaranteed that all cameras are on the same plane. For example, cylindrical projections are not necessarily located on the same cylinder, and plane projections are not necessarily located on the same plane. In addition, in order to avoid shooting blind spots, the shooting device is often tilted downward at a certain angle when shooting. These common situations are often easily overlooked, resulting in poor image stitching effects. Therefore, it is necessary to convert the coordinate information of the original images according to the position information and posture information of the shooting device before all original images are projected onto the specified cylinder or specified plane.
[0038] In this embodiment, the preset reference planes corresponding to the original images can be determined according to the image center points corresponding to the original images, and based on the determined preset reference planes, plane transformation processing is performed on the coordinate information corresponding to the original images to obtain plane transformation images.
[0039] Step S204: based on a preset projection rule, transform each plane transformation image to obtain each projection transformation image corresponding to each plane transformation image.
[0040] Specifically, since each original image is captured by a camera at a different angle, the original images are often not on the same projection plane. If the overlapping original images are directly seamlessly spliced, the visual consistency of the actual scene will be destroyed. Therefore, it is necessary to perform projection conversion on the original images first to improve the accuracy of subsequent image splicing.
[0041] In this embodiment, a reference coordinate system may be determined based on a preset projection rule, and projection processing may be performed on each coordinate information of each plane transformation image based on the determined reference coordinate system to obtain each projection transformation image corresponding to each plane transformation image.
[0042] Optionally, the preset projection rule includes one of plane projection, cylindrical projection, cube projection, and spherical projection.
[0043] Step S206 : performing scaling processing on each projected transformation image based on a preset scaling rule to obtain each scaled transformation image corresponding to each projected transformation image.
[0044] In this embodiment, an image scaling rule may be determined based on each calibration point determined from each projection transformation image, and scaling processing may be performed on each projection transformation image based on the determined image scaling rule to obtain each scaled transformation image corresponding to each projection transformation image.
[0045] Optionally, the calibration position and the calibration quantity of each calibration point in each projected transformation image may be determined according to the application scenario of the fused image.
[0046] In this embodiment, the determined calibration points may include corner points of each image and points of interest that meet preset requirements. With these calibration points, it is easier to process the transformation relationships between images, such as rotation, affine, and perspective.
[0047] In summary, the image fusion method of this embodiment can improve the processing effect of subsequent image fusion by performing plane conversion processing, projection conversion processing and scaling conversion processing on each original image.
[0048] Third embodiment
[0049] Figure 3The flowchart of the image fusion method of the third embodiment of the present application is shown. This embodiment mainly shows the specific implementation scheme of the above step S106. As shown in the figure, this embodiment mainly includes the following steps:
[0050] Step S302: Based on a preset stitching model, stitching processing is performed on each converted image to obtain a stitched image.
[0051] In this embodiment, a stitching process may be performed on each of the scaled converted images generated in the above step S206 to obtain a stitched image.
[0052] Optionally, the preset stitching model may include but is not limited to: a translation model, a similarity model, an affine model or a perspective model, etc.
[0053] Step S304: Based on a preset fusion algorithm, a fusion process is performed on the stitched image to obtain a fused image.
[0054] Optionally, a non-multi-resolution technology or a multi-resolution technology may be used to perform fusion processing on the stitched images to obtain a fused image.
[0055] Optionally, non-multi-resolution techniques may include, but are not limited to: an average method, a hat function method, a weighted average method, a median filter method, and the like.
[0056] Optionally, the multi-resolution technology may include but is not limited to: Gaussian pyramid, Laplacian pyramid, contrast pyramid, gradient pyramid, wavelet, etc.
[0057] To sum up, this embodiment performs stitching and fusion processing on each converted image to obtain a fused image with panoramic space characteristics. In the panoramic fusion space displayed by the fused image, the position of the target person can be identified and monitored, thereby achieving the technical effect of cross-camera and cross-field tracking and command.
[0058] Fourth embodiment
[0059] A fourth embodiment of the present application provides a computer storage medium, in which instructions for executing the steps in the image fusion method described in the above embodiments are stored.
[0060] Fifth embodiment
[0061] Figure 4 The schematic diagram of the architecture of the image fusion device of the fifth embodiment of the present application is shown. As shown in the figure, the image fusion device 400 of the present embodiment mainly includes: an acquisition module 402, a conversion module 404, and a fusion module 406.
[0062] The acquisition module 402 is used to acquire each original image corresponding to each shooting device 50 and each position information corresponding to each original image.
[0063] Optionally, the acquisition module 402 is further used to acquire each physical parameter information corresponding to each shooting device 50; and determine each position information corresponding to each original image captured by each shooting device 50 according to each physical parameter information corresponding to each shooting device 50.
[0064] Optionally, the physical parameter information includes shooting position parameters and shooting attitude parameters of the shooting device 50 ; the shooting attitude parameters include horizontal angle parameters and pitch angle parameters of the shooting device 50 .
[0065] The conversion module 404 is used to perform conversion processing on each of the position information corresponding to each of the original images according to a preset conversion rule, so as to obtain each of the converted images corresponding to each of the original images.
[0066] Optionally, the conversion module 404 is also used to convert each of the original images based on each preset reference plane corresponding to each of the original images to obtain each plane conversion image corresponding to each of the original images; convert each of the plane conversion images based on a preset projection rule to obtain each of the projection conversion images corresponding to each of the plane conversion images; and perform scaling processing on each of the projection conversion images based on a preset scaling rule to obtain each scaled conversion image corresponding to each of the projection conversion images.
[0067] Optionally, the position information includes coordinate information, and the conversion module 404 is also used to determine the preset reference planes corresponding to each of the original images based on the image center points corresponding to each of the original images; based on each of the preset reference planes, plane conversion processing is performed on the coordinate information corresponding to each of the original images to obtain each of the plane conversion images.
[0068] Optionally, the conversion module 404 is further configured to determine a reference coordinate system based on the preset projection rule; based on the reference coordinate system, perform projection processing on each coordinate information of each plane conversion image to obtain each projection conversion image.
[0069] Optionally, the preset projection rule includes one of plane projection, cylindrical projection, cube projection, and spherical projection.
[0070] Optionally, the conversion module 404 is further used to determine an image scaling rule according to each calibration point determined from each of the projected conversion images; and perform scaling processing on each of the projected conversion images according to the image scaling rule to obtain each of the scaled conversion images.
[0071] Optionally, the conversion module 404 is further configured to determine the calibration position and the calibration quantity of each calibration point in each of the projected conversion images according to an application scenario of the fused image.
[0072] The fusion module 406 is used to perform fusion processing on each of the converted images to obtain a fused image.
[0073] Optionally, the fusion module 406 is further configured to perform a stitching process on each of the converted images based on a preset stitching model to obtain a stitched image; and perform a fusion process on the stitched image based on a preset fusion algorithm to obtain the fused image.
[0074] Optionally, the preset stitching model includes at least one of a translation model, a similarity model, an affine model or a perspective model.
[0075] Optionally, the fusion module 406 is also used to use non-multi-resolution technology or multi-resolution technology to perform fusion processing on the stitched image to obtain the fused image; wherein the non-multi-resolution technology includes one of an average method, a hat function method, a weighted average method, and a median filter method; wherein the multi-resolution technology includes one of a Gaussian pyramid, a Laplacian pyramid, a contrast pyramid, a gradient pyramid, and a wavelet.
[0076] In addition, the image fusion device 400 of the embodiment of the present invention can also be used to implement other steps in the aforementioned image fusion method embodiments, and has the beneficial effects of the corresponding method step embodiments, which will not be repeated here.
[0077] In summary, the image fusion method, device and computer storage medium provided in each embodiment of the present application obtain the position information of the original image, and perform plane transformation, projection transformation, scaling transformation and other processing on the position information of the original image based on preset rules, and fuse the converted original image to obtain a fused image. Accordingly, the present application can effectively improve the fusion effect of the fused image.
[0078] Furthermore, the fused image generated by the present application can be used to perform various monitoring tasks in a panoramic space, so as to achieve the technical effect of cross-camera and cross-field tracking and command.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An image fusion method, characterized in that: include: Acquire each original image corresponding to each shooting device and each position information corresponding to each original image; According to a preset conversion rule, performing conversion processing on each of the position information corresponding to each of the original images to obtain each of the converted images corresponding to each of the original images; as well as Performing fusion processing on each of the converted images to obtain a fused image; The performing conversion processing on each of the position information corresponding to each of the original images according to the preset conversion rule to obtain each of the converted images corresponding to each of the original images comprises: Based on each preset reference plane corresponding to each original image, transform each original image to obtain each plane transformation image corresponding to each original image; Based on a preset projection rule, transforming each of the plane transformation images to obtain each projection transformation image corresponding to each of the plane transformation images; and Based on a preset scaling rule, performing scaling processing on each of the projected conversion images to obtain each scaled conversion image corresponding to each of the projected conversion images; The performing scaling processing on each of the projected conversion images based on a preset scaling rule to obtain each scaled conversion image corresponding to each of the projected conversion images comprises: Determining an image scaling rule according to each calibration point determined from each of the projected conversion images; and According to the image scaling rule, scaling processing is performed on each of the projected conversion images to obtain each of the scaled conversion images.
2. The image fusion method according to claim 1, characterized in that: The acquiring of each position information corresponding to each original image comprises: Obtaining physical parameter information corresponding to each camera; The position information corresponding to each original image captured by each shooting device is determined according to the physical parameter information corresponding to each shooting device.
3. The image fusion method according to claim 2, characterized in that: The physical parameter information includes shooting position parameters and shooting posture parameters of the shooting device; The shooting posture parameters include horizontal angle parameters and pitch angle parameters of the shooting device.
4. The image fusion method according to claim 1, characterized in that: The position information includes coordinate information, and the converting each of the original images based on each of the preset reference planes corresponding to each of the original images to obtain each of the plane conversion images corresponding to each of the original images includes: Determining the preset reference planes corresponding to the original images according to the center points of the images corresponding to the original images; Based on each of the preset reference planes, plane conversion processing is performed on each of the coordinate information corresponding to each of the original images to obtain each of the plane conversion images.
5. The image fusion method according to claim 4, characterized in that: The converting each of the plane conversion images based on a preset projection rule to obtain each of the projection conversion images corresponding to each of the plane conversion images comprises: Based on the preset projection rule, determining a reference coordinate system; Based on the reference coordinate system, projection processing is performed on each coordinate information of each plane conversion image to obtain each projection conversion image.
6. The image fusion method according to claim 5, characterized in that: The preset projection rule includes one of plane projection, cylindrical projection, cube projection, and spherical projection.
7. The image fusion method according to claim 1, characterized in that: The method further includes: determining the calibration position and the calibration quantity of each calibration point in each of the projected transformation images according to the application scenario of the fused image.
8. The image fusion method according to claim 1, characterized in that: The performing fusion processing on each of the converted images to obtain a fused image comprises: Based on a preset stitching model, performing stitching processing on each of the converted images to obtain a stitched image; Based on a preset fusion algorithm, a fusion process is performed on the stitched image to obtain the fused image.
9. The image fusion method according to claim 8, characterized in that: The preset stitching model includes at least one of a translation model, a similarity model, an affine model or a perspective model.
10. The image fusion method according to claim 9, characterized in that: The performing fusion processing on the spliced image based on a preset fusion algorithm to obtain the fused image comprises: Using a non-multi-resolution technology or a multi-resolution technology, a fusion process is performed on the stitched image to obtain the fused image; Wherein, the non-multi-resolution technique includes one of an average method, a hat function method, a weighted average method, and a median filter method; The multi-resolution technology includes one of a Gaussian pyramid, a Laplacian pyramid, a contrast pyramid, a gradient pyramid, and a wavelet.
11. A computer storage medium, characterized in that: The computer storage medium stores instructions for executing the steps in the image fusion method according to any one of claims 1 to 10.
12. An image fusion device, characterized in that: include: An acquisition module, used to acquire each original image corresponding to each shooting device and each position information corresponding to each original image; A conversion module, configured to perform conversion processing on each of the position information corresponding to each of the original images according to a preset conversion rule, so as to obtain each of the converted images corresponding to each of the original images; A fusion module, used for performing fusion processing on each of the converted images to obtain a fused image; The conversion module is further used to convert each of the original images based on each preset reference plane corresponding to each of the original images to obtain each plane conversion image corresponding to each of the original images; convert each of the plane conversion images based on a preset projection rule to obtain each projection conversion image corresponding to each of the plane conversion images; and perform scaling processing on each of the projection conversion images based on a preset scaling rule to obtain each scaled conversion image corresponding to each of the projection conversion images; The conversion module is also used to determine an image scaling rule according to each calibration point determined from each of the projected conversion images; and to perform scaling processing on each of the projected conversion images according to the image scaling rule to obtain each of the scaled conversion images.
Citation Information
Patent Citations
Image mosaic device and method
CN101859433A
Image stitching method and device
CN103942782A
Panorama stitching synthesis method based on multi-view images
CN105447850A
Panorama stitching method
CN106339981A
Multi-lens sensor-based image fusion method
CN107492069A
