Target tracking method and device for deploy and control ball and computer medium

By calculating and adjusting the rotation angle of the ball control camera, and according to the position point coordinates of the work object, automatic tracking of the number of objects in the field of view is achieved, solving the problem that the field of view cannot be automatically adjusted in the existing technology, and improving the monitoring effect.

CN118972700AActive Publication Date: 2024-11-15SHANDONG TONGGUANG ELECTRONICS CO LTD

Patent Information

Application Number
CN202411214689.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-15
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

The existing ball control cannot automatically adjust the optimal shooting field angle according to the distribution position of the work object, resulting in the inability to achieve the monitoring effect of maximizing the number of work objects.

Method used

By obtaining the position point coordinates of all tracked objects, calculate the ultimate rotation angle of the camera, and adjust the horizontal and vertical rotation angles of the camera to maximize the number of position points in the field of view and achieve automatic target tracking.

Benefits of technology

The number of operating objects tracked by ball control has been maximized, which makes it easier for supervisors to grasp most of the on-site situation through a small number of pictures, and improves the deployment and control effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972700A_ABST
    Figure CN118972700A_ABST
Patent Text Reader

Abstract

The invention discloses a target tracking method and device for a deploy and control ball and a computer medium, and the method comprises the steps: obtaining the coordinates of position points of all tracked objects, traversing all the position points, and for any position point (ri, theta i and phi i), calculating a camera limit angle enabling the position point to be in the view of a camera according to the vertical view angle and the horizontal view angle of the camera; all position points are traversed, and for any position point (ri, theta i, phi i), when the horizontal rotation angle and the vertical rotation angle of the camera are respectively the following four limit angle pairs of the point: the maximum horizontal rotation angle beta maxi, the maximum vertical rotation angle alpha maxi, the minimum horizontal rotation angle beta mini, the maximum vertical rotation angle alpha maxi, the maximum horizontal rotation angle beta maxi, and the minimum vertical rotation angle alpha mini, the maximum horizontal rotation angle beta maxi, and the minimum vertical rotation angle alpha mini; and determining whether other position points are in the view field of the camera adopting the limit angle pair as the rotation angle or not according to the minimum horizontal rotation angle beta mini and the minimum vertical rotation angle alpha mini, and obtaining the camera rotation angle with the maximum number of monitored position points.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of security monitoring technology, and in particular to a target tracking method, device and computer medium of a control ball. Background Art

[0002] At the power construction site, it is necessary to use a surveillance ball to monitor the work objects. Currently, fixed-angle surveillance is generally used in areas with dense work objects. When the work objects move, the staff is required to manually control the pan / tilt and adjust the surveillance angle of the surveillance ball. It is impossible to automatically adjust the optimal shooting angle according to the position distribution of the work objects in the space to maximize the number of work objects monitored and improve the surveillance effect and intelligence of the surveillance.

[0003] The current automatic tracking of control balls generally uses a single ball to track a single worker, such as locking a single person or randomly selecting a single person for tracking. This control method is not suitable for situations where the working scope is large and the number of control balls deployed on the construction site is insufficient. Summary of the invention

[0004] The purpose of the present invention is to provide a target tracking method, device and computer medium for a control ball to solve the current technical problem that it is impossible to automatically adjust the optimal shooting field of view angle according to the distribution position of the working object and it is impossible to maximize the number of working object tracking.

[0005] On the one hand, the present invention provides a target tracking method of a control ball, comprising the following steps:

[0006] Get the position coordinates of all tracked objects. The position coordinates are in a spherical coordinate system with the center of the camera of the control ball as the origin. Let the spherical coordinates of the i-th position be

[0007] Traverse all the location points, for any location point According to the vertical and horizontal field of view of the camera, calculate the camera limit angle that makes the position point in the camera field of view: the maximum vertical rotation angle α maxi , minimum vertical rotation angle α mini , maximum horizontal rotation angle β maxi , minimum horizontal rotation angle β mini , and establish a mapping relationship between any position point and the extreme angle that makes the point in the camera's field of view;

[0008] Traverse all the location points, for any location point When the horizontal rotation angle and vertical rotation angle of the camera are the following four extreme angle pairs at this point: Maximum horizontal rotation angle β maxi , maximum vertical rotation angle α maxi, minimum horizontal rotation angle β mini , maximum vertical rotation angle α maxi , maximum horizontal rotation angle β maxi , minimum vertical rotation angle α mini , minimum horizontal rotation angle β mini , minimum vertical rotation angle α mini , determine whether the remaining position points are within the camera field of view using this extreme angle pair as the rotation angle, obtain the number of position points within the camera field of view of this extreme angle pair, and select the extreme angle pair with the largest number of position points within the camera field of view as the camera's optimal horizontal rotation angle β OPT , optimal vertical rotation angle α OPT ;

[0009] Adjust the horizontal rotation angle of the camera to β OPT , the vertical rotation angle is α OPT , the position point within the current camera field of view is the target position point.

[0010] In some embodiments, it also includes:

[0011] According to the mapping relationship between the position point and the limit angle, the limit angle α is obtained. OPT , β OPT The corresponding location point coordinates

[0012] When the camera's rotation angle is α OPT , β OPT When , get the target position point in the camera field of view and point The coordinates of the point where the horizontal rotation angle difference is the largest With point The coordinates of the point where the vertical rotation angle difference is the largest

[0013] According to the location point coordinates At the camera’s field of view, adjust the camera’s horizontal rotation angle by β OPT Increase or decrease The vertical rotation angle is given by α OPT Increase or decrease (h-|θ i -θ m ∣) / 2, where w and h are the horizontal and vertical viewing angles of the camera, respectively.

[0014] In some embodiments, it also includes:

[0015] Calculate the horizontal field of view angle scaling ratio 1 / K1 and the vertical field of view angle scaling ratio 1 / K2 of the control ball so that all target positions cannot be seen from the control ball's field of view, and select the smaller value of 1 / K1 and 1 / K2 as the field of view angle scaling ratio 1 / K of the control ball. The K1 is calculated by Calculated, K2 is obtained by calculating h / |θi-θn|;

[0016] Reduce the horizontal and vertical vision angles of the control ball to 1 / K of the original.

[0017] In some embodiments, the coordinates of the position point At the camera’s field of view, adjust the camera’s horizontal rotation angle by β OPT Increase or decrease The vertical rotation angle is given by α OPT Increase or decrease (h-|θ i -θ m ∣) / 2, specifically including: if the coordinates of the position point At the upper left edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Increase The vertical rotation angle is given by α OPT Reduce (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the upper right edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Reduce The vertical rotation angle is given by α OPT Reduce (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the lower left edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Increase The vertical rotation angle is given by α OPT Increase (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the lower right edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Reduce The vertical rotation angle is given by α OPT Increase (h-|θ i -θ m ∣) / 2.

[0018] In some embodiments, the vertical rotation angle range of the camera is [0, π / 2], when the camera is parallel to the XOY plane, the vertical rotation angle is π / 2, when the projection of the camera on the XOY plane coincides with the positive direction of the X-axis, the horizontal rotation angle is 0, and the horizontal rotation angle range is [0, 2π]. maxi , α mini , β maxi , β mini The horizontal field of view of the camera is w, which is obtained by the following formula. maxi , α mini , β maxi , β mini The horizontal field of view of the camera is w, and the vertical field of view is h, as obtained by the following formula:

[0019] α maxi =θ i +h / 2,

[0020] α mini =θ i -h / 2,

[0021]

[0022]

[0023] In some embodiments, the specific method for determining whether a certain location point is within the camera field of view is as follows:

[0024] Assume the vertical rotation angle of the camera is α, and the horizontal rotation angle is β;

[0025] Suppose the coordinates of the pth position point in space are

[0026] If the vertical rotation angle of the position point is full θ p Foot θ p -α|≤h / 2, and the horizontal rotation angle satisfy Then it is determined that the point is within the field of view of the control ball.

[0027] In some embodiments, before obtaining the location points of all tracked objects, it also includes: receiving a request to start the mode with the largest number of tracked objects, where the request is triggered by a timer or by other electronic devices communicating with the control ball.

[0028] In some embodiments, obtaining the location points of all tracked objects includes:

[0029] Receive the location points of all tracked objects sent by the UWB base station, the UWB base station includes three antennas arranged on the control ball and located in the same plane, the plane where the three antennas are located is parallel to the horizontal plane, and the positioning terminal with the UWB positioning tag is worn on the tracked object;

[0030] The positioning terminal sends a UWB radio signal to the UWB base station. The UWB base station determines the position point coordinates of the tracked object through the TDOA algorithm. The position point coordinates are three-dimensional world coordinates. The three-dimensional world coordinates of the position point are converted into spherical coordinates and sent to the control ball.

[0031] On the other hand, the present invention also provides a target tracking device for a control ball, including a tracked object position acquisition module, a control ball optimal rotation angle calculation module and a control ball rotation angle adjustment module;

[0032] The tracked object position acquisition module is used to obtain the position point coordinates of all tracked objects. The position point coordinates are in a spherical coordinate system with the center of the camera of the control ball as the origin. Let the spherical coordinates of the i-th position point be

[0033] The optimal rotation angle calculation module of the control ball is used to traverse all position points. According to the vertical and horizontal field of view of the camera, calculate the camera limit angle that makes the position point in the camera field of view: the maximum vertical rotation angle α maxi , minimum vertical rotation angle α mini , maximum horizontal rotation angle β maxi , minimum horizontal rotation angle β mini , and establish a mapping relationship between any position point and the extreme angle that makes the point in the camera's field of view;

[0034] Traverse all the location points, for any location point When the horizontal rotation angle and vertical rotation angle of the camera are the following four extreme angle pairs at this point: Maximum horizontal rotation angle β maxi , maximum vertical rotation angle α maxi , minimum horizontal rotation angle β mini , maximum vertical rotation angle α maxi , maximum horizontal rotation angle β maxi , minimum vertical rotation angle α mini , minimum horizontal rotation angle β mini , minimum vertical rotation angle α mini, determine whether the remaining position points are within the camera field of view using this extreme angle pair as the rotation angle, obtain the number of position points within the camera field of view of this extreme angle pair, and select the extreme angle pair with the largest number of position points within the camera field of view as the camera's optimal horizontal rotation angle β OPT , optimal vertical rotation angle α OPT ;

[0035] The control ball rotation angle adjustment module is used to adjust the horizontal rotation angle of the camera to β OPT , the vertical rotation angle is α OPT , the position point within the current camera field of view is the target position point.

[0036] On the other hand, the present invention further provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the above method.

[0037] The beneficial effects of the present invention are as follows: the method of the present invention can automatically obtain the camera rotation angle that can include the most tracked objects within the camera viewing angle by using the location information of the positioning terminal (tracking object) and the parameter information of the camera itself (such as the vertical field of view angle and the horizontal field of view angle), thereby maximizing the number of operating objects tracked by the control ball, making it convenient for supervisors to grasp most of the on-site conditions through a small number of pictures, thereby maximizing the control effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A schematic diagram of the location of a positioning terminal provided in an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of a three-dimensional coordinate system with the camera of the control ball as the origin provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0042] The present invention provides a target tracking method for a control ball, comprising:

[0043] S1. Obtain the position coordinates of all tracked objects. The position coordinates are in a spherical coordinate system with the center of the camera of the control ball as the origin. Let the spherical coordinates of the i-th position be The meaning of the spherical coordinate parameters of the position point is that the vertical rotation angle of the camera is α, and the horizontal rotation angle is β, such as Figure 2 As shown, the vertical rotation angle θ of the position point ranges from [0,π / 2], and the horizontal rotation angle The range is [0,2π];

[0044] In some embodiments of the present invention, obtaining the coordinates of the position points of all tracked objects in step S1 specifically includes: receiving the position points of all tracked objects sent by a UWB base station, wherein the UWB base station includes three antennas arranged on the control ball and located in the same plane, wherein the UWB base station includes three antennas arranged on the control ball and located in the same plane, wherein the plane where the three antennas are located is parallel to the horizontal plane, and a positioning terminal with a UWB positioning tag is worn on the tracked object;

[0045] The positioning terminal sends a UWB radio signal to the UWB base station. The UWB base station determines the position point coordinates of the tracked object through the TDOA algorithm. The position point coordinates are three-dimensional world coordinates. The three-dimensional world coordinates of the position point are converted into spherical coordinates and sent to the control ball.

[0046] A more detailed method for obtaining the coordinates of the positioning terminal is as follows: Figure 1As shown, the UWB base station uses three antennas, and determines the position of the mobile target according to the time difference of each antenna receiving the UWB radio signal. It is assumed that the time when the three antennas receive the UWB signal sent by the UWB tag is t1, t2, and t3 respectively, and the distance from the UWB tag to the three antennas is s1, s2, and s3. The coordinates of the three antennas are known to be (x1, y1, z0), (x2, y2, z0), and (x3, y3, z0). The three antennas are located on the same plane parallel to the horizontal plane, and v is the signal propagation speed. The coordinates (x, y, z) of the positioning terminal are obtained by solving the following set of equations. First, two z values ​​are obtained by three three-variable quadratic equations. According to the application scenario of the control ball in power security, the control ball will be installed at a height lower than the monitoring area during actual installation. Therefore, the present invention selects a z value greater than z0;

[0047]

[0048] The three-dimensional coordinates (x, y, z) of the positioning terminal are converted into spherical coordinates through the coordinate system conversion formula. The coordinate transformation formula for this part is known and common, so I will not repeat it here.

[0049] The UWB base station can convert the world three-dimensional coordinates of the positioning terminal into spherical coordinates, and then perform coordinate translation to obtain the coordinate information in the spherical coordinate system with the camera of the control ball as the origin. It can also directly obtain the three-dimensional coordinates with the camera of the control ball as the origin when calculating the world three-dimensional coordinates. That is to say, the known three antenna coordinates are in the three-dimensional coordinates with the camera of the control ball as the origin, and then only the calculated world three-dimensional coordinates of the positioning terminal are converted into spherical coordinates.

[0050] In order to simplify the position calculation of the positioning terminal, the three antennas may be arranged on a plane parallel to the horizontal plane and passing through the center of the camera, and in this case z0 is 0.

[0051] In some embodiments of the present invention, before obtaining the position points of all tracked objects, it also includes: receiving a request to start the mode with the largest number of tracked objects, wherein the request is triggered by a timing trigger or by other electronic devices communicating with the control ball.

[0052] When the control ball is in use, there are multiple modes to choose from, including but not limited to receiving multiple modes of tracking objects. After the control ball receives the start request of the mode with the largest number of tracking objects, step S1 is started. The start request can be initiated at a fixed time through a timing device to adjust the rotation angle of the camera according to the distribution position of the tracking object to achieve the purpose of maximizing the number of tracking objects. The start request can also be initiated at irregular intervals according to the supervision needs of the staff to achieve the purpose of the staff wanting to grasp most of the situation on the scene through a small number of pictures.

[0053] S2, traverse all the location points, for any location point According to the vertical and horizontal field of view of the camera, calculate the camera limit angle that makes the position point in the camera field of view: the maximum vertical rotation angle α maxi , minimum vertical rotation angle α mini , maximum horizontal rotation angle β maxi , minimum horizontal rotation angle β mini , and establish a mapping relationship between any position point and the extreme angle that makes the point in the camera's field of view;

[0054] In some embodiments of the present invention, the vertical rotation angle range of the camera is [0, π / 2], when the camera is parallel to the XOY plane, the vertical rotation angle is π / 2, when the projection of the camera on the XOY plane coincides with the positive direction of the X-axis, the horizontal rotation angle is 0, and the horizontal rotation angle range is [0, 2π]. maxi , α mini , β maxi , β mini The horizontal field of view of the camera is w, and the vertical field of view is h, as obtained by the following formula:

[0055] α maxi =θ i +h / 2,

[0056] α mini =θ i -h / 2,

[0057]

[0058]

[0059] The limit angle is the maximum horizontal and vertical rotation angle that the camera can reach when a certain point is within the field of view by rotating the camera, and it is also necessary to ensure that the point does not leave the field of view. This is actually to make the point located at the four corners of the rectangular field of view, so that the field of view can cover a larger range as possible without letting the point leave the field of view.

[0060] S3, traverse all location points, for any location point When the horizontal rotation angle and vertical rotation angle of the camera are the following four extreme angle pairs at this point: Maximum horizontal rotation angle β maxi , maximum vertical rotation angle α maxi , minimum horizontal rotation angle β mini , maximum vertical rotation angle α maxi , maximum horizontal rotation angle β maxi , minimum vertical rotation angle αmini , minimum horizontal rotation angle β mini , minimum vertical rotation angle α mini , determine whether the remaining position points are within the camera field of view using this extreme angle pair as the rotation angle, obtain the number of position points within the camera field of view of this extreme angle pair, and select the extreme angle pair with the largest number of position points within the camera field of view as the camera's optimal horizontal rotation angle β OPT , optimal vertical rotation angle α OPT ;

[0061] In some embodiments of the present invention, the specific method for determining whether a certain position point is within the camera field of view is as follows:

[0062] Assume the vertical rotation angle of the camera is α, and the horizontal rotation angle is β;

[0063] Suppose the coordinates of the pth position point in space are

[0064] If the vertical rotation angle of the position point is full θ p Foot θ p -α|≤h / 2, and the horizontal rotation angle satisfy

[0065] Then it is determined that the point is within the field of view of the control ball.

[0066] Through the above-mentioned judgment method, the part of "judging whether the remaining position points are within the field of view of the camera using the extreme angle pair as the rotation angle" in step S3 can be realized.

[0067] Steps S2 and S3 are used to calculate the camera rotation angle at which the number of tracked objects in the field of view is the largest. Because the function of the camera rotation angle and the number of position points is not an elementary function, it is impossible to obtain the maximum value by derivation or other methods. Therefore, a greedy algorithm is used to calculate. Through step S2, several camera limit angles are obtained, and then through step S3, the control ball limit angle pair with the largest number of tracked objects in the field of view is obtained.

[0068] S4. Adjust the horizontal rotation angle of the camera to β OPT , the vertical rotation angle is α OPT , the position point within the current camera field of view is the target position point,

[0069] The present invention can bind the positioning terminal to be supervised with the control ball in advance, obtain the position information of the positioning terminal to be supervised, and finally obtain the optimal horizontal rotation angle β of the camera through the position of the positioning terminal and the parameter information of the camera itself (such as the vertical field of view angle and the horizontal field of view angle) combined with the operation methods of steps S2 and S3. OPT , optimal vertical rotation angle αOPT By adjusting and controlling the horizontal rotation motor and the vertical rotation motor, the horizontal and vertical rotation angles of the camera are adjusted to β OPT , α OPT , maximizing the number of operating objects tracked by the control ball, making it convenient for supervisors to grasp most of the on-site conditions through a small number of images, thus maximizing the control effect.

[0070] In some embodiments of the present invention, it further includes:

[0071] S5. According to the mapping relationship between the position point and the limit angle, obtain the limit angle α OPT , β OPT The corresponding location point coordinates

[0072] S6. When the rotation angle of the camera is α OPT , β OPT When , get the target position point in the camera field of view and point The coordinates of the point where the horizontal rotation angle difference is the largest With point The coordinates of the point where the vertical rotation angle difference is the largest

[0073] S7, according to the coordinates of the location point At the camera’s field of view, adjust the camera’s horizontal rotation angle by β OPT Increase or decrease The vertical rotation angle is given by α OPT Increase or decrease (h-|θ i -θ m ∣) / 2, where w and h are the horizontal and vertical viewing angles of the camera, respectively.

[0074] In some embodiments of the present invention, the coordinates of the position point At the camera’s field of view, adjust the camera’s horizontal rotation angle by β OPT Increase or decrease The vertical rotation angle is given by α OPT Increase or decrease (h-|θ i -θ m ∣) / 2, specifically including: if the coordinates of the position point At the upper left edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Increase The vertical rotation angle is given by α OPT Reduce (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the upper right edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Reduce The vertical rotation angle is given by α OPT Reduce (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the lower left edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Increase The vertical rotation angle is given by α OPT Increase (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the lower right edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Reduce The vertical rotation angle is given by α OPT Increase (h-|θ i -θ m ∣) / 2.

[0075] According to the camera adjustment angle calculation method of S2-S3, when the camera is adjusted to rotate at an angle of θ OPT Time, point If the camera is located at the edge of the field of view, once the zoom process is performed, the field of view that the camera can illuminate will be reduced, and the target position point will leave the field of view. Therefore, in order to avoid this situation, the target position point needs to be placed in the middle of the field of view first, and then the field of view is enlarged to improve the clarity of the target position point.

[0076] Steps S5-S7 are to calculate the rotation angle of the camera to be adjusted, and how to adjust the rotation angle to move the target position point to the center of the field of view.

[0077] In some embodiments of the present invention, it further includes:

[0078] S8, calculate the camera's horizontal field of view angle scaling ratio 1 / K1 and vertical field of view angle scaling ratio 1 / K2 so that all target positions are out of the camera's field of view, and select the smaller value of 1 / K1 and 1 / K2 as the camera's field of view angle scaling ratio 1 / K, wherein K1 is calculated by Calculated, K2 is obtained by calculating h / |θi-θn|;

[0079] S9. Reduce the horizontal field of view angle and the vertical field of view angle of the camera to 1 / K of the original angle at the same time.

[0080] Through steps S8-S9, the business angle scaling ratio that can increase the target position point in the field of view is calculated to obtain a high-definition tracking object image.

[0081] Another aspect of the present invention provides a target tracking device for a control ball, comprising a tracked object position acquisition module, a control ball optimal rotation angle calculation module and a control ball rotation angle adjustment module.

[0082] The tracked object position acquisition module is used to obtain the position point coordinates of all tracked objects. The position point coordinates are in a spherical coordinate system with the center of the camera of the control ball as the origin. Let the spherical coordinates of the i-th position point be

[0083] The optimal rotation angle calculation module of the control ball is used to traverse all position points. According to the vertical and horizontal field of view of the camera, calculate the camera limit angle that makes the position point in the camera field of view: the maximum vertical rotation angle α maxi , minimum vertical rotation angle α mini , maximum horizontal rotation angle β maxi , minimum horizontal rotation angle β mini , and establish a mapping relationship between any position point and the extreme angle that makes the point in the camera's field of view;

[0084] Traverse all the location points, for any location point When the horizontal rotation angle and vertical rotation angle of the camera are the following four extreme angle pairs at this point: Maximum horizontal rotation angle β maxi , maximum vertical rotation angle α maxi , minimum horizontal rotation angle β mini , maximum vertical rotation angle α maxi , maximum horizontal rotation angle β maxi , minimum vertical rotation angle α mini , minimum horizontal rotation angle β mini , minimum vertical rotation angle α mini , determine whether the remaining position points are within the camera field of view using this extreme angle pair as the rotation angle, obtain the number of position points within the camera field of view of this extreme angle pair, and select the extreme angle pair with the largest number of position points within the camera field of view as the camera's optimal horizontal rotation angle β OPT , optimal vertical rotation angle α OPT ;

[0085] The control ball rotation angle adjustment module is used to adjust the horizontal rotation angle of the camera to β OPT , the vertical rotation angle is α OPT , the position point within the current camera field of view is the target position point.

[0086] The device of the embodiment of the present invention corresponds to the above method embodiment. The specific method that can be implemented by the functional module of the present invention refers to the above method technical solution and will not be described in detail here.

[0087] Another aspect of the present invention further provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the above method.

[0088] The above is a detailed introduction to the target tracking method, device and storage medium of a control ball provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

[0089] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the 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.

Claims

1. A target tracking method for controlling a ball, It is characterized in that The steps include: Get the position coordinates of all tracked objects. The position coordinates are in a spherical coordinate system with the center of the camera of the control ball as the origin. Let the spherical coordinates of the i-th position be Traverse all the location points, for any location point According to the vertical and horizontal field of view of the camera, calculate the camera limit angle that makes the position point in the camera field of view: the maximum vertical rotation angle α maxi , minimum vertical rotation angle α mini , maximum horizontal rotation angle β maxi , minimum horizontal rotation angle β mini , and establish a mapping relationship between any position point and the extreme angle that makes the point in the camera's field of view; Traverse all the location points, for any location point When the horizontal rotation angle and vertical rotation angle of the camera are the following four extreme angle pairs at this point: Maximum horizontal rotation angle β maxi , maximum vertical rotation angle α maxi , minimum horizontal rotation angle β mini , maximum vertical rotation angle α maxi , maximum horizontal rotation angle β maxi , minimum vertical rotation angle α mini , minimum horizontal rotation angle β mini , minimum vertical rotation angle α mini , determine whether the remaining position points are within the camera field of view using this extreme angle pair as the rotation angle, obtain the number of position points within the camera field of view of this extreme angle pair, and select the extreme angle pair with the largest number of position points within the camera field of view as the camera's optimal horizontal rotation angle β OPT , optimal vertical rotation angle α OPT ; Adjust the horizontal rotation angle of the camera to β OPT , the vertical rotation angle is α OPT , the position point within the current camera field of view is the target position point.

2. The target tracking method of the control ball according to claim 1, It is characterized in that Also includes: According to the mapping relationship between the position point and the limit angle, the limit angle α is obtained. OPT , β OPT The corresponding location point coordinates When the camera's rotation angle is α OPT , β OPT When , get the target position point in the camera field of view and point The coordinates of the point where the horizontal rotation angle difference is the largest With point The coordinates of the point where the vertical rotation angle difference is the largest According to the location point coordinates At the camera’s field of view, adjust the camera’s horizontal rotation angle by β OPT Increase or decrease The vertical rotation angle is given by α OPT Increase or decrease (h-|θ i -θ m ∣) / 2, where w and h are the horizontal and vertical viewing angles of the camera, respectively.

3. The target tracking method of the control ball according to claim 2, It is characterized in that Also includes: Calculate the horizontal field of view angle scaling ratio 1 / K1 and the vertical field of view angle scaling ratio 1 / K2 of the control ball so that all target positions cannot be seen from the control ball's field of view, and select the smaller value of 1 / K1 and 1 / K2 as the field of view angle scaling ratio 1 / K of the control ball. The K1 is calculated by Calculated, K2 is obtained by calculating h / |θi-θn|; Reduce the horizontal and vertical vision angles of the control ball to 1 / K of the original.

4. The target tracking method of the control ball according to claim 2, It is characterized in that According to the coordinates of the position point At the camera’s field of view, adjust the camera’s horizontal rotation angle by β OPT Increase or decrease The vertical rotation angle is given by α OPT Increase or decrease (h-|θ i -θ m ∣) / 2, specifically including: if the coordinates of the position point At the upper left edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Increase The vertical rotation angle is given by α OPT Reduce (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the upper right edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Reduce The vertical rotation angle is given by α OPT Reduce (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the lower left edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Increase The vertical rotation angle is given by α OPT Increase (h-|θ i -θ m ∣) / 2; if the coordinates of the position point At the lower right edge of the control ball's field of view, adjust the horizontal rotation angle of the control ball from β OPT Reduce The vertical rotation angle is given by α OPT Increase (h-|θ i -θ m ∣) / 2.

5. The target tracking method of the control ball according to claim 1, It is characterized in that The vertical rotation angle range of the camera is [0, π / 2]. When the camera is parallel to the XOY plane, the vertical rotation angle is π / 2. When the projection of the camera on the XOY plane coincides with the positive direction of the X axis, the horizontal rotation angle is 0. The horizontal rotation angle range is [0, 2π]. maxi , α mini , β maxi , β mini The horizontal field of view of the camera is w, and the vertical field of view is h, as obtained by the following formula: a maxi =θ i +h / 2, a mini =θ i -h / 2, 6. The target tracking method of the control ball according to claim 1, It is characterized in that The specific method to determine whether a certain position point is within the camera's field of view is as follows: Assume the vertical rotation angle of the camera is α, and the horizontal rotation angle is β; Suppose the coordinates of the pth position point in space are If the vertical rotation angle of the position point is full θ p Foot θ p -α|≤h / 2, and the horizontal rotation angle satisfy Then it is determined that the point is within the field of view of the control ball.

7. The target tracking method of the control ball according to claim 1, It is characterized in that Before obtaining the position points of all tracked objects, the method further includes: receiving a request to start the mode with the largest number of tracked objects, wherein the request is triggered by a timing trigger or by other electronic devices communicating with the control ball.

8. The target tracking method of the control ball according to claim 1, It is characterized in that The step of obtaining the location points of all tracked objects includes: Receive the location points of all tracked objects sent by the UWB base station, the UWB base station includes three antennas arranged on the control ball and located in the same plane, the plane where the three antennas are located is parallel to the horizontal plane, and the positioning terminal with the UWB positioning tag is worn on the tracked object; The positioning terminal sends a UWB radio signal to the UWB base station. The UWB base station determines the position point coordinates of the tracked object through the TDOA algorithm. The position point coordinates are three-dimensional world coordinates. The three-dimensional world coordinates of the position point are converted into spherical coordinates and sent to the control ball.

9. A target tracking device for controlling a ball. It is characterized in that It includes a module for obtaining the position of the tracked object, a module for calculating the optimal rotation angle of the control ball, and a module for adjusting the rotation angle of the control ball. The tracked object position acquisition module is used to obtain the position point coordinates of all tracked objects. The position point coordinates are in a spherical coordinate system with the center of the camera of the control ball as the origin. Let the spherical coordinates of the i-th position point be The optimal rotation angle calculation module of the control ball is used to traverse all position points. According to the vertical and horizontal field of view of the camera, calculate the camera limit angle that makes the position point in the camera field of view: the maximum vertical rotation angle α maxi , minimum vertical rotation angle α mini , maximum horizontal rotation angle β maxi , minimum horizontal rotation angle β mini , and establish a mapping relationship between any position point and the extreme angle that makes the point in the camera's field of view; Traverse all the location points, for any location point When the horizontal rotation angle and vertical rotation angle of the camera are the following four extreme angle pairs at this point: Maximum horizontal rotation angle β maxi , maximum vertical rotation angle α maxi , minimum horizontal rotation angle β mini , maximum vertical rotation angle α maxi , maximum horizontal rotation angle β maxi , minimum vertical rotation angle α mini , minimum horizontal rotation angle β mini , minimum vertical rotation angle α mini , determine whether the remaining position points are within the camera field of view using this extreme angle pair as the rotation angle, obtain the number of position points within the camera field of view of this extreme angle pair, and select the extreme angle pair with the largest number of position points within the camera field of view as the camera's optimal horizontal rotation angle β OPT , optimal vertical rotation angle α OPT ; The control ball rotation angle adjustment module is used to adjust the horizontal rotation angle of the camera to β OPT , the vertical rotation angle is α OPT , the position point within the current camera field of view is the target position point.

10. A computer storage medium, It is characterized in that The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Tracking identification method and system for deploy and control ball, and storage medium

    CN116301065A

  • Power transmission project violation behavior identification method and system

    CN118279988A

  • Interaction method and apparatus based on multi-feature recognition, and computer device

    WO2022116545A1

Cited By

  • Target tracking method and device, equipment and storage medium

    CN119728927A

  • Method for automatically adjusting video monitoring direction of intelligent mobile deploy and control ball

    CN122179664A