Ball out-of-bounds determination system based on spatial coordinate transformation

By using a ball-playing out-of-bounds determination system based on spatial coordinate transformation, and leveraging the geometric characteristics of sub-triangles and inter-frame state confirmation, the system solves the problems of unreliable determination of non-convex regions and poor stability of single-frame determination in ball games, achieving automatic determination with high accuracy and high robustness.

CN123160860APending Publication Date: 2026-11-24MALANSHAN AUDIO & VIDEO LABORATORY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611233754.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies in ball games suffer from unreliable non-convex region determination and poor single-frame determination stability, resulting in insufficient accuracy and robustness in ball out-of-bounds determination.

Method used

The ball out-of-bounds determination system based on spatial coordinate transformation utilizes an image acquisition module, a target detection module, a spatial coordinate acquisition module, a field boundary construction module, and an out-of-bounds determination module to achieve frame-by-frame intra-point determination and inter-frame state confirmation of the ball in the determination space. By combining the geometric characteristics of sub-triangles and ball radius compensation, the system improves the accuracy and stability of the determination.

Benefits of technology

It significantly improves the robustness and accuracy of ball out-of-bounds determination, solves the problems of unreliable determination in non-convex regions and poor stability in single-frame determination, and achieves automatic determination with high accuracy and high robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160860A_ABST
    Figure CN123160860A_ABST
Patent Text Reader

Abstract

This invention discloses a ball-out-of-bounds determination system based on spatial coordinate transformation, relating to the fields of computer vision and sports event analysis technology. The system includes: an image acquisition module that acquires planar images from a gimbal camera; a target detection module that identifies ball targets in the planar images to obtain the sphere's bounding box and extracts its image coordinates; a spatial coordinate acquisition module that converts the image coordinates into spatial coordinates in the determination space; a field boundary construction module that obtains a set of boundary points and divides the resulting polygon into several sub-triangles; and an out-of-bounds determination module that, based on the sphere's spatial coordinates, performs frame-by-frame interior point determination and inter-frame state confirmation within the sub-triangles to determine whether the sphere has changed from an in-bounds state to an out-of-bounds state and outputs an out-of-bounds signal. This invention solves the problems of unreliable determination in non-convex regions and poor stability in single-frame determination, achieving high accuracy and robustness in automatic ball-out-of-bounds determination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and sports event analysis technology, specifically a ball-out-of-bounds determination system based on spatial coordinate transformation. Background Technology

[0002] In ball sports such as tennis, badminton, and basketball, whether the ball goes out of bounds directly affects the score and the outcome of the game. Traditional methods relying on referees' visual judgment for out-of-bounds calls have inherent limitations in high-intensity, high-speed competition environments, including visual obstruction, limited human reaction time, and subjective judgment bias. To address these issues, automatic out-of-bounds judgment technology based on computer vision has received widespread attention and application in recent years. Among these, multi-camera 3D reconstruction schemes, represented by the "Eagle Eye" system, can achieve millimeter-level accuracy in out-of-bounds judgment by deploying multiple high-speed cameras and performing precise 3D calibration. However, these systems are complex and costly, making them difficult to implement in small-to-medium-sized competitions and daily training scenarios. Therefore, automatic out-of-bounds judgment schemes based on a single gimbal camera have gradually become a research and application hotspot due to their convenient deployment and lower cost. These schemes typically use object detection algorithms to locate the ball in the image and map the ball's image coordinates to a judgment space, then combine this with preset court boundaries to determine whether the ball is inside or outside the bounds.

[0003] However, the aforementioned existing technologies still have the following significant drawbacks: First, after the boundary of the playing field is mapped to the judgment space from the camera's perspective, it often forms a non-convex polygon due to the camera's installation position and shooting angle. Traditional interior point judgment algorithms based on the convex set assumption are prone to misjudging balls inside the boundary as outside the boundary, or vice versa, when dealing with such non-convex regions, resulting in insufficient judgment reliability. Second, existing methods mostly rely on independent judgment of inside / outside the boundary based on a single frame image, without fully integrating the trajectory information of continuous frames and the physical radius constraints of the ball itself. This makes them prone to frequent false alarms and missed alarms due to instantaneous jitter of the detection box, brief occlusion, or the ball's position on the line. Therefore, how to overcome the problems of unreliable non-convex region judgment and poor stability of single-frame judgment in existing technologies, and achieve high accuracy and robust automatic judgment of ball out of bounds, is the problem we need to solve. To this end, we now provide a ball out of bounds judgment system based on spatial coordinate transformation. Summary of the Invention

[0004] The purpose of this invention is to provide a ball-out-of-bounds determination system based on spatial coordinate transformation.

[0005] The objective of this invention can be achieved through the following technical solution: a ball-out-of-bounds determination system based on spatial coordinate transformation, comprising:

[0006] The image acquisition module is used to acquire continuous frame planar images captured by the gimbal camera;

[0007] The target detection module is used to identify spherical targets in each frame of planar image, obtain the sphere bounding box, and extract the image coordinates of the preset reference points of the sphere bounding box;

[0008] The spatial coordinate acquisition module is used to convert the image coordinates of the preset reference point into spatial coordinates in the determination space;

[0009] The site boundary construction module is used to map multiple corner points of the preset site boundary to the determination space to obtain a set of boundary points, and to divide the polygon formed by the set of boundary points into several sub-triangles.

[0010] The out-of-bounds determination module is used to determine the interior point of the sphere frame by frame within the sub-triangle based on the spatial coordinates of the sphere in consecutive frames, and to confirm the inter-frame state of the determination results, to determine whether the sphere changes from the in-bounds state to the out-of-bounds state, and to output an out-of-bounds signal when the sphere is determined to have crossed the boundary.

[0011] Furthermore, the image coordinates of the preset reference point of the sphere bounding box are the pixel coordinates of the midpoint of the bottom edge of the sphere bounding box.

[0012] Furthermore, the process by which the spatial coordinate acquisition module converts the image coordinates of the preset reference point into spatial coordinates in the determination space includes:

[0013] The image coordinates of the preset reference point are mapped to a spherical angle space centered on the gimbal camera to obtain the heading and pitch coordinates of the sphere, which are then used as the spatial coordinates.

[0014] Furthermore, the process by which the site boundary construction module divides the polygon formed by the boundary point set into several sub-triangles includes:

[0015] Obtain the six corner points of the preset site boundary, map them to the determination space to obtain six boundary points, and these six boundary points form a hexagon;

[0016] By connecting the non-adjacent boundary points of the hexagon, the hexagon is divided into four sub-triangles.

[0017] Furthermore, the process by which the out-of-bounds determination module performs frame-by-frame interior point determination of the sphere within the sub-triangle includes:

[0018] For each sub-triangle, calculate its centroid;

[0019] Determine whether the spatial coordinates of the sphere and its centroid are located on the same side of the three sides of the sub-triangle. If all three sides are on the same side, the sphere is located inside the sub-triangle. If the three sides are not on the same side, the sphere is not located inside the sub-triangle.

[0020] If the sphere is located within any sub-triangle, then the sphere is considered to be in the bounds in the current frame; otherwise, it is considered to be out of the bounds.

[0021] Furthermore, the process of determining whether the spatial coordinates of the sphere and the centroid are located on the same side of the three sides of the sub-triangle includes:

[0022] Obtain the first side sign of the spatial coordinate point of the sphere relative to that side, and the second side sign of the centroid relative to that side;

[0023] When the first side symbol is the same as the second side symbol, or when the absolute value of the difference between the first side symbol and the second side symbol is less than a preset tolerance, it is determined that the two are on the same side.

[0024] Furthermore, the out-of-bounds determination module also includes:

[0025] Preset the spatial compensation value corresponding to the sphere radius;

[0026] Before determining the interior points of each sub-triangle, each side of the sub-triangle is indented inward by the distance of the spatial compensation value to form an indentation boundary; the interior point determination is performed based on the indentation boundary.

[0027] Furthermore, the inter-frame state confirmation refers to determining that the sphere has crossed the boundary and outputting an out-of-bounds signal when the sphere's state changes from an in-bounds state to an out-of-bounds state, and this out-of-bounds state is maintained continuously in a preset series of frames.

[0028] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention maps multiple corner points of a preset field boundary to the determination space through a field boundary construction module, and divides the polygon formed by the boundary point set into multiple sub-triangles. Utilizing the geometric characteristic that triangles are naturally convex sets, it fundamentally avoids the problem of misjudging in-boundary spheres as out-of-boundary and out-of-boundary spheres as in-boundary spheres when non-convex polygons in the determination space are included in point determination, significantly improving the robustness of boundary determination. Through an out-of-boundary determination module, combining the determination of interior points of sub-triangles with inter-frame state confirmation, and fusing the determination results of multiple consecutive frames, a comprehensive judgment is made on the changes in the sphere's state. This effectively filters out instantaneous misjudgments caused by single-frame detection box jitter or brief occlusion, greatly improving the accuracy and stability of out-of-boundary event recognition. This invention realizes full-link automatic determination of spherical targets from image acquisition to out-of-boundary signal output, solving the problems of unreliable non-convex region determination and poor single-frame determination stability in existing single-gimbal camera solutions. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.

[0030] Figure 1 This is a schematic diagram of the present invention. Detailed Implementation

[0031] like Figure 1 As shown, a ball-out-of-bounds determination system based on spatial coordinate transformation includes:

[0032] The image acquisition module is used to acquire continuous frame planar images captured by the gimbal camera;

[0033] The target detection module is used to identify spherical targets in each frame of planar image, obtain the sphere bounding box, and extract the image coordinates of the preset reference points of the sphere bounding box;

[0034] The spatial coordinate acquisition module is used to convert the image coordinates of the preset reference point into spatial coordinates in the determination space;

[0035] The site boundary construction module is used to map multiple corner points of the preset site boundary to the determination space to obtain a set of boundary points, and to divide the polygon formed by the set of boundary points into several sub-triangles.

[0036] The out-of-bounds determination module is used to determine the interior point of the sphere frame by frame within any sub-triangle based on the spatial coordinates of the sphere in consecutive frames, and to confirm the inter-frame state of the determination results, to determine whether the sphere changes from an in-bounds state to an out-of-bounds state, and to output an out-of-bounds signal when the sphere is determined to have crossed the boundary.

[0037] It should be further explained that, in the specific implementation process, the process by which the image acquisition module acquires continuous frame planar images captured by the gimbal camera includes:

[0038] The image acquisition module reads color image data streams from the gimbal camera at a fixed frame rate, packages each image frame along with its corresponding timestamp into image frame data, and sends the image frame data to the target detection module.

[0039] It should be further explained that, in the specific implementation process, the target detection module receives image frame data sent by the image acquisition module, performs spherical target recognition on each frame of planar image to obtain the sphere bounding box, and extracts the image coordinates of the preset reference points of the sphere bounding box, including:

[0040] The image coordinates of the preset reference point of the sphere bounding box are the pixel coordinates of the midpoint of the bottom edge of the sphere bounding box, and these pixel coordinates are converted into normalized image coordinates.

[0041] Specifically, a trained lightweight convolutional neural network detector is used to detect spherical objects in the input image, such as a spherical detection model based on the YOLOv5-s architecture. The output is a rectangular bounding box, which is represented in the image pixel coordinate system as follows: ;in, The two-dimensional coordinates of the top-left corner of the rectangular bounding box. and These are the width and height of the rectangular bounding box, respectively.

[0042] To obtain a stable reference point for the contact between the sphere and the field, the midpoint of the bottom edge of the bounding box is selected as the preset reference point, and the image pixel coordinates of this point are calculated as follows: Subsequently, the image pixel coordinates are converted into normalized image coordinates. The conversion method is , , making ;in, Indicates the total width of the image in pixels. This represents the total height in pixels of the image. Simultaneously, the target detection module utilizes the Kalman filter algorithm to perform inter-frame tracking of the sphere, assigning a unique tracking identifier to each tracked sphere to obtain its continuous motion trajectory.

[0043] It should be further explained that, in the specific implementation process, the process by which the spatial coordinate acquisition module receives the normalized image coordinates sent by the target detection module and converts the image coordinates of the preset reference point into spatial coordinates in the determination space includes:

[0044] Image coordinates of the preset reference point Mapping the coordinates of the sphere to a spherical angle space centered on the gimbal camera, we obtain the yaw and pitch coordinates of the sphere, which serve as the spatial coordinates of the sphere in the determination space. ;

[0045] As an optional implementation, this mapping can be achieved using a triangulation method based on the real-time heading and pitch angle attitude information of the gimbal camera and the camera's horizontal and vertical half-field-of-view angles, outputting the heading angle coordinates of the sphere. With pitch angle coordinates As the spatial coordinates of the sphere in the determination space ;

[0046] Specifically, the trigonometric transformation process includes:

[0047] a) Vertical component based on the normalized image coordinates Preset vertical half field of view and pitch angle Obtain the intermediate pitch angle ;

[0048] Specifically, define constants for converting angles to radians. , ;in, The coefficient for converting degrees to radians. The coefficient for radian rotation; calculate the normalized vertical offset. Then, the vertical pitch angle increment in radians is calculated using the formula: Finally, the Add to the current pitch angle to get the intermediate pitch angle: ;Should It is the median pitch angle after considering vertical pixel offset, but not yet considering the effect of horizontal coupling;

[0049] b) The horizontal component based on the normalized image coordinates and the preset horizontal half field of view Obtain the basic horizontal angular displacement ;

[0050] Specifically, first, normalize the coordinates. The mapping is done by using the image center as the origin, i.e., calculating the normalized horizontal offset. Then, a basic horizontal angular displacement in radians is calculated using the formula: ,Should It is the horizontal angular displacement corresponding to the horizontal pixel offset under the ideal condition of assuming the pitch angle is zero;

[0051] c) Based on the intermediate pitch angle The basic horizontal angular displacement Decomposed into final heading angle increment and pitch angle compensation increment ;

[0052] Specifically, first convert the intermediate pitch angle to radians: Then, calculate the final heading angle increment after decomposition: ;in, This indicates the degree to which the pitch angle attenuates the effect of horizontal rotation; simultaneously, it calculates the pitch angle compensation increment caused by the coupling due to horizontal displacement. ;in, This indicates the degree of influence of the pitch angle on the pitch angle compensation amount; this step is the core of this triangulation scheme, reflecting the coupling relationship between image width displacement and pitch angle. When the camera is in a non-zero pitch angle attitude, a displacement that should only cause horizontal rotation will be decomposed in the spherical view, and its effective rotational component on the heading great circle will be... The attenuation, and the lost portion is projected as a component on the pitch great circle;

[0053] d) Based on heading angle With the final heading angle increment Obtain the heading angle coordinates And based on the intermediate pitch angle With the pitch angle compensation increment Obtain the pitch angle coordinates Finally, the output angle will be normalized to limit it to a specific value. Within the range;

[0054] Specifically, calculate the final heading angle coordinates: Calculate the final pitch angle coordinates. At that time, according to The symbols are corrected: ;in, For a sign function, the specific rule is: when hour, It is positive 1; when hour, It is negative 1; when hour, It is 0 at this time. The compensation item is ineffective, degenerating into a pure course change; finally, for and All angles are normalized to ensure their range is within a certain range. Within the interval; thus, a pixel on a planar image is converted into its precise orientation in the decision space. .

[0055] It should be further explained that, in the specific implementation process, the site boundary construction module is executed offline during the system initialization phase. The process of mapping multiple corner points of the preset site boundary to the determination space to obtain the boundary point set, and dividing the polygon formed by the boundary point set into several sub-triangles includes:

[0056] The six corner points of the preset site boundary are obtained and mapped to the determination space to obtain six boundary points, which form a hexagon. By connecting the non-adjacent boundary points of the hexagon, the hexagon is divided into four sub-triangles.

[0057] Specifically, firstly, the six corner points of the preset site boundary are obtained. These six corner points physically correspond to the top left, bottom left, top center, bottom center, top right, and bottom right vertices of the site. After the gimbal camera is installed, a standard image frame is acquired, and the pixel coordinates of the six corner points are extracted through manual annotation or an automatic corner detection algorithm. Using the same mapping method used by the spatial coordinate acquisition module—triangulation method—the six pixel coordinates are mapped one by one to the judgment space to obtain six boundary points. These six boundary points are connected in the judgment space to form a hexagon. Due to the camera installation position and shooting angle, the hexagon may be non-convex. Therefore, by connecting non-adjacent boundary points, the hexagon is divided into four sub-triangles. Specifically, this can be achieved by connecting the top left vertex and the bottom right vertex, and the top right vertex and the bottom left vertex. The vertex coordinates of the four sub-triangles are stored in a configuration file for loading into the out-of-bounds judgment module during real-time judgment.

[0058] It should be further explained that, in the specific implementation process, the boundary judgment module receives the sphere's spatial coordinates and tracking identifier sent by the spatial coordinate acquisition module, and receives the sub-triangle vertex coordinate data sent by the site boundary construction module. This module is used to determine the interior points of the sphere frame by frame within any sub-triangle based on the sphere's spatial coordinates in consecutive frames, and to confirm the inter-frame state of the determination results. The process of determining whether the sphere changes from an in-bounds state to an out-of-bounds state and outputting an boundary signal when the sphere crosses the boundary includes:

[0059] The process of determining the interior point of the sphere frame by frame within any sub-triangle by the out-of-bounds determination module includes: for each sub-triangle, calculating the centroid of the sub-triangle; determining whether the spatial coordinates of the sphere and the centroid are located on the same side of the three sides of the sub-triangle; if the three sides are on the same side, then the sphere is determined to be inside the sub-triangle; if the sphere is inside any sub-triangle, then the sphere is determined to be in the inbound state in the current frame, otherwise it is in the outbound state.

[0060] Specifically, in each frame, the spatial coordinates P of the sphere are compared with the four sub-triangles one by one; for each sub-triangle, the centroid G of the sub-triangle is first calculated as follows:

[0061] First, obtain the coordinates of the three vertices of the sub-triangle in angle space, where the range of the heading angle is... ;

[0062] Next, the heading angle is unwrapped to eliminate angle loop jumps. The specific unwrapping algorithm is as follows: using the heading angle of the first vertex as a reference, the heading angles of the second and third vertices are processed sequentially. For the current heading angle to be processed, the difference between it and the previously unwrapped heading angle is calculated. If the difference is greater than... Then subtract the current heading angle. If the difference is less than Then add the current heading angle. Otherwise, maintain the current heading angle; this process temporarily extends the angle value to a range that may exceed [the specified range]. The continuous numerical space of the interval solves the problem of numerical discontinuity caused by the jump at the boundary; finally, the arithmetic mean of the three heading angles after unwrapping is taken to obtain the heading angle of the center of gravity. Since there is no looping problem in the pitch angle, the arithmetic mean of the pitch angles of the three vertices is taken directly to obtain the pitch angle of the center of gravity, thus obtaining the coordinates G of the center of gravity.

[0063] Then, determine whether the spatial coordinate point P of the sphere and the centroid G are located on the same side of the three sides of the sub-triangle; if point P is on the same side of the centroid G for all three sides of a sub-triangle, then the sphere is determined to be inside the sub-triangle; if the sphere is inside any sub-triangle, then the sphere is determined to be in the bounded state in the current frame; if the condition is not met after traversing all four sub-triangles, then the sphere is determined to be out of the bounded state in the current frame.

[0064] The process of determining whether the spatial coordinates of the sphere and the centroid are located on the same side of the three sides of the sub-triangle includes: obtaining the first side sign of the spatial coordinates of the sphere relative to the side, and the second side sign of the centroid relative to the side; when the first side sign and the second side sign are the same, or when the absolute value of the difference between the first side sign and the second side sign is less than a preset tolerance, it is determined that the two are located on the same side.

[0065] Specifically, select one side of the sub-triangle, calculate the first side sign of the spatial coordinate point P of the sphere relative to that side, and the second side sign of the centroid G relative to that side; the side sign can be calculated using a sign discrimination method based on vector cross product; when the first side sign and the second side sign are the same, or the absolute value of their difference is less than a preset tolerance, they are determined to be on the same side; the preset tolerance is a configurable positive decimal, for example, 0.01 degrees, used to tolerate small angle calculation errors near the boundary and reduce misjudgments caused by numerical jitter;

[0066] Furthermore, the boundary judgment module also combines sphere radius compensation to determine interior points. The process includes: preset a spatial compensation value corresponding to the sphere radius; before determining the interior points of each sub-triangle, indent each side of the sub-triangle inward by the distance of the spatial compensation value to form an indentation boundary; and perform the interior point determination based on the indentation boundary.

[0067] Specifically, the spatial compensation value corresponding to the preset sphere radius. During real-time determination, before determining the interior points of each sub-triangle, all sides of that sub-triangle are first indented inwards. The distance forms the indentation boundary; the indentation refers to translating the side inward along the normal direction of the side into the triangle, with a translation distance of... After the indentation is completed, the above-mentioned interior point determination is performed based on the indentation boundary; when the spatial coordinate point P of the sphere is within the indentation boundary, the sphere as a whole is within the actual field boundary; when point P crosses the indentation boundary but is still within the actual boundary, the sphere is in a state of pressing the line; when point P completely crosses the actual boundary, the sphere as a whole is out of bounds; the spatial compensation value The acquisition process includes: obtaining the value by combining the actual physical radius of the sphere with the object distance and field of view of the gimbal camera;

[0068] The inter-frame state confirmation refers to determining that the sphere has crossed the boundary and outputting an out-of-bounds signal when the sphere's state changes from an in-bounds state to an out-of-bounds state and this out-of-bounds state is maintained continuously in a preset series of frames.

[0069] Specifically, a historical state sequence is maintained for each tracked sphere, recording the results of in-boundary or out-of-boundary determinations for several consecutive frames. When the sphere's state changes from in-boundary to out-of-boundary and remains in this out-of-boundary state for N consecutive frames, an out-of-boundary event is confirmed and an out-of-boundary signal is output, where N is a preset positive integer. If the out-of-boundary state fails to meet the frame count requirement and reverts to in-boundary, it is considered noise caused by detection frame jitter or brief occlusion, and no out-of-boundary signal is output, maintaining the original state. This mechanism effectively filters out instantaneous fluctuations and significantly reduces the false alarm rate while ensuring the sensitivity of the determination.

[0070] The out-of-bounds signal output by the out-of-bounds determination module includes an out-of-bounds timestamp, the sphere's last in-bounds position, and the out-of-bounds direction. The out-of-bounds timestamp is the system time confirming the occurrence of the out-of-bounds event. The sphere's last in-bounds position is the spatial coordinate of the sphere in the last frame before it was determined to be out of bounds. The out-of-bounds direction is determined by analyzing which boundary line segment the sphere crossed, for example, distinguishing between bottom line out-of-bounds and side line out-of-bounds.

[0071] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications or equivalent substitutions made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A ball-out-of-bounds determination system based on spatial coordinate transformation, characterized in that, include: The image acquisition module is used to acquire continuous frame planar images captured by the gimbal camera; The target detection module is used to identify spherical targets in each frame of planar image, obtain the sphere bounding box, and extract the image coordinates of the preset reference points of the sphere bounding box; The spatial coordinate acquisition module is used to convert the image coordinates of the preset reference point into spatial coordinates in the determination space; The site boundary construction module is used to map multiple corner points of the preset site boundary to the determination space to obtain a set of boundary points, and to divide the polygon formed by the set of boundary points into several sub-triangles. The out-of-bounds determination module is used to determine the interior point of the sphere frame by frame within the sub-triangle based on the spatial coordinates of the sphere in consecutive frames, and to confirm the inter-frame state of the determination results, to determine whether the sphere changes from the in-bounds state to the out-of-bounds state, and to output an out-of-bounds signal when the sphere is determined to have crossed the boundary.

2. The ball-out-of-bounds determination system based on spatial coordinate transformation according to claim 1, characterized in that, The image coordinates of the preset reference point of the sphere's bounding box are the pixel coordinates of the midpoint of the bottom edge of the sphere's bounding box.

3. The ball-out-of-bounds determination system based on spatial coordinate transformation according to claim 1, characterized in that, The process by which the spatial coordinate acquisition module converts the image coordinates of a preset reference point into spatial coordinates in the determination space includes: The image coordinates of the preset reference point are mapped to a spherical angle space centered on the gimbal camera to obtain the heading and pitch coordinates of the sphere, which are then used as the spatial coordinates.

4. The ball-out-of-bounds determination system based on spatial coordinate transformation according to claim 1, characterized in that, The process by which the site boundary construction module divides the polygon formed by the boundary point set into several sub-triangles includes: Obtain the six corner points of the preset site boundary, map them to the determination space to obtain six boundary points, and these six boundary points form a hexagon; By connecting the non-adjacent boundary points of the hexagon, the hexagon is divided into four sub-triangles.

5. The ball-out-of-bounds determination system based on spatial coordinate transformation according to claim 1, characterized in that, The process by which the out-of-bounds determination module performs frame-by-frame interior point determination of the sphere within the sub-triangle includes: For each sub-triangle, calculate its centroid; Determine whether the spatial coordinates of the sphere and its centroid are located on the same side of the three sides of the sub-triangle. If all three sides are on the same side, the sphere is located inside the sub-triangle. If the three sides are not on the same side, the sphere is not located inside the sub-triangle. If the sphere is located within any sub-triangle, then the sphere is considered to be in the bounds in the current frame; otherwise, it is considered to be out of the bounds.

6. The ball out-of-bounds determination system based on spatial coordinate transformation according to claim 5, characterized in that, The process of determining whether the spatial coordinates of the sphere and its centroid are located on the same side of the three sides of the sub-triangle includes: Obtain the first side sign of the spatial coordinate point of the sphere relative to the side, and the second side sign of the centroid relative to the side; When the first side symbol is the same as the second side symbol, or when the absolute value of the difference between the first side symbol and the second side symbol is less than a preset tolerance, it is determined that the two are on the same side.

7. The ball out-of-bounds determination system based on spatial coordinate transformation according to claim 5, characterized in that, The out-of-bounds determination module also includes: Preset the spatial compensation value corresponding to the sphere radius; Before determining the interior points of each sub-triangle, each side of the sub-triangle is indented inward by the distance of the spatial compensation value to form an indentation boundary; the interior point determination is performed based on the indentation boundary.

8. The ball out-of-bounds determination system based on spatial coordinate transformation according to claim 1, characterized in that, The inter-frame state confirmation refers to determining that the sphere has crossed the boundary and outputting an out-of-bounds signal when the sphere's state changes from an in-bounds state to an out-of-bounds state, and this out-of-bounds state is maintained continuously in a preset series of frames.