Gun-dome camera linkage target positioning method and system, electronic equipment and storage medium

Through the coordinate conversion mapping model and real-time motion adjustment, the problem of difficulty in ball camera tracking caused by the coordinate error in the gun transmission is solved, the accurate capture and tracking of moving targets is achieved, and the accuracy of the monitoring equipment is improved.

CN118710707APending Publication Date: 2024-09-27BEIJING ZHONGAN RUILI TECH CO LTD

Patent Information

Application Number
CN202410965212.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In a multi-target monitoring system composed of multiple groups of bolt machines and dome cameras, the target coordinate error transmitted by the bolt machine makes it difficult for the dome camera to accurately capture and track moving targets, and cannot meet the monitoring needs.

Method used

By determining the coordinate conversion mapping model of the gun and dome camera, receiving the target coordinates of the gun, and adjusting the motion and focal length of the dome camera, real-time tracking and focusing of the moving target is achieved, so that the target is located in the middle of the image of the dome camera.

Benefits of technology

Combining the advantages of gun and dome cameras, it achieves accurate tracking and positioning of moving targets and improves the accuracy and capture capabilities of monitoring equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710707A
    Figure CN118710707A
Patent Text Reader

Abstract

The invention discloses a gun-dome camera linkage target positioning method, which comprises the following steps of: determining a coordinate transformation mapping model of a gun camera and a dome camera according to a position relationship between coordinates of the gun camera and the dome camera; receiving a gunlock target coordinate of the moving target sent by the gunlock; determining target coordinates of the dome camera according to the target coordinates of the gun camera and a coordinate transformation mapping model; sending a moving instruction to the dome camera according to the target coordinates of the dome camera; detecting the moving target according to the information, fed back by the dome camera, of the moving target acquired by the dome camera according to the moving instruction; and when the moving target is detected, a tracking instruction is sent to the dome camera so as to track and focus the moving target in real time, and the moving target is enabled to be located in the middle of an image shot by the dome camera. The advantages of a gun camera and a ball camera are combined, a target can be accurately tracked and positioned, and the accuracy of monitoring equipment is improved. The invention further discloses a system for implementing the method, electronic equipment and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video surveillance technology, and in particular to a gun-ball linkage target positioning method, system, electronic equipment and storage medium. Background Art

[0002] The gun camera has a wide monitoring field of view, but it cannot focus on the details of the image at a distance; the ball camera has a wide monitoring range and can see more details through the lens zoom. If the gun and ball are linked, they can combine the advantages of both the gun camera and the ball camera, so that they can see a wider field of view and capture details at a distance. In a multi-target monitoring system composed of multiple gun cameras and ball cameras, the gun camera transmits the target coordinate position to the ball camera. If the ball camera focuses directly according to the target coordinate position transmitted by the gun camera, it is often difficult to accurately capture and track the target because the target is always moving and there is a coordinate error, and it cannot meet the monitoring of the target. Summary of the invention

[0003] In order to solve the above problems existing in the prior art, the present invention provides a gun-ball linkage target positioning method, system, electronic device and storage medium. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0004] A first aspect of an embodiment of the present invention provides a gun-ball linkage target positioning method, comprising the following steps:

[0005] According to the positional relationship of the coordinates of the gun camera and the ball camera, a coordinate conversion mapping model of the gun camera and the ball camera is determined;

[0006] receiving the gun target coordinates of the moving target sent by the gun;

[0007] Determine the target coordinates of the ball camera according to the gun camera target coordinates and the coordinate conversion mapping model;

[0008] Sending a moving instruction to the ball camera according to the target coordinates of the ball camera;

[0009] Detecting the moving target according to the information of the moving target obtained by the ball camera according to the movement of the moving command fed back by the ball camera; wherein the speed of the ball camera moving according to the moving command is greater than a preset speed, and the zoom multiple is less than a preset multiple;

[0010] When the moving target is detected, a tracking instruction is sent to the ball camera to track and focus on the moving target in real time, and to make the moving target located in the middle of the image captured by the ball camera.

[0011] In one embodiment of the present invention, the step of determining the coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera comprises:

[0012] Pre-calibrate the shooting picture of the ball camera according to the pre-calibrated image taken by the gun camera;

[0013] According to the marking points in the image captured by the gun camera, the coordinate conversion mapping model of the gun camera and the ball camera is determined.

[0014] In one embodiment of the present invention, the pre-calibration of the shooting picture of the ball camera according to the pre-calibrated image shot by the gun camera includes:

[0015] Get the pre-calibrated image taken by the gun camera;

[0016] According to the first horizontal and vertical positioning percentages of the ball camera corresponding to the first pre-calibration point in the pre-calibration image, adjusting the horizontal minimum value and the vertical maximum value of the ball camera;

[0017] Adjusting the longitudinal minimum value of the ball camera according to the second transverse and longitudinal positioning percentages of the ball camera corresponding to the second pre-calibration point in the pre-calibration image;

[0018] According to the third positioning percentages in the horizontal and vertical directions of the ball camera corresponding to the third pre-calibration point in the pre-calibration image, adjusting the horizontal maximum value of the ball camera;

[0019] According to the fourth positioning percentages of the dome camera in the horizontal and vertical directions corresponding to the fourth pre-calibration point in the pre-calibration image, adjusting the maximum horizontal value, the minimum horizontal value, the maximum vertical value and the minimum vertical value of the dome camera so that the center of the dome camera shooting picture coincides with the fourth calibration point;

[0020] According to the fifth horizontal and vertical positioning percentages of the ball camera corresponding to the fifth pre-calibration point in the pre-calibration image, adjust the horizontal maximum value, horizontal minimum value, vertical maximum value and vertical minimum value of the ball camera so that the center of the ball camera shooting picture coincides with the fifth calibration point.

[0021] In one embodiment of the present invention, the step of determining the coordinate transformation mapping model of the gun camera and the ball camera according to the marking points in the image captured by the gun camera includes:

[0022] Determine a plurality of marking points in the captured image of the gun, and obtain the coordinates of each marking point as the gun marking coordinates;

[0023] Adjusting the ball camera to move so that the center of the image captured by the ball camera coincides with the marking point;

[0024] Obtaining the coordinates of the center of the ball camera as the ball camera marking coordinates;

[0025] According to the gun camera marking coordinates and the ball camera marking coordinates and a preset modeling method, a coordinate conversion mapping model of the gun camera and the ball camera is determined.

[0026] In one embodiment of the present invention, when the moving target is detected, a tracking instruction is sent to the ball camera to track and focus the moving target in real time and locate the moving target in the middle of the image captured by the ball camera, including:

[0027] When the moving target is detected, a tracking instruction is sent to the ball camera to update the coordinates and focus on the moving target in real time, determine the predicted motion position, and make the moving target located in the middle of the image captured by the ball camera.

[0028] In one embodiment of the present invention, the method further comprises:

[0029] The coordinate transformation mapping model is subjected to periodic error correction.

[0030] In one embodiment of the present invention, the method further comprises:

[0031] When the preset cycle time is reached, the step of pre-calibrating the shooting picture of the ball camera according to the pre-calibrated image shot by the gun camera is repeatedly performed.

[0032] A second aspect of an embodiment of the present invention provides a gun-ball linkage target positioning system, comprising:

[0033] A first determination module is used to determine a coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera;

[0034] A receiving module, used for receiving the gun target coordinates of the moving target sent by the gun;

[0035] A second determination module is used to determine the target coordinates of the ball camera according to the target coordinates of the gun camera and the coordinate conversion mapping model;

[0036] A first sending module, used for sending a moving instruction to the ball camera according to the target coordinates of the ball camera;

[0037] A detection module, used to detect the moving target according to the information of the moving target obtained by the ball camera according to the movement of the moving command fed back by the ball camera; wherein the speed of the ball camera moving according to the moving command is greater than a preset speed, and the zoom multiple is less than a preset multiple;

[0038] The second sending module is used to send a tracking instruction to the ball camera when the moving target is detected, so as to track and focus the moving target in real time and make the moving target located in the middle of the image taken by the ball camera.

[0039] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a gun-ball linkage target positioning method provided by the first aspect of an embodiment of the present invention is implemented.

[0040] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the gun-ball linkage target positioning method provided by the first aspect of an embodiment of the present invention is implemented.

[0041] Beneficial effects of the present invention:

[0042] The present invention can convert the coordinates of the gun camera and the coordinates of the ball camera through a coordinate conversion mapping model. The target position (for example, pixel coordinates) of the gun camera relative to its own coordinate system is used as input, and these coordinates are input into the established coordinate conversion mapping model to calculate the corresponding ball camera coordinates. According to the calculated ball camera coordinates, instructions are sent to the ball camera to perform corresponding angle adjustment and zooming in order to capture and track the target. In the initial positioning stage, the ball camera first locates the target with a wide viewing angle and a faster speed according to the movement instruction. In this process, the ball camera does not actively focus so as to have a wider field of view, which helps to capture the moving target more easily in the initial stage. After the target is confirmed to enter the field of view of the ball camera, the ball camera focuses on the target so that the target is always kept in the center of the image. Therefore, the present invention combines the advantages of both the gun camera and the ball camera, and can accurately track and locate the target, thereby improving the accuracy of the monitoring equipment.

[0043] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0044] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0046] Figure 1 A schematic flow chart of a gun-ball linkage target positioning method provided by an embodiment of the present invention;

[0047] Figure 2 A block diagram of a gun-ball linked target positioning system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0049] like Figure 1 As shown, a first aspect of an embodiment of the present invention provides a gun-ball linkage target positioning method, comprising the following steps:

[0050] Step 11, determining the coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera.

[0051] Step 12, receiving the gun target coordinates of the moving target sent by the gun.

[0052] Step 13, determining the target coordinates of the ball camera according to the target coordinates of the gun camera and the coordinate conversion mapping model.

[0053] Step 14, sending a movement instruction to the ball camera according to the target coordinates of the ball camera.

[0054] Step 15, detecting the moving target according to the information of the moving target obtained by the ball camera according to the movement of the moving instruction fed back by the ball camera.

[0055] The speed at which the ball camera moves according to the moving instruction is greater than the preset speed, and the zoom multiple is less than the preset multiple.

[0056] Step 16, when a moving target is detected, a tracking instruction is sent to the ball camera to track and focus on the moving target in real time, and to locate the moving target in the middle of the image captured by the ball camera.

[0057] In this embodiment, the coordinates of the gun camera and the ball camera can be converted through the coordinate conversion mapping model. The target position (for example, pixel coordinates) of the gun camera relative to its own coordinate system is used as input, and these coordinates are input into the established coordinate conversion mapping model to calculate the corresponding ball camera coordinates. According to the calculated ball camera coordinates, instructions are sent to the ball camera to adjust the angle and zoom accordingly, so as to capture and track the target. In the initial positioning stage, the ball camera first locates the target with a wide viewing angle and a faster speed according to the movement instruction. In this process, the ball camera does not actively focus so as to have a wider field of view, which helps to capture the moving target more easily in the initial stage. After the target is confirmed to enter the field of view of the ball camera, the ball camera focuses on the target so that the target is always kept in the center of the image. Therefore, this embodiment combines the advantages of both the gun camera and the ball camera, and can accurately track and locate the target, thereby improving the accuracy of the monitoring equipment.

[0058] A second aspect of an embodiment of the present invention provides a gun-ball linkage target positioning method, comprising the following steps:

[0059] Step 21, determining the coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera.

[0060] Specifically, step 21 includes step 211-step 212:

[0061] Step 211, pre-calibrate the screen shot by the ball camera according to the pre-calibrated image shot by the gun camera. In the initialization stage, a pre-calibration is required to determine the spatial relationship between the gun camera and the ball camera. The principle of pre-calibration is to set the maximum and minimum values ​​(i.e., the maximum range of movement) of the ball camera in the horizontal and vertical directions based on the gun camera screen, so that its range of movement corresponds to the range shot by the gun camera as completely as possible. Here, for the ball camera, pMin is the minimum value in the horizontal direction, corresponding to the left boundary of the gun camera (0°~360°), pMax is the maximum value in the horizontal direction, corresponding to the right boundary of the gun camera (0°~360°), tMin is the minimum value in the vertical direction, corresponding to the upper boundary of the gun camera (-90°~90°), tMax is the maximum value in the vertical direction, corresponding to the lower boundary of the gun camera (-90~90°), TargetX is the horizontal positioning (percentage 0~1), and TargetY is the vertical positioning (percentage 0~1). By changing these parameter values, the movement range of the ball camera can be set.

[0062] a. Since pMin and pMax are in a continuous range of 360°, it is possible that pMax is smaller than pMin.

[0063] b. The vertical direction of the ball camera hardware cannot be set to a negative value (upward viewing angle), but the internal difference calculation generally requires tMin to have a negative value, which is determined based on the accuracy.

[0064] c. For example, when pMin=330pMax=30tMin=-10tMax=40, the camera needs to track the horizontal 1 / 4 and vertical 1 / 2 of the gun camera screen, then targetX=0.25, targetY=0.5, the program will interpolate to get P=345T=15, and set the ball camera to move to this value.

[0065] Step 211 includes steps A1 to A6:

[0066] Step A1, obtaining a pre-calibrated image taken by the gun camera. The gun camera takes any image as the pre-calibrated image.

[0067] Step A2: adjusting the minimum horizontal value and the maximum vertical value of the ball camera according to the first horizontal and vertical positioning percentages of the ball camera corresponding to the first pre-calibration point in the pre-calibration image.

[0068] In this step, you can observe in the pre-calibrated image to determine the lower left point, left midpoint, center point, lower right point, and right midpoint reference objects. The points corresponding to these reference objects are the first pre-calibrated point (lower left point), the second pre-calibrated point (left midpoint), the third pre-calibrated point (center point), the fourth pre-calibrated point (lower right point), and the fifth pre-calibrated point (right midpoint). The positioning percentage is also the value of TargetX and TargetY.

[0069] Here, the first horizontal and vertical positioning percentages of the ball camera corresponding to the first pre-calibration point in the pre-calibration image are set to TargetX=0, TargetY=1, that is, the lower left point. At this time, pMin and tMax are adjusted to align the center of the ball camera shooting picture with the lower left point of the gun camera picture.

[0070] Step A3, according to the second horizontal and vertical positioning percentages of the ball camera corresponding to the second pre-calibration point in the pre-calibration image, adjust the vertical minimum value of the ball camera. Specifically, the first horizontal and vertical positioning percentages of the ball camera corresponding to the second pre-calibration point in the pre-calibration image are set to TargetX=0, TargetY=0.5, that is, the left midpoint, and then adjust pMin so that the center of the ball camera shooting picture is aligned with the left midpoint of the gun camera picture.

[0071] Step A4, according to the third horizontal and vertical positioning percentages of the ball camera corresponding to the third pre-calibration point in the pre-calibration image, adjust the horizontal maximum value of the ball camera. Specifically, the first horizontal and vertical positioning percentages of the ball camera corresponding to the third pre-calibration point in the pre-calibration image are set to TargetX=0.5, TargetY=0.5, that is, the center point, and then adjust pMax so that the center of the ball camera shooting picture is aligned with the center point of the gun camera picture.

[0072] Step A5, according to the fourth horizontal and vertical positioning percentages of the ball camera corresponding to the fourth pre-calibration point in the pre-calibration image, adjust the horizontal maximum value, horizontal minimum value, vertical maximum value and vertical minimum value of the ball camera so that the center of the ball camera coincides with the fourth calibration point. In this step, TargetX=1, TargetY=1, check whether it corresponds to the lower right point of the gun camera pre-calibration image, and fine-tune the four values ​​of pMin tMin pMax tMax.

[0073] Step A6, according to the fifth horizontal and vertical positioning percentages of the ball camera corresponding to the fifth pre-calibration point in the pre-calibration image, adjust the horizontal maximum value, horizontal minimum value, vertical maximum value and vertical minimum value of the ball camera so that the center of the ball camera coincides with the fifth calibration point. In this step, TargetX=1, TargetY=0.5, check whether it corresponds to the right midpoint of the gun camera pre-calibration image, and fine-tune the four values ​​of pMin, tMin, pMax, and tMax.

[0074] Due to the deformation of the gun camera screen and installation defects, it is generally impossible to absolutely align the above six points. At this time, the center should be perfectly aligned, and the offset on both sides should be as small as possible and the same. When sending coordinates to the ball camera, the corresponding PTZ value is calculated by interpolation. PTZ value Pan / Tilt / Zoom is an abbreviation, which indicates the value of the pan / tilt full-range (left / right / up / down) movement and lens zoom and zoom control.

[0075] Regarding the problem of the viewing angle being too low: the program originally tracks the center point of the detection result block, so now the tracking does not track the head but the waist, which is the more accurate result. Solution: a. When sending, only send the information of the head area. b. Set a fixed percentage, no longer follow 50% of the height, but change to follow 75% or 80% of the height.

[0076] For example, the user can adjust the pre-calibration process in the UI (User Interface): in the UI, six drag bars appear on the screen and a crosshair appears on the screen, and the drag bars correspond to pMin, pMax, tMin, tMax, TargetX and TargetY.

[0077] Step 212, according to the marking points in the image taken by the gun camera, determine the coordinate conversion mapping model of the gun camera and the ball camera. In this step, after the pre-calibration is completed, the coordinate conversion model is established. The specific steps of step 212 include: Step B1-Step B4:

[0078] Step B1, determine multiple marking points in the image captured by the gun, and obtain the coordinates of each marking point as the gun marking coordinates (for example, pixel coordinates within a quadrant).

[0079] Step B2, adjusting the ball camera to move so that the center of the image captured by the ball camera coincides with the marking point.

[0080] Step B3, obtaining the coordinates of the center of the ball camera as the ball camera mark coordinates (usually general angle coordinates and zoom levels).

[0081] Step B4, according to the gun camera mark coordinates and the ball camera mark coordinates and the preset modeling method, determine the gun camera and the ball camera coordinate conversion mapping model. In this step, using these data, a mathematical modeling method (such as multivariate linear regression, polynomial fitting, etc.) can be used to establish a mapping relationship from the gun camera coordinates to the ball camera coordinates.

[0082] For example, if the established coordinate transformation mapping model is linear (it can also be a nonlinear model), the model is as follows:

[0083] Gun mark coordinates: (x_g, y_g)

[0084] Coordinate transformation mapping model: that is, the coordinates of the ball machine

[0085] θ=ax_g+by_g+c;

[0086] z=dx_g+ey_g+f

[0087] Among them, θ represents the rotation angle of the ball camera, z represents the zoom level, and a, b, c, d, e, and f are model parameters obtained by mathematical modeling methods.

[0088] Step 22, receiving the gun target coordinates of the moving target sent by the gun, and taking the target position (eg, pixel coordinates) of the gun relative to its own coordinate system as the gun target coordinates.

[0089] Step 23, determine the target coordinates of the ball camera according to the bolt camera target coordinates and the coordinate conversion mapping model. Input the bolt camera target coordinates into the coordinate conversion mapping model to calculate the corresponding ball camera target coordinates, including the corresponding angle position and zoom level.

[0090] Step 24, sending a movement instruction to the ball camera according to the ball camera target coordinates. The ball camera target coordinates are used to generate a movement instruction, which is sent to the ball camera.

[0091] Step 25, detecting the moving target according to the information of the moving target obtained by the ball camera according to the movement of the moving instruction fed back by the ball camera.

[0092] Among them, the speed at which the ball camera moves according to the moving instruction is greater than the preset speed, and the zoom multiple is less than the preset multiple. In this step, after the ball camera receives the moving instruction, it rotates to the coordinate direction with a wide viewing angle and a faster speed according to the target coordinates of the ball camera indicated by the moving instruction and shoots images in real time. During the rotation process, the ball camera does not actively focus so as to have a wider field of view, which helps to capture the moving target more easily in the initial stage. As long as it is rotated in place or close enough to the coordinates. The ball camera feeds the image back to this system, and this system uses target detection algorithms, such as motion detection and target tracking algorithms, to detect moving targets within the field of view of the ball camera. Once the target is detected, the actual position of the target will be estimated, and the field of view will be calibrated so that the target is in the center of the field of view.

[0093] Step 26, when a moving target is detected, a tracking instruction is sent to the ball camera to track and focus the moving target in real time, and to place the moving target in the middle of the image captured by the ball camera. After the target is confirmed to have entered the field of view of the ball camera, the ball camera switches to the focus mode, and focuses on the target by fine-tuning the direction and zoom parameters of the ball camera, so that the target always remains in the center of the image. During the focusing process, it may be necessary to adjust the position and zoom of the ball camera in combination with real-time feedback to stabilize the tracking target. At the same time, continuous tracking and prediction are performed.

[0094] The specific steps of step 26 are: when a moving target is detected, a tracking instruction is sent to the ball camera to update the coordinates and focus the moving target in real time, determine the predicted motion position, and make the moving target located in the middle of the image captured by the ball camera. Here, the position of the target is updated in real time, and the motion trajectory of the target is predicted so that the ball camera can be pre-adjusted to the expected position. When the target moves quickly or is temporarily blocked, the past motion information and environmental information are used to maintain tracking.

[0095] In this embodiment, a two-stage tracking mechanism is used: an initial positioning stage and a focus tracking stage. In the initial positioning stage, the ball camera first quickly rotates the coordinates provided to the gun camera to locate the target; once the target enters the wide field of view of the ball camera, the ball camera switches to the focus tracking stage, carefully focusing on the target and performing detailed tracking.

[0096] The following is a sample code to implement this technique:

[0097]

[0098]

[0099]

[0100] In this embodiment, in a multi-target monitoring system composed of multiple groups of gun cameras and ball cameras, the coordinates of the gun camera and the ball camera, or even between the gun cameras, are different and mismatched. The coordinate conversion mapping between the gun camera and the ball camera enables the ball camera to track the target according to the coordinates provided by the gun camera. The coordinate conversion mapping between the gun camera and the ball camera makes the ball camera gun camera have no requirements on the manufacturer. As long as the radiation range of the gun camera device is large and the ball camera device can rotate and zoom, the gun camera and the ball camera can be linked.

[0101] In practical applications, errors may be introduced due to equipment accuracy, environmental factors, etc.

[0102] Therefore, it is recommended to implement real-time error correction mechanisms such as:

[0103] Feedback mechanism: By comparing the target image actually captured by the ball camera with the coordinates of the predicted target, the coordinate transformation mapping model is fine-tuned to reduce the error of future predictions.

[0104] Gradual learning: Machine learning algorithms can be used to gradually optimize the coordinate transformation mapping model, improving the accuracy of coordinate transformation as the system is used for a longer time.

[0105] In order for the ball camera to accurately track the target identified by the gun camera in real time, real-time tracking algorithms and automatic calibration are necessary. Tracking algorithm: A target tracking algorithm, such as Kalman filtering or particle filtering, can be used to predict the target's motion path and adjust the rotation and zoom of the ball camera in real time. This is conducive to smoother and more accurate tracking of moving targets. Since changes in external conditions (such as light changes, equipment aging, etc.) may affect the accuracy of coordinate mapping, regular or continuous automatic calibration can ensure the accuracy of the system in the long term. The process of automatic calibration is also the process of step 211 and step 212.

[0106] like Figure 2 As shown, a third aspect of an embodiment of the present invention provides a gun-ball linkage target positioning system, characterized in that it includes:

[0107] A first determination module 31 is used to determine a coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera;

[0108] The receiving module 32 is used to receive the gun target coordinates of the moving target sent by the gun;

[0109] The second determination module 33 is used to determine the target coordinates of the ball camera according to the target coordinates of the gun camera and the coordinate conversion mapping model;

[0110] The first sending module 34 is used to send a moving instruction to the ball camera according to the target coordinates of the ball camera;

[0111] The detection module 35 is used to detect the moving target according to the information of the moving target obtained by the ball camera according to the movement instruction fed back by the ball camera; wherein the speed of the ball camera moving according to the movement instruction is greater than the preset speed, and the zoom multiple is less than the preset multiple;

[0112] The second sending module 36 is used to send a tracking instruction to the ball camera when a moving target is detected, so as to track and focus the moving target in real time and make the moving target located in the middle of the image captured by the ball camera.

[0113] In a multi-camera system, the collaborative work between the gun camera and the ball camera can be coordinated through the gun-ball linkage target positioning system. The gun-ball linkage target positioning system is responsible for receiving data from each gun camera and distributing it to the corresponding ball camera to perform tracking tasks.

[0114] Gun-ball linkage target positioning system design: A powerful central processor or computer can play this role, running advanced algorithms such as multi-target tracking algorithms and software responsible for scheduling and coordinating various cameras.

[0115] Network synchronization: The gun camera and the ball camera need to exchange information through a high-speed network to ensure the real-time and synchronization of data transmission, which is a necessary condition for real-time tracking.

[0116] The Gun-Ball Targeting System provides operators with an intuitive user interface (UI) through which they can monitor system status, manually intervene in automatic tracking, and make system adjustments when necessary.

[0117] Dynamic display: Displays the viewing angles of each gun camera and ball camera in real time, and provides target recognition and tracking status.

[0118] Manual Control: Allows the operator to manually control the position and zoom of the ball camera when automatic tracking fails or manual intervention is required.

[0119] Gun-ball linkage target positioning system hardware selection:

[0120] In terms of hardware, choosing the right gun camera and ball camera is also key to ensuring system performance.

[0121] Compatibility: Choose devices that are easy to integrate and have open interfaces to make it easier to share information and send control instructions between devices.

[0122] Performance standards: The device should meet certain performance standards, such as the ability to work in low-light environments, high-precision mechanical parts for stable and fast rotation / zooming, and sufficiently fast response speed.

[0123] The entire system is designed with scalability and possible future technology upgrades in mind.

[0124] Modular design: Keep the system modular so that individual components can be easily upgraded or replaced in the future without having to reconfigure the entire system.

[0125] Standardized interface: The use of standardized communication protocols and interfaces makes integration with other systems more flexible and reduces vendor dependence.

[0126] In one embodiment of the present invention, according to the positional relationship of the coordinates of the gun camera and the ball camera, a coordinate conversion mapping model of the gun camera and the ball camera is determined, including:

[0127] Pre-calibrate the shooting picture of the ball camera according to the pre-calibrated image taken by the gun camera;

[0128] According to the marking points in the image taken by the gun camera, the coordinate transformation mapping model of the gun camera and the ball camera is determined.

[0129] In one embodiment of the present invention, pre-calibrating the shooting picture of the ball camera according to the pre-calibrated image shot by the gun camera includes:

[0130] Get the pre-calibrated image taken by the gun camera;

[0131] According to the first horizontal and vertical positioning percentages of the ball camera corresponding to the first pre-calibration point in the pre-calibration image, adjusting the horizontal minimum value and the vertical maximum value of the ball camera;

[0132] According to the second positioning percentages in the horizontal and vertical directions of the ball camera corresponding to the second pre-calibration point in the pre-calibration image, adjusting the minimum longitudinal value of the ball camera;

[0133] According to the third positioning percentages in the horizontal and vertical directions of the ball camera corresponding to the third pre-calibration point in the pre-calibration image, adjusting the horizontal maximum value of the ball camera;

[0134] According to the fourth positioning percentages of the dome camera in the horizontal and vertical directions corresponding to the fourth pre-calibration point in the pre-calibration image, the maximum horizontal value, the minimum horizontal value, the maximum vertical value and the minimum vertical value of the dome camera are adjusted so that the center of the image captured by the dome camera coincides with the fourth calibration point;

[0135] According to the fifth horizontal and vertical positioning percentages of the ball camera corresponding to the fifth pre-calibration point in the pre-calibration image, adjust the horizontal maximum value, horizontal minimum value, vertical maximum value and vertical minimum value of the ball camera so that the center of the ball camera shooting picture coincides with the fifth calibration point.

[0136] In one embodiment of the present invention, the coordinate conversion mapping model of the gun camera and the ball camera is determined according to the marking points in the image captured by the gun camera, including:

[0137] Determine a plurality of marking points in the captured image of the gun, and obtain the coordinates of each marking point as the gun marking coordinates;

[0138] Adjust the ball camera to move so that the center of the image captured by the ball camera coincides with the marked point;

[0139] Get the coordinates of the center of the ball camera as the ball camera mark coordinates;

[0140] According to the gun camera marking coordinates and the ball camera marking coordinates and the preset modeling method, the coordinate conversion mapping model of the gun camera and the ball camera is determined.

[0141] In one embodiment of the present invention, when a moving target is detected, a tracking instruction is sent to a ball camera to track and focus the moving target in real time and make the moving target located in the middle of an image captured by the ball camera, including:

[0142] When a moving target is detected, a tracking instruction is sent to the ball camera to update the coordinates and focus on the moving target in real time, determine the predicted motion position, and place the moving target in the middle of the image captured by the ball camera.

[0143] In one embodiment of the present invention, it further includes: a correction module for performing periodic error correction on the coordinate transformation mapping model.

[0144] In one embodiment of the present invention, it further includes: an error module, which is used to repeatedly execute the step of pre-calibrating the shooting picture of the ball camera according to the pre-calibrated image shot by the gun camera when a preset cycle time is reached.

[0145] A fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a gun-ball linkage target positioning method provided in the above embodiment of the present invention is implemented.

[0146] A fifth aspect of an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a gun-ball linkage target positioning method provided in the above embodiment of the present invention.

[0147] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0148] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware systems.

[0149] The method provided in the embodiment of the present invention can be applied to electronic devices. Specifically, the electronic device can be: a desktop computer, a portable computer, an intelligent mobile terminal, a server, etc. This is not limited here, and any electronic device that can implement the present invention belongs to the protection scope of the present invention.

[0150] As for the device / electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0151] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0152] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0154] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A gun-ball linkage target positioning method, characterized in that: The following steps are involved: According to the positional relationship of the coordinates of the gun camera and the ball camera, a coordinate conversion mapping model of the gun camera and the ball camera is determined; receiving the gun target coordinates of the moving target sent by the gun; Determine the target coordinates of the ball camera according to the gun camera target coordinates and the coordinate conversion mapping model; Sending a moving instruction to the ball camera according to the target coordinates of the ball camera; Detecting the moving target according to the information of the moving target obtained by the ball camera according to the movement of the moving command fed back by the ball camera; wherein the speed of the ball camera moving according to the moving command is greater than a preset speed, and the zoom multiple is less than a preset multiple; When the moving target is detected, a tracking instruction is sent to the ball camera to track and focus on the moving target in real time, and to make the moving target located in the middle of the image captured by the ball camera.

2. The method according to claim 1, characterized in that The method of determining the coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera comprises: Pre-calibrate the shooting picture of the ball camera according to the pre-calibrated image taken by the gun camera; According to the marking points in the image captured by the gun camera, the coordinate conversion mapping model of the gun camera and the ball camera is determined.

3. The method according to claim 2, characterized in that The pre-calibration of the shooting picture of the ball camera according to the pre-calibrated image shot by the gun camera includes: Get the pre-calibrated image taken by the gun camera; According to the first horizontal and vertical positioning percentages of the ball camera corresponding to the first pre-calibration point in the pre-calibration image, adjusting the horizontal minimum value and the vertical maximum value of the ball camera; Adjusting the longitudinal minimum value of the ball camera according to the second transverse and longitudinal positioning percentages of the ball camera corresponding to the second pre-calibration point in the pre-calibration image; According to the third positioning percentages in the horizontal and vertical directions of the ball camera corresponding to the third pre-calibration point in the pre-calibration image, adjusting the horizontal maximum value of the ball camera; According to the fourth positioning percentages of the dome camera in the horizontal and vertical directions corresponding to the fourth pre-calibration point in the pre-calibration image, adjusting the maximum horizontal value, the minimum horizontal value, the maximum vertical value and the minimum vertical value of the dome camera so that the center of the dome camera shooting picture coincides with the fourth calibration point; According to the fifth horizontal and vertical positioning percentages of the ball camera corresponding to the fifth pre-calibration point in the pre-calibration image, adjust the horizontal maximum value, horizontal minimum value, vertical maximum value and vertical minimum value of the ball camera so that the center of the ball camera shooting picture coincides with the fifth calibration point.

4. The method according to claim 3, characterized in that The method of determining the coordinate transformation mapping model of the gun camera and the ball camera according to the marking points in the image captured by the gun camera comprises: Determine a plurality of marking points in the captured image of the gun, and obtain the coordinates of each marking point as the gun marking coordinates; Adjusting the ball camera to move so that the center of the image captured by the ball camera coincides with the marking point; Obtaining the coordinates of the center of the ball camera as the ball camera marking coordinates; According to the gun camera marking coordinates and the ball camera marking coordinates and a preset modeling method, a coordinate conversion mapping model of the gun camera and the ball camera is determined.

5. The method according to claim 1, characterized in that When the moving target is detected, a tracking instruction is sent to the ball camera to track and focus the moving target in real time and make the moving target located in the middle of the image captured by the ball camera, including: When the moving target is detected, a tracking instruction is sent to the ball camera to update the coordinates and focus on the moving target in real time, determine the predicted motion position, and make the moving target located in the middle of the image captured by the ball camera.

6. The method according to claim 1, characterized in that The method further comprises: The coordinate transformation mapping model is subjected to periodic error correction.

7. The method according to claim 6, characterized in that The method further comprises: When the preset cycle time is reached, the step of pre-calibrating the shooting picture of the ball camera according to the pre-calibrated image shot by the gun camera is repeatedly performed.

8. A gun-ball linkage target positioning system, characterized in that: include: A first determination module is used to determine a coordinate conversion mapping model of the gun camera and the ball camera according to the positional relationship of the coordinates of the gun camera and the ball camera; A receiving module, used for receiving the gun target coordinates of the moving target sent by the gun; A second determination module is used to determine the target coordinates of the ball camera according to the target coordinates of the gun camera and the coordinate conversion mapping model; A first sending module, used for sending a moving instruction to the ball camera according to the target coordinates of the ball camera; A detection module, used to detect the moving target according to the information of the moving target obtained by the ball camera according to the movement of the moving command fed back by the ball camera; wherein the speed of the ball camera moving according to the moving command is greater than a preset speed, and the zoom multiple is less than a preset multiple; The second sending module is used to send a tracking instruction to the ball camera when the moving target is detected, so as to track and focus the moving target in real time and make the moving target located in the middle of the image taken by the ball camera.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the gun-ball linkage target positioning method as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the gun-ball linkage target positioning method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Automatic two-camera calibration method and system

    CN104537659A

  • Video intelligent linkage method and server

    CN110113560A

  • Target tracking method and system, computer equipment and readable medium

    CN115278014A

  • Gun and ball linkage method, calibration method and device

    CN117252920A

  • Tracking Moving Objects Using a Camera Network

    US20120169882A1

Cited By

  • Gun and ball linkage system control method, system, equipment, medium and program product

    CN119835528A

  • Video conference target intelligent tracking method based on panoramic PTZ camera

    CN121151686A