A method for radar detection of perimeter and calibration and tracking of ball camera

Through the collaborative reconnaissance of Thunder Vision detection technology and video sensors, combined with ball machine calibration and Kalman filtering methods, the problem of insufficient tracking performance of ball machine in specific surrounding scenarios is solved, precise positioning and real-time target tracking are achieved, and the surroundings are improved. Detection accuracy and real-time performance of boundary security protection.

CN118604818BActive Publication Date: 2024-11-22NANJING LES ELECTRONICS EQUIP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411081765.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-22
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

The existing ball machine tracking technology has insufficient tracking performance in specific scenarios of the periphery, making it difficult to meet the target tracking needs of the periphery safety prevention area, and is easily guided by the target to the periphery or cause missing alarms.

Method used

The lightning vision detection technology is used to combine video sensors and radar sensors for coordinated reconnaissance. Through the drawing of video defense zones and three-dimensional coordinate positioning, the ball is automatically calibrated and target tracked, and the ball is performed using the rotation matrix represented by Euler angles and Cartesian coordinate transformation. The machine position calibration is combined with the Kalman filtering method for data fusion and target tracking.

Benefits of technology

It realizes accurate positioning of the ball machine and continuous, real-time and accurate tracking of the target, improves the detection accuracy and real-timeness of the perimeter protection system, and improves the level and ability of perimeter safety protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604818B_ABST
    Figure CN118604818B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for radar vision detection and ball camera calibration and tracking of a perimeter, comprising: calibrating the ball camera; using the calibrated ball camera and the video sensor in the radar vision detection device to obtain the environmental image within the perimeter and draw the video defense zone; using the radar video detector to perform radar vision coordinated reconnaissance on the target appearing in the video defense zone; calculating in combination with the space of the video defense zone to locate the three-dimensional coordinates of the target; and driving the ball camera to track the target based on the three-dimensional coordinates of the target. The present invention can realize continuous, real-time and accurate tracking of perimeter intrusion targets, effectively improves the detection accuracy and real-time performance of the perimeter protection system, and has important application value and promotion prospects. Through the present invention, the automation and intelligence of perimeter system target intrusion detection is realized, which greatly improves the level and ability of perimeter security protection, and has important practical value and broad application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a perimeter security system detection technology, in particular to a perimeter radar detection and ball camera calibration tracking method. Background Art

[0002] This section merely provides background information related to the present disclosure and is not necessarily prior art.

[0003] With the increasing demand for modern perimeter security protection, traditional perimeter monitoring systems mostly rely on information from a single sensor, such as vibrating optical fiber, single radar, single video surveillance equipment, etc. At the same time, there are three traditional methods for tracking intruder targets. The first is visual target recognition tracking, the second is radar-guided ball camera tracking, and the third is tracking based on preset points. The first two methods have good tracking effects on targets in open areas, but they are not effective in tracking targets in complex environments with physical security walls, and are easily guided out of the perimeter by the target during tracking. For example, the tracking ball camera is guided into the sky by birds, airplanes, etc.; or people have left the security area of ​​the wall, but the ball camera is still tracking. The third method mostly relies on sensor alarms and ball camera preset points for tracking. For example, the vibration optical fiber alarm drives the ball camera to track preset points.

[0004] In perimeter security systems, it is often desirable to monitor key areas and track targets in specific areas. The patrol function of ball cameras is prone to missed alarms and does not meet the monitoring and tracking requirements. Existing tracking technologies cannot fully meet the target tracking requirements of perimeter security areas. Therefore, a more secure and reliable tracking method that can track specific perimeter areas is needed.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] Purpose of the invention: The technical problem to be solved by the present invention is to provide a method for radar detection of a perimeter and calibration and tracking of a ball camera in view of the deficiencies of the prior art.

[0007] In order to solve the above technical problems, the present invention discloses a method for radar detection of a perimeter and calibration and tracking of a ball camera, comprising the following steps:

[0008] Step 1, calibrating the ball camera;

[0009] Step 2: Use the calibrated ball camera and the video sensor in the radar detection device to obtain the environmental image within the perimeter and draw the video defense zone;

[0010] Step 3: Use the radar video detector to conduct radar-visual coordinated reconnaissance of targets appearing in the video defense area;

[0011] Step 4, calculating in combination with the space of the video defense zone to locate the three-dimensional coordinates of the target;

[0012] Step 5: According to the three-dimensional coordinates of the target, drive the ball camera to track the target.

[0013] Furthermore, the step 1 of calibrating the ball camera specifically includes:

[0014] Step 1-1, constructing a ball camera calibration space model;

[0015] Step 1-2, calculate the position calibration error according to the ball camera calibration space model;

[0016] Step 1-3, calculate the rotation calibration error according to the ball camera calibration space model;

[0017] Step 1-4, calibrating the parameters of the ball camera according to the position calibration error and the rotation calibration error.

[0018] Further, step 1-1, constructing a ball camera calibration space model, specifically includes:

[0019] The ball machine rotates in the world coordinate system using Euler angles Indicates that, let the angle around the Y axis and the Z axis be To rotate, the rotation matrix is and , respectively expressed as follows:

[0020] ;

[0021] ;

[0022] Using the above rotation matrix to rotate the ball camera is equivalent to using the inverse matrix to rotate the scene. It is expressed as follows:

[0023] ;

[0024] in, Represents the Euler angle around the Z axis To rotate, Represents the Euler angle around the Y axis To rotate, Represents the Euler angle around the Z axis Perform a rotation;

[0025] Any point within the boundary The world coordinates are converted to the Cartesian coordinates of the ball machine bound to the translation and pitch coordinates inside the ball machine , the transformation method is as follows:

[0026] ;

[0027] in, Indicates the position of the ball camera.

[0028] Furthermore, the calculation of the position calibration error described in step 1-2 specifically includes:

[0029] Calculate the position calibration Secondary measurement error , as follows:

[0030] ;

[0031] in, is the error for a set of measurements, i.e., the points With point The actual length between The absolute difference from the calculated length is as follows:

[0032] ;

[0033] in, is the point observed by the ball camera and Point The angle of and is the three-dimensional unit vector of the internal translation and pitch coordinates of the ball camera in the Cartesian coordinate system, and represent The measurement of and Measurements.

[0034] Further, the calculation of the rotation calibration error described in steps 1-3 specifically includes:

[0035] Around the normalized vector Rotation Angle The rotation matrix , as follows:

[0036] ;

[0037] By the unique non-zero vector and Rotation on a defined plane , as follows:

[0038] ;

[0039] Then the rotation calibration error , the calculation method is as follows:

[0040] ;

[0041] ;

[0042] ;

[0043] in, Indicates the initial orientation angle of the camera. Indicates the measuring point The vector to the camera position C, express Around Rotation Angle The resulting vector, Indicated in and In the plane, Rotation Angle , Indicates surrounding Rotation The rotation matrix of Represents the camera position vector in the coordinate system, Indicated in and Rotation in the plane The rotation matrix of , which represents the Euler angle between the jth measurement and the i-th measurement point The difference, Indicates the Euler angles of the jth measurement and the i-th measurement point The difference, Indicates the number of measurements.

[0044] Furthermore, the ball camera parameter calibration described in steps 1-4 specifically includes:

[0045] Step 1-4-1, setting the initial parameter values ​​of the ball camera;

[0046] Step 1-4-2, for each pair of unequal direct measurements , according to the method of steps 1-2 and 1-3, calculate the position calibration error and rotation calibration error between the parameter value and the direct measurement in the current iteration;

[0047] Step 1-4-3, calculate the sum of all error values;

[0048] Step 1-4-4, using the numerical minimization method, with the goal of minimizing the sum of error values, perform iterative optimization to obtain new parameter values;

[0049] Step 1-4-5, repeat steps 1-4-2 to 1-4-4 until the maximum number of iterations is met or the error is less than the threshold;

[0050] Step 1-4-6, output the parameter value of the last iteration as the calibration result, and calibrate the parameters of the ball camera.

[0051] Furthermore, the radar-visual collaborative reconnaissance described in step 3, i.e., using radar sensors and video sensors to detect targets, specifically includes:

[0052] Step 3-1, using a radar sensor and a video sensor to obtain radar data and video data respectively;

[0053] Step 3-2, preprocessing radar data and video data;

[0054] Step 3-3, in the video sensor, use the edge computing recognition method to perform target recognition;

[0055] Step 3-4, fusing the preprocessed radar data and video data to obtain the state of the target.

[0056] Furthermore, the edge computing identification method described in step 3-3 specifically includes:

[0057] Step 3-3-1, draw regional points of interest ROI for the video image according to the area of ​​interest, including: warning area, early warning area and suppression area;

[0058] Step 3-3-2, data acquisition, using the video sensor to acquire video data;

[0059] Step 3-3-3, preprocessing, preprocessing the collected video data, including: denoising, image enhancement and defense zone calculation;

[0060] Step 3-3-4, feature extraction, extracting key features of the target from the video data;

[0061] Step 3-3-5, model inference, runs the pre-trained deep learning or machine learning model on the video sensor to identify and classify the extracted key features to complete target recognition;

[0062] Step 3-3-6, for the detected target, check its position relationship with the regional interest point ROI, and filter or suppress it.

[0063] Further, the pre-processed radar data and video data are fused as described in step 3-4, using the Kalman filter method, specifically including the following steps: the pre-processed radar and video data are fused, the state vector of the Kalman filter includes the position, velocity and acceleration of the target; the measurement vector includes the distance, azimuth, velocity measured by the radar and the image coordinates measured by vision; the Kalman filter estimates the state of the target by estimating the state vector, and the estimation result is then used for target tracking, as follows:

[0064] Step 3-4-1, perform state prediction, as follows:

[0065] ;

[0066] in, is current The state estimate at time t represents the estimated values ​​of the target’s position, velocity, and acceleration. is the state transition matrix, is the input control matrix, It is an external input, which represents the known motion model of the target, the known control instructions of the target, or the factors that affect the state of the target;

[0067] Step 3-4-2, perform covariance prediction, as follows:

[0068] ;

[0069] in, is the state covariance matrix, is the process noise covariance matrix;

[0070] Step 3-4-3, perform measurement update, as follows:

[0071] ;

[0072] in, is the observation matrix, is the observation noise covariance matrix, is the Kalman gain, are observations, representing range, azimuth, and velocity in radar data and target image coordinates in video data.

[0073] Furthermore, the driving ball camera in step 5 to perform target tracking specifically includes:

[0074] Calculate the distance D between the target and the ball camera as follows:

[0075] ;

[0076] in, is the height of the ball camera from the ground, is the projection of the target distance on the horizontal plane, as follows:

[0077] ;

[0078] in, is the height of the radar sensor from the ball camera, The target distance detected by the radar sensor;

[0079] Calculate the pitch angle of the target detected by the ball camera and horizontal angle , as follows:

[0080] ;

[0081] in, is the horizontal angle of the target detected by the radar sensor, is the angle difference between the normal line of the radar sensor and the 0 degree normal line of the ball camera in the horizontal direction, and the angle difference in the pitch direction is ;

[0082] Calculate the field width W of the ball camera tracking target as follows:

[0083] ;

[0084] in, is the field of view, and the actual size of the target is , then the scaling factor Z is:

[0085] ;

[0086] The pitch angle of the target detected by the ball camera is calculated based on the above calculation , the horizontal angle of the ball camera detecting the target And the scaling factor of the ball camera detecting the target , drive the ball camera to track the target.

[0087] Beneficial Effects

[0088] 1. The present invention solves the problem of insufficient tracking performance of existing ball camera tracking technology in specific perimeter scenarios.

[0089] 2. The automatic calibration method for the ball camera proposed in the present invention can realize the precise positioning and target tracking of the ball camera.

[0090] 3. The present invention realizes continuous, real-time and accurate tracking of perimeter intrusion targets, effectively improving the detection accuracy and real-time performance of the perimeter protection system.

[0091] 4. Through the present invention, the automation and intelligence of target intrusion detection in the perimeter system are realized, which greatly improves the level and capability of perimeter security protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0093] Figure 1 It is a schematic diagram of the overall architecture of the detection and tracking device in the present invention.

[0094] Figure 2 It is the video defense zone drawing diagram in the present invention.

[0095] Figure 3a It is a schematic diagram of camera coordinates in the ball camera calibration method of the present invention.

[0096] Figure 3b It is a schematic diagram of position calibration in the ball camera calibration method of the present invention.

[0097] Figure 3c It is a schematic diagram of rotation calibration in the ball camera calibration method of the present invention.

[0098] Figure 4 It is a schematic diagram of target tracking in the present invention.

[0099] Figure 5 It is the overall logical structure diagram of the present invention.

[0100] Figure 6 It is a scene effect diagram in one embodiment of the present invention.

[0101] Figure 7 It is a playback diagram of an alarm event in an embodiment of the present invention.

[0102] Figure 8 It is one of the ball camera tracking diagrams in one embodiment of the present invention.

[0103] Fig. 9 This is the second ball camera tracking diagram in one embodiment of the present invention. DETAILED DESCRIPTION

[0104] The invention provides a method for radar detection of a perimeter and calibration and tracking of a ball camera, which is designed to address the shortcomings of the existing ball camera tracking technology in tracking performance in a specific perimeter scenario.

[0105] This system uses radar video detectors to coordinate the detection of targets. According to the drawing of video defense zones, it will identify targets in specific areas, and support the identification of targets such as people, cars, non-motor vehicles, animals, and airplanes. Combined with spatial calculations, it accurately locates the three-dimensional coordinates of the target, and then drives the ball camera to track it. In addition, in order to ensure accurate tracking of the ball camera, an automatic calibration method for the position and rotation of the ball camera is also provided, so that accurate positioning and target tracking can be achieved.

[0106] The radar and video detectors cooperate to detect targets by using radar sensors and video sensors and combining their advantages to detect targets. The specific implementation method is to pre-process the radar and video data and then perform radar and video fusion target detection.

[0107] The radar sensor uses millimeter wave radar, which has the advantages of high resolution, all-weather detection, strong penetration ability, etc., and is used to detect the distance, angle, pitch angle and speed information of the target. The radar has the ability to work all-weather and all-day, and can provide stable detection data in various harsh environments.

[0108] The video sensor is a sensor device used to capture, process and transmit video signals, which is usually composed of a camera, an image processor and data transmission. Video edge computing recognition technology is used in the video sensor to effectively reduce data processing and transmission delays and improve real-time performance. At the same time, it also reduces the pressure brought by the server center recognition method. Video edge computing recognition supports the recognition of targets such as people, cars, non-motor vehicles, animals, and airplanes. For specific targets, additional learning samples can be added for training. At the same time, after the video sensor is installed and fixed, ROIs (regional points of interest) such as warning areas, early warning areas and suppression areas are drawn on the video image according to the area of ​​interest. The relationship between the position and ROI of the target detected in the video stream is checked, and then screened or suppressed. Through the filtering and screening of ROI, identification and tracking in complex environments of the video area can be effectively carried out, and excessive tracking caused by the target leaving the ROI can also be avoided. At the same time, target tracking of the fused target can also achieve tracking of key areas.

[0109] 1. Schematic diagram of perimeter system detection and tracking Figure 1 As shown. The front-end equipment of the perimeter includes integrated radar and vision equipment, gun-type equipment, ball camera, broadcast, lighting and other equipment. The integrated radar and vision equipment is installed and deployed on each pole. The blind spot below the integrated radar and vision equipment can be filled by "eye contact" or "tracking". Auxiliary equipment such as ball cameras, broadcast, lighting, etc. will also be installed on the poles to complete the effects of target tracking, sound and light to drive away the target, and fill light. The process of perimeter intrusion alarm is as follows:

[0110] Step 1: A person intrudes into the fenced area, and one or more radar-visual integrated devices discover the target. After the target is discovered, the system immediately activates the target recognition and tracking function, and monitors the target's location and dynamic information in real time through sensing devices such as radar and cameras.

[0111] Step 2: The system integrates the target information detected by multiple integrated radar and vision devices to ensure all-round perception and tracking of the target. By comprehensively analyzing the target's position, speed, direction and other parameters, the system determines the target's true state and associates multiple devices to achieve tracking and monitoring of the target.

[0112] Step 3: The system automatically dispatches the ball camera to perform the target tracking task based on the target's position and motion trajectory. Through the tracking algorithm, the system can achieve continuous and real-time tracking of the target and ensure that the target is always under monitoring within the camera's field of view.

[0113] Step 4: Based on the time rules and strategies set by the system, the system can determine whether it is necessary to start the lights in the perimeter area for supplementary lighting to improve the nighttime target monitoring effect. At the same time, the system can also drive the broadcasting system to send out warning signals according to the target intrusion situation to drive away potential intruders and ensure the safety of the perimeter.

[0114] 2. Drawing diagram of perimeter system video defense area Figure 2 As shown in the figure. The detector used in this figure is a binocular radar-vision integrated device, which includes a radar detector and two video detectors, providing far-focus and near-focus videos respectively. According to the distance of the radar detection target, the far-focus or near-focus image is used for target detection and recognition, which can effectively improve the detection and recognition rate.

[0115] Video edge computing recognition technology is used in video sensors to effectively reduce data processing and transmission delays and improve real-time performance. It also reduces the pressure brought by the server-centric recognition method. Video edge computing recognition supports the recognition of targets such as people, cars, non-motor vehicles, animals, and airplanes. For specific targets, additional learning samples can be added for training. At the same time, after the video sensor is installed and fixed, ROIs (regional points of interest) such as warning areas, early warning areas, and suppression areas are drawn on the video image according to the area of ​​interest. The relationship between the position and ROI of the target detected in the video stream is checked, and then filtered or suppressed. Through ROI filtering and screening, identification and tracking in complex environments of the video area can be effectively performed, and over-tracking caused by the target leaving the ROI can also be avoided. At the same time, target tracking of the fused target can also achieve tracking of key areas.

[0116] The video edge computing recognition comprises the following steps:

[0117] Step 1-1, data collection: collect video data on edge devices (such as cameras, monitoring equipment);

[0118] Step 1-2, preprocessing: preprocess the collected video data, including denoising, image enhancement, defense zone calculation, etc., to improve the subsequent recognition accuracy;

[0119] Step 1-3, feature extraction: extract key features from video data, such as objects, actions, etc.;

[0120] Steps 1-4, model inference: Run the pre-trained deep learning or machine learning model on the edge device to identify and classify the extracted features.

[0121] The radar-visual fusion target uses Kalman filtering to fuse the preprocessed radar and video data. The state vector of the Kalman filter includes the position, velocity and acceleration of the target. The measurement vector includes the distance, azimuth, velocity measured by the radar and the image coordinates measured by vision. The Kalman filter estimates the state of the target by estimating the state vector, and the estimation result is then used for target tracking. Specifically, the relevant formula of the Kalman filter is as follows.

[0122] Status prediction

[0123] ;

[0124] Covariance prediction

[0125] ;

[0126] Measurement Update

[0127] ;

[0128] in is the state estimate, is the state covariance matrix, is the state transition matrix, is the input control matrix, is the external input (representing the known motion model of the target (such as uniform speed, uniform acceleration, etc.), the known control instructions of the target, or other factors that affect the target state), is the process noise covariance matrix, is the observation matrix, is the observation noise covariance matrix, is the Kalman gain, is the observed value.

[0129] 3. Dome camera calibration display, such as Figure 3a , Figure 3b and Figure 3c shown.

[0130] The target ball camera tracking needs to first perform position calibration and rotation calibration on the ball camera. An automatic calibration method is used, that is, the measurement data of some marking points are used as input, and then the calibration parameters are determined by calculating the model error and minimizing the model error.

[0131] like Figure 3a The following is a schematic diagram of camera coordinates. The camera has six independent degrees of freedom in the world coordinate system, three for translation vectors and three for rotation. The rotation can use Euler angles ( ). Rotate around the axis in the ZYZ manner, with angles around the Y and Z axes. The rotation formula is as follows:

[0132] ;

[0133] Using matrix R to rotate the camera is equivalent to using the inverse matrix to rotate the scene. The scene rotation matrix is ​​expressed as a rotation matrix:

[0134] ;

[0135] A point The world coordinates are converted to the camera Cartesian coordinates that are bound to the camera's internal translation-pitch coordinates. The transformation is as follows:

[0136] ;

[0137] Camera internal translation-pitch coordinates ( ) and the Cartesian coordinates of point P, and the inverse transformation relationship are as follows:

[0138] ;

[0139] like Figure 3b As shown, it is a schematic diagram of position calibration, and the error function of the position calibration N times of measurement calculation is as follows:

[0140] ;

[0141] in is the error for a set of measurements, calculated as the actual length The absolute difference between the calculated length and The camera observation , The angle of , It is the three-dimensional unit vector of the camera's internal translation-pitch coordinates in the Cartesian coordinate system, as shown in the above transformation relationship and inverse transformation relationship.

[0142] ;

[0143] like Figure 3c As shown, it is a schematic diagram of rotation calibration, around the general normalized vector (a unit vector in space) rotation angle The rotation matrix is ​​given by:

[0144] ;

[0145] By the unique non-zero vector and The rotation on the defined plane can be written as:

[0146] ;

[0147] The rotation error formula is as follows:

[0148] ;

[0149] in ;

[0150] According to the calculation method of the position calibration error and the rotation calibration error, the ball camera parameters can be calibrated. The calibration process is as follows:

[0151] Step 2-1, setting initial parameter values;

[0152] Step 2-2, for each pair of unequal direct measurements , calculate the error between the parameter value in the current iteration and the direct measurement;

[0153] Step 2-3, calculate the sum of all error function values ​​obtained in the previous step;

[0154] Step 2-4, pass this sum to a numerical minimization algorithm to iteratively optimize the parameter values;

[0155] Steps 2-5, repeat the above steps until the termination condition is met (such as reaching the maximum number of iterations or the error is less than a certain threshold);

[0156] Step 2-6, output the parameters of the last iteration as the calibration result;

[0157] 4. Target tracking diagram Figure 4 The ball camera tracking is to calculate the parameters of the target observed by the ball camera through radar video fusion target. Then, the ball camera is driven to track through data association processing and tracking model.

[0158] Distance D between fusion target and ball camera:

[0159] ;

[0160] in is the height of the ball camera from the ground, is the projection of the target distance on the horizontal plane:

[0161] ;

[0162] in is the height of the radar from the ball camera, Detect target distance for radar.

[0163] The pitch angle of the target detected by the ball camera , horizontal angle The calculation is as follows:

[0164] ;

[0165] in It is the horizontal angle of the radar detecting the target. Because the ball camera and the radar are not necessarily completely on the same vertical axis during the actual installation process, It is the angle difference between the radar normal and the 0 degree normal of the ball camera in the horizontal direction, and there is an angle difference in the pitch direction. .

[0166] The calculation formula for the field width W of the ball camera tracking the target is:

[0167] ;

[0168] in is the field of view. If the actual size of the target is S, the scaling factor Z is:

[0169] ;

[0170] 5. The logical structure diagram of perimeter radar detection ball camera tracking is as follows Figure 5 As shown. The target tracking processing flow mainly includes target fusion and tracking model. Target fusion is to fuse radar and video detection targets. The video detection targets are associated with points of interest, and the areas of interest in the video can be filtered and screened. The fused targets are then input into the tracking model. Due to the interference in the actual environment, there are certain errors in target detection. Therefore, the target detection results are tracked and filtered to eliminate the errors as much as possible to obtain high-precision target motion state estimation results. The target tracking filtering algorithm uses the target motion state information at the current moment to estimate the target motion state at the next moment, and uses the radar measurement information at the next moment to correct the estimated value, and finally outputs the corrected tracking filter value.

[0171] Example

[0172] According to the specific application scenario, the specific perimeter system on-site equipment is as follows Figure 6 There are several poles along the physical fence. The white poles are equipped with radar video detectors, ball cameras, sound and light alarms, and broadcasts, and the black poles are equipped with auxiliary lighting. Figure 7 As shown in the figure, it is the video alarm playback of the target intrusion. Figure 8 , Fig. 9 shown.

[0173] The present invention provides a method for radar detection of a perimeter and calibration and tracking of a ball camera. There are many methods and ways to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.

Claims

1. A method for perimeter radar detection and ball camera calibration tracking, characterized in that: The following steps are involved: Step 1, calibrating the ball camera; Step 2: Use the calibrated ball camera and the video sensor in the radar detection device to obtain the environmental image within the perimeter and draw the video defense zone; Step 3: Use the radar video detector to conduct radar-visual coordinated reconnaissance of targets appearing in the video defense area; Step 4, calculating in combination with the space of the video defense zone to locate the three-dimensional coordinates of the target; Step 5, driving the ball camera to track the target according to the three-dimensional coordinates of the target; The calibration of the ball camera described in step 1 specifically includes: Step 1-1, constructing a ball camera calibration space model; Step 1-2, calculate the position calibration error according to the ball camera calibration space model; Step 1-3, calculate the rotation calibration error according to the ball camera calibration space model; Step 1-4, calibrating the parameters of the ball camera according to the position calibration error and the rotation calibration error; Among them, step 1-1, constructing a ball camera calibration space model, specifically includes: The ball machine rotates in the world coordinate system using Euler angles Indicates that, assuming that the rotation is performed around the Y axis and the Z axis at an angle ω, the rotation matrix is and They are respectively expressed as follows: Using the above rotation matrix to rotate the ball camera is equivalent to using the inverse matrix to rotate the scene. It is expressed as follows: in, represents a rotation around the Z axis with the Euler angle ψ, It represents the rotation around the Y axis with the Euler angle θ. Represents the Euler angle around the Z axis Perform a rotation; Any point P within the boundary W The world coordinates are converted into the ball machine Cartesian coordinates P bound to the ball machine's internal translation and pitch coordinates C , the transformation method is as follows: Wherein, C represents the position of the ball camera; The calculation of the position calibration error described in step 1-2 specifically includes: The N-times measurement error Perr of the position calibration is calculated as follows: Among them, PErr ij is the error for a set of measurements, namely point M i With point M j The actual length between i M j The absolute difference from the calculated length is as follows: PErr ij =|(M i M j ) 2 -(CM i ) 2 -(CM j ) 2 +2CM i CM j cosα ij | cosα ij =(P i ,P j ) Among them, α ij is the point M observed by the ball camera i and point M j The angle, P i and P j is the three-dimensional unit vector of the internal translation and pitch coordinates of the ball camera in the Cartesian coordinate system, i and j represent the i-th and j-th measurements of N measurements; Calculating the rotation calibration error described in steps 1-3, specifically including: Normalize around the vector [x,y,z] T Rotation matrix for rotation angle ω The details are as follows: c=cos(ω) s=sin(ω) By the unique non-zero vector and Rotation on a defined plane The details are as follows: The rotation calibration error RErr is calculated as follows: in, Indicates the initial orientation angle of the camera. Indicates the measuring point M i The vector to the camera position C, express Around Rotation Angle The resulting vector, Indicated in and In the plane, Rotation angle Δθ, Indicates surrounding Rotation The rotation matrix of Represents the camera position vector in the coordinate system, Indicated in and The rotation matrix of Δθ in the plane, Indicates the Euler angles of the jth measurement and the i-th measurement point The difference between j -θ i , represents the difference in θ between the j-th measurement and the i-th measurement point, and N represents the number of measurements.

2. A method for radar detection of a perimeter and calibration and tracking of a ball camera according to claim 1, characterized in that: The parameters calibration of the ball camera described in steps 1-4 specifically includes: Step 1-4-1, setting the initial parameter values ​​of the ball camera; Step 1-4-2, for each pair of unequal direct measurements (i, j), calculate the position calibration error and rotation calibration error between the parameter value and the direct measurement in the current iteration according to the method of steps 1-2 and 1-3; Step 1-4-3, calculate the sum of all error values; Step 1-4-4, using the numerical minimization method, with the goal of minimizing the sum of error values, perform iterative optimization to obtain new parameter values; Step 1-4-5, repeat steps 1-4-2 to 1-4-4 until the maximum number of iterations is met or the error is less than the threshold; Step 1-4-6, output the parameter value of the last iteration as the calibration result, and calibrate the parameters of the ball camera.

3. A method for radar detection of a perimeter and calibration and tracking of a ball camera according to claim 2, characterized in that: The radar-visual coordinated reconnaissance described in step 3, i.e., using radar sensors and video sensors to detect targets, specifically includes: Step 3-1, using a radar sensor and a video sensor to obtain radar data and video data respectively; Step 3-2, preprocessing radar data and video data; Step 3-3, in the video sensor, use the edge computing recognition method to perform target recognition; Step 3-4, fusing the preprocessed radar data and video data to obtain the state of the target.

4. A method for radar detection of a perimeter and calibration and tracking of a ball camera according to claim 3, characterized in that: The edge computing identification method described in step 3-3 specifically includes: Step 3-3-1, draw regional points of interest ROI for the video image according to the area of ​​interest, including: warning area, early warning area and suppression area; Step 3-3-2, data acquisition, using the video sensor to acquire video data; Step 3-3-3, preprocessing, preprocessing the collected video data, including: denoising, image enhancement and defense zone calculation; Step 3-3-4, feature extraction, extracting key features of the target from the video data; Step 3-3-5, model inference, runs the pre-trained deep learning or machine learning model on the video sensor to identify and classify the extracted key features, complete target recognition, and obtain the detected target; Step 3-3-6, for the detected target, check its position relationship with the regional interest point ROI, and filter or suppress it.

5. A method for radar detection of a perimeter and calibration and tracking of a ball camera according to claim 4, characterized in that: The fusion of the pre-processed radar data and video data described in step 3-4 uses the Kalman filter method, which specifically includes the following steps: the pre-processed radar and video data are fused, the state vector of the Kalman filter includes the position, velocity and acceleration of the target; the measurement vector includes the distance, azimuth, velocity measured by the radar and the image coordinates measured by vision; the Kalman filter estimates the state of the target by estimating the state vector, and the estimation result is then used for target tracking, as follows: Step 3-4-1, perform state prediction, as follows: in, is the state estimate at the current k moment, indicating the estimated values ​​of the target’s position, velocity, and acceleration, F k-1 is the state transfer matrix, B k-1 is the input control matrix, u k-1 It is an external input, which represents the known motion model of the target, the known control instructions of the target, or the factors that affect the state of the target; Step 3-4-2, perform covariance prediction, as follows: Among them, P k is the state covariance matrix, Q k-1 is the process noise covariance matrix; Step 3-4-3, perform measurement update, as follows: P k =(I-K k H k )P k Among them, H k is the observation matrix, R k is the observation noise covariance matrix, K k is the Kalman gain, z k are observations, representing range, azimuth, and velocity in radar data and target image coordinates in video data.

6. A method for radar detection of a perimeter and calibration and tracking of a ball camera according to claim 5, characterized in that: The driving ball camera to track the target described in step 5 specifically includes: Calculate the distance D between the target and the ball camera as follows: Among them, H is the height of the ball camera from the ground, and r is the projection of the target distance on the horizontal plane, as follows: Among them, h is the height of the radar sensor from the ball camera, and d is the target distance detected by the radar sensor; Calculate the pitch angle Φ of the target detected by the ball camera c and the horizontal angle θ c , as follows: i c =θ-Δθ Among them, θ is the horizontal angle of the target detected by the radar sensor, Δθ is the angle difference between the normal line of the radar sensor and the 0 degree normal line of the ball camera in the horizontal direction, and the angle difference in the pitch direction is ΔΦ; Calculate the field width W of the ball camera tracking target as follows: Where FOV is the field of view, and if the actual size of the target is S, then the scaling factor Z is: The pitch angle Φ of the target detected by the ball camera is calculated based on the above calculation c 、The horizontal angle θ of the ball camera detecting the target c And the scaling factor Z of the ball camera to detect the target, drive the ball camera to track the target.

Citation Information

Patent Citations

  • Target tracking method and system in video monitoring and dome camera

    CN111862197A

  • System, method and device for determining defense area and storage medium

    CN112241987A

  • Target detection method and system based on Leiyu fusion, equipment and medium

    CN115272810A

  • Unmanned aerial vehicle multi-target tracking method based on visual / millimeter wave radar information fusion

    CN115731268A

  • Photovoltaic power station security early warning system and method based on Leiyu fusion

    CN116153005A