Method for detecting the tilt angle of a communication base station device and related device

CN122881633APending Publication Date: 2026-10-09CHINA MOBILE GROUP JIANGSU +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610968888.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-01
Publication Date
2026-10-09

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种通信基站设备的俯仰角检测方法及相关设备,可解决现有针对通信基站设备的俯仰角检测方法的检测结果准确性较低的问题

Benefits of technology

[0014]第五方面,提供一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现如第一方面所述的通信基站设备的俯仰角检测方法的步骤。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122881633A_ABST
    Figure CN122881633A_ABST
Patent Text Reader

Abstract

The application provides a pitch angle detection method of a communication base station device and related equipment, applied to the field of communication technology, and the method comprises the following steps: acquiring a first video; detecting the pitch angle of the first communication base station device in the first video based on a preset oriented bounding box (OBB) algorithm to obtain a first pitch angle of the first communication base station device; calculating N second pitch angles based on the slope information of the first communication base station device displayed in the N continuous video frames in the first video; correcting the first pitch angle based on the N second pitch angles respectively to obtain N effective angles corresponding to the N second pitch angles respectively; and determining a third pitch angle of the first communication base station device based on the N effective angles. Through the method, the problems such as angle misjudgment, instantaneous fluctuation and shielding interference in the detection process can be solved, and the accuracy of the third pitch angle of the first communication base station device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method and related equipment for detecting the pitch angle of a communication base station. Background Technology

[0002] With the development of fifth-generation mobile communication technology (5G) th With the large-scale deployment of 5G (Generation Mobile Communication Technology) base stations, the number of communication base stations has surged, significantly increasing their operational complexity. Base station towers are densely packed with core equipment to ensure signal coverage, such as antennas, active antenna units (AAUs), and remote radio units (RRUs).

[0003] The pitch angle stability of base station equipment (antenna / AAU / RRU) directly affects signal coverage quality and needs to be checked regularly. Existing detection methods have difficulty accurately extracting the hypotenuse of the equipment under obstructed conditions, and the angle calculation has a high risk of deviation. Early Oriented Bounding Box (OBB) technology is not effective for detecting small targets and lacks an effective angle post-processing mechanism, making it difficult to stably control the angle detection error. Therefore, the accuracy of existing pitch angle detection methods for communication base station equipment is low. Summary of the Invention

[0004] This application provides a method and related equipment for detecting the pitch angle of a communication base station, which can solve the problem of low accuracy of existing methods for detecting the pitch angle of communication base station equipment.

[0005] In a first aspect, embodiments of this application provide a method for detecting the pitch angle of a communication base station device, the method comprising: Acquire a first video, which is a video obtained by shooting around the target base station, and the first video includes an image of a first communication base station device installed at the target base station; The pitch angle of the first communication base station device in the first video is detected based on the preset directional bounding box OBB algorithm to obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the size of the angle between the first communication base station device and the reference direction. Based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video, N second pitch angles are calculated. The first communication base station device is included in the frame of each of the N consecutive video frames. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2. The first pitch angle is corrected based on the N second pitch angles respectively to obtain N effective angles that correspond one-to-one with the N second pitch angles; Based on the N effective angles, the third pitch angle of the first communication base station equipment is determined.

[0006] Optionally, the step of correcting the first pitch angle based on the N second pitch angles to obtain N effective angles corresponding one-to-one with the N second pitch angles includes: If the absolute value of the difference between the target pitch angle and the first pitch angle is less than or equal to the first preset angle, the first pitch angle is determined as the effective angle corresponding to the target pitch angle, and the target pitch angle is any one of the N second pitch angles. If the absolute value of the difference between the target pitch angle and the first pitch angle is greater than the first preset angle, the target pitch angle is determined as the effective angle corresponding to the target pitch angle.

[0007] Optionally, determining the third pitch angle of the first communication base station device based on the N effective angles includes: Based on the N effective angles, an angle interval is determined, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; The angle value indicated by the midpoint of the angle interval is determined as the third pitch angle.

[0008] Optionally, after correcting the first pitch angle based on the N second pitch angles to obtain N effective angles corresponding one-to-one with the N second pitch angles, the method further includes: In the N video frames, if the difference between the two effective angles corresponding to any two adjacent video frames is less than a second preset angle, an angle interval is determined based on the N effective angles, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; the angle value indicated by the midpoint of the angle interval is determined as the third pitch angle; The method further includes: If, among the N video frames, there are M consecutive video frames that satisfy a preset angle fluctuation condition, a second video is acquired. The second video is a video obtained by re-enacting a surround shot of the target base station. Based on the second video, a third pitch angle of the first communication base station device is determined, where M is an integer greater than 1. The preset angle fluctuation condition includes: the difference between the two effective angles corresponding to any two adjacent video frames is greater than the second preset angle.

[0009] Optionally, the first video frame includes multiple different communication base station devices, including the first communication base station device. The step of detecting the pitch angle of the first communication base station device in the first video based on a preset OBB algorithm to obtain the first pitch angle of the first communication base station device includes: Each video frame in the first video is detected to obtain detection confidence information, wherein the detection confidence information includes: multiple detection confidence values ​​corresponding one-to-one with the multiple video frames included in the first video, and the detection confidence values ​​are used to indicate the confidence that the corresponding video frame includes the image of the first communication base station device; Based on the detection confidence information, at least one third video frame is determined from the plurality of video frames, and the at least one third video frame includes: all video frames in the plurality of video frames that include the image of the first communication base station device; Based on the preset OBB algorithm, the pitch angle of the first communication base station device in the at least one third video frame is detected to obtain the first pitch angle of the first communication base station device.

[0010] Optionally, determining at least one third video frame among the plurality of video frames based on the detection confidence information includes: If the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value, the fourth video frame is determined as the third video frame, wherein the fourth video frame is any one of the plurality of video frames; or, If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value but greater than the second preset confidence value, tracking parameters are detected for the communication base station equipment included in the fourth video frame to obtain first tracking parameters. The first tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the communication base station equipment included in the fourth video frame. Tracking parameters are detected for the first communication base station equipment included in any video frame other than the fourth video frame in the first video to obtain second tracking parameters. The second tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the first communication base station equipment. If the similarity between the first tracking parameters and the second tracking parameters is greater than a preset similarity threshold, the fourth video frame is determined as the third video frame.

[0011] Secondly, embodiments of this application also provide a pitch angle detection device for a communication base station device, the device comprising: The acquisition module is used to acquire a first video, which is a video obtained by shooting around the target base station, and the first video includes an image of a first communication base station device set up at the target base station. The detection module is used to detect the pitch angle of the first communication base station device in the first video based on the preset directional bounding box OBB algorithm, and obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the size of the angle between the first communication base station device and the reference direction. The calculation module is used to calculate N second pitch angles based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video. Each video frame in the N consecutive video frames includes the first communication base station device. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2. The correction module is used to correct the first pitch angle based on the N second pitch angles respectively, so as to obtain N effective angles that correspond one-to-one with the N second pitch angles; The determining module is used to determine the third pitch angle of the first communication base station device based on the N effective angles.

[0012] Thirdly, embodiments of this application also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the pitch angle detection method for the communication base station device as described in the first aspect.

[0013] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the elevation angle detection method for a communication base station device as described in the first aspect.

[0014] Fifthly, a computer program product is provided, including computer instructions that, when executed by a processor, implement the steps of the elevation angle detection method for a communication base station device as described in the first aspect.

[0015] In this embodiment, after detecting the pitch angle of the first communication base station device in the first video using a preset OBB algorithm to obtain the first pitch angle of the first communication base station device, N second pitch angles calculated based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video are used to correct the first pitch angle. This can solve problems such as angle misjudgment, instantaneous fluctuations, and occlusion interference that occur during the detection process, thereby improving the accuracy of the N effective angles. The third pitch angle of the first communication base station device is determined based on the N effective angles. Due to the improved accuracy of the N effective angles, the accuracy of the detected third pitch angle of the first communication base station device can be improved. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is one of the flowcharts of the elevation angle detection method for communication base station equipment provided in the embodiments of this application; Figure 2 This is a flowchart illustrating the construction of a high-definition dataset and the training and validation of a model, as provided in an embodiment of this application. Figure 3 This is the second flowchart of the elevation angle detection method for communication base station equipment provided in the embodiments of this application; Figure 4 This is a structural diagram of a pitch angle detection device for a communication base station equipment provided in an embodiment of this application; Figure 5 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] This application provides a method and related equipment for detecting the elevation angle of a communication base station.

[0020] See Figure 1 , Figure 1 This is a flowchart of the elevation angle detection method for communication base station equipment provided in the embodiments of this application, such as... Figure 1 As shown, it includes the following steps: Step 101: Obtain a first video. The first video is a video obtained by shooting around the target base station. The first video includes an image of a first communication base station device installed at the target base station.

[0021] The first communication base station equipment installed at the target base station can be an antenna, an active antenna unit (AAU), and a remote radio unit (RRU). The antenna, AAU, and RRU together constitute the core of base station signal coverage and processing. The antenna is responsible for signal transmission and reception, and its elevation angle (normal range 0° to 12°) and azimuth angle directly determine the signal coverage quality. The AAU is a key device in the 5G network, integrating signal processing and amplification functions. The RRU is responsible for stable signal transmission between the base station main equipment and the antenna. The elevation angles of all three components typically need to be controlled within the normal range of 0° to 12° to ensure network performance.

[0022] The tilt angle stability of base station equipment (antenna / AAU / RRU) directly affects signal coverage quality and requires regular inspection. (The normal range for the target base station tower is typically 0° to 5° to prevent tower tilting; the normal range for the antenna / AAU / RRU is typically 0° to 12°; tilt exceeding the corresponding upper limit requires a warning, and exceeding 20° is considered abnormal.) Equipment with abnormal angles not only affects network quality but may also pose a risk of falling due to loose screws, being blown askew by strong winds, etc., and requires prompt repair.

[0023] like Figure 2 As shown, the process of acquiring the first video is explained as follows: Image acquisition was conducted using dedicated drones authorized by the operator. These drones were equipped with high-definition camera modules with 4K or higher resolution to ensure the imaging details met analytical requirements. The gimbal attitude was precisely constrained through the flight control system, keeping the pitch and roll angles within ±5°. Video was captured in a circling manner along each level of the target base station tower, ensuring the shooting height was aligned with the equipment platform and the shooting distance fully represented the physical edges of the equipment. The acquisition process was limited to well-lit weather conditions, covering various geographical environments and base station tower types, including plains, mountains, and urban areas, thus ensuring the compliance, standardization, and representativeness of the data source. Still images were extracted using video frame extraction tools as the base material for subsequent processing.

[0024] The acquired images were screened and cleaned, removing invalid samples with severe blurring, occlusion, or non-standard perspectives, retaining images with clear edges and acceptable perspectives as valid data. Based on this, a standardized annotation system was established, clearly defining "side view" as an angle between the device's frontal normal and the shooting direction within ±30°, and classifying other perspectives as "non-side view." The type of communication base station equipment was also simultaneously labeled, ensuring that the annotation information strictly corresponds to the actual physical angles, providing a clear and reliable foundation of labeled data for model training. The aforementioned valid data was sorted according to the shooting time sequence and used to generate the first video.

[0025] Understandably, the first video includes images from various angles surrounding the target base station.

[0026] Step 102: Detect the pitch angle of the first communication base station device in the first video based on the preset directional bounding box OBB algorithm to obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the angle between the first communication base station device and the reference direction.

[0027] The preset OBB algorithm can be one of several OBB detection algorithms, such as YOLOv8OBB, YOLOv11OBB, RT-DETR-OBB, and mmrotate.

[0028] The reference direction can be the direction of a line perpendicular to the ground plane, or the direction of the ground plane itself.

[0029] Understandably, step 102 can be implemented by a pre-trained detection model, such as... Figure 2 As shown, the training and validation process of the detection model includes: Obtain a pre-set training dataset, which includes multiple training video frames and multiple labeled first pitch angles; Multiple training video frames are input into a pre-defined OBB algorithm model. The model's parameters are then tuned using the labeled first pitch angles from the training video frames. The trained model is then saved. Obtain a pre-set validation dataset, which includes multiple validation video frames and multiple labeled first pitch angles. Input the multiple validation video frames into the trained model, and use the labeled first pitch angles of the validation video frames for testing, validation, and parameter tuning to finally obtain the detection model for step 102.

[0030] In another optional implementation, step 102 can be performed through a modular and scalable multi-algorithm detection system. This system, through the design of a unified algorithm interface, is compatible with various mainstream OBB detection algorithms such as YOLOv8OBB, YOLOv11OBB, RT-DETR-OBB, and mmrotate. It also reserves integration capabilities for new algorithms that may emerge in the future (such as YOLO12OBB) and integrates small target enhancement and scene adaptive scheduling mechanisms to achieve rapid access and flexible expansion.

[0031] Step 103: Based on the oblique information of the first communication base station device displayed in N consecutive video frames in the first video, calculate N second pitch angles. The first communication base station device is included in the frame of each of the N consecutive video frames. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2.

[0032] In an optional implementation, calculating N second pitch angles based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames of the first video includes: For any one of the N consecutive video frames, edge extraction is performed on the device region included in the image of the video frame. Edge detection combined with morphological dilation is used to enhance the contour features of the device body. In occluded scenes, the edges of adjacent devices are further identified and distinguished based on the inherent texture of the device surface to ensure the accuracy of the diagonal edge extraction. Then, the main long side representing the device body is identified and extracted, and the angle α between this long side and the vertical direction of the image is calculated with an accuracy controlled within ±1°. The angle α is the second pitch angle corresponding to the video frame.

[0033] Step 104: Correct the first pitch angle based on the N second pitch angles respectively to obtain N effective angles that correspond one-to-one with the N second pitch angles; The method for correcting the first pitch angle based on the second pitch angle can be: The average of the first pitch angle and the second pitch angle is determined as the corresponding effective angle.

[0034] Steps 103 and 104 are used to perform device slant correction and occlusion optimization on the first pitch angle of the first communication base station device to solve problems such as angle misjudgment, instantaneous fluctuation and occlusion interference that occur during the detection process, thereby improving the accuracy of the pitch angle of the first communication base station device.

[0035] Step 105: Based on the N effective angles, determine the third pitch angle of the first communication base station device.

[0036] The average angle of the N effective angles can be used as the third pitch angle of the first communication base station equipment.

[0037] In the pitch angle detection method for communication base station equipment provided in this application, after detecting the pitch angle of the first communication base station equipment in the first video using a preset OBB algorithm to obtain the first pitch angle of the first communication base station equipment, the first pitch angle is corrected by calculating N second pitch angles based on the hypotenuse information of the first communication base station equipment displayed in N consecutive video frames in the first video. This method can solve problems such as angle misjudgment, instantaneous fluctuations, and occlusion interference that occur during the detection process, thereby improving the accuracy of the detected third pitch angle of the first communication base station equipment.

[0038] Optionally, the step of correcting the first pitch angle based on the N second pitch angles to obtain N effective angles corresponding one-to-one with the N second pitch angles includes: If the absolute value of the difference between the target pitch angle and the first pitch angle is less than or equal to the first preset angle, the first pitch angle is determined as the effective angle corresponding to the target pitch angle, and the target pitch angle is any one of the N second pitch angles. If the absolute value of the difference between the target pitch angle and the first pitch angle is greater than the first preset angle, the target pitch angle is determined as the effective angle corresponding to the target pitch angle.

[0039] In this embodiment, if the absolute value of the difference between the target pitch angle and the first pitch angle is less than or equal to a first preset angle (e.g., 2°), the first pitch angle is determined to be valid and is identified as a valid angle.

[0040] If the absolute value of the difference between the target pitch angle and the first pitch angle is greater than the first preset angle, the target pitch angle is determined as the effective angle because it is more reliable than the first pitch angle since the target pitch angle is determined based on the physical hypotenuse.

[0041] In this embodiment, the second pitch angle is used to correct the first pitch angle. When the difference between the second and first pitch angles is small, both are considered reliable, and the first pitch angle is taken as the effective angle, with minimal discrepancy from the actual pitch angle. Conversely, when the difference between the second and first pitch angles is large, the second pitch angle determined based on the physical hypotenuse is more reliable than the first pitch angle, and the difference between the second pitch angle and the actual pitch angle is smaller. By determining an effective angle with a smaller discrepancy from the actual pitch angle using the above method, the accuracy of the subsequent third pitch angle can be improved.

[0042] Optionally, determining the third pitch angle of the first communication base station device based on the N effective angles includes: Based on the N effective angles, an angle interval is determined, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; The angle value indicated by the midpoint of the angle interval is determined as the third pitch angle.

[0043] In this embodiment, an angle range can be formed based on the N effective angles, for example, the 10 effective angles corresponding to 10 consecutive video frames. The angle value indicated by the midpoint of the angle interval, i.e., the median value of the interval, is taken as the third pitch angle of the first communication base station device. This method effectively smooths out the angle fluctuations corresponding to a single video frame, improving the accuracy of the third pitch angle.

[0044] Optionally, after correcting the first pitch angle based on the N second pitch angles to obtain N effective angles corresponding one-to-one with the N second pitch angles, the method further includes: In the N video frames, if the difference between the two effective angles corresponding to any two adjacent video frames is less than a second preset angle, an angle interval is determined based on the N effective angles, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; the angle value indicated by the midpoint of the angle interval is determined as the third pitch angle; The method further includes: If, among the N video frames, there are M consecutive video frames that satisfy a preset angle fluctuation condition, a second video is acquired. The second video is a video obtained by re-enacting a surround shot of the target base station. Based on the second video, a third pitch angle of the first communication base station device is determined, where M is an integer greater than 1. The preset angle fluctuation condition includes: the difference between the two effective angles corresponding to any two adjacent video frames is greater than the second preset angle.

[0045] In this embodiment, if the difference between the two effective angles corresponding to any two adjacent video frames in the N video frames is less than the second preset angle, it indicates that the difference between the effective angles corresponding to the N consecutive video frames is not large. It can be determined that there is no abnormal value interference caused by instantaneous jitter or severe occlusion in the N video frames. Therefore, the effective angle of the smooth video frame in the above embodiment can be used to calculate the third pitch angle.

[0046] If, among the N video frames, M consecutive video frames satisfy the preset angle fluctuation condition (for example, if the angle fluctuation of three consecutive frames exceeds 10°), it indicates that there is outlier interference in the N video frames due to momentary jitter or severe occlusion. In this case, the detected effective angle is no longer reliable. Therefore, it is necessary to re-capture the second video and determine the third pitch angle based on the second video. Understandably, the method for determining the third pitch angle based on the second video is the same as that in steps 101-105 above, the only difference being the video used.

[0047] By using the method described in this embodiment, outlier interference caused by momentary jitter or severe obstruction can be eliminated, thereby improving the accuracy of the final obtained third pitch angle.

[0048] Optionally, the first video frame includes multiple different communication base station devices, including the first communication base station device. The step of detecting the pitch angle of the first communication base station device in the first video based on a preset OBB algorithm to obtain the first pitch angle of the first communication base station device includes: Each video frame in the first video is detected to obtain detection confidence information, wherein the detection confidence information includes: multiple detection confidence values ​​corresponding one-to-one with the multiple video frames included in the first video, and the detection confidence values ​​are used to indicate the confidence that the corresponding video frame includes the image of the first communication base station device; Based on the detection confidence information, at least one third video frame is determined from the plurality of video frames, and the at least one third video frame includes: all video frames in the plurality of video frames that include the image of the first communication base station device; Based on the preset OBB algorithm, the pitch angle of the first communication base station device in the at least one third video frame is detected to obtain the first pitch angle of the first communication base station device.

[0049] In this embodiment, the first video frame includes multiple different communication base station devices. It is understood that multiple different communication base station devices can be arranged at intervals around the target base station tower. In the first video, there may be a video frame that does not include any communication base station devices, or there may be a video frame that includes multiple communication base station devices. Therefore, the following situations may occur: The video consists of 10 frames. The first communication base station device appears in frames 1 through 4, but not in frames 5 through 8. A communication base station device appears in frame 9. Whether the communication base station device in frame 9 is the first communication base station device needs to be determined by the computer. The method of this embodiment can confirm the identity of each communication base station device in the first video.

[0050] In this embodiment, the first communication base station device (any communication base station device can adopt the same method) is used as an example for illustration: In the step of obtaining detection confidence information by detecting each video frame in the first video, the detection confidence information includes multiple detection confidence values. It can be understood that if a video frame does not include footage of a communication base station device, that video frame cannot possibly include footage of the first communication base station device. Therefore, in this case, the detection confidence value is not calculated, reducing the amount of data to be processed. Thus, the multiple video frames are those in the first video that include footage of a communication base station device. If a video frame includes footage of only one communication base station device, the detection confidence value indicates whether that one communication base station device is the first communication base station device. If a video frame includes footage of multiple communication base station devices, the detection confidence value is determined by calculating the confidence scores of each of the multiple communication base station devices and the first communication base station device, and using the highest confidence score as the detection confidence value.

[0051] The step of determining at least one third video frame among the plurality of video frames based on the detection confidence information includes: If the detection confidence value is greater than a preset threshold, the video frame corresponding to the detection confidence value can be determined as the third video frame.

[0052] After determining the third video frame, the image of the first communication base station device included in the third video frame is detected according to the preset OBB algorithm to obtain the first pitch angle.

[0053] In this embodiment, a third video frame including the image of the first communication base station device can be determined from the first video. By using a preset OBB algorithm to analyze only the third video frame, the amount of data that needs to be analyzed can be reduced, and the interference from other video frames can be eliminated, which can improve the accuracy of obtaining the first pitch angle, thereby improving the accuracy of the final obtained third pitch angle.

[0054] In an optional implementation, a temporary tracking ID can be assigned to the communication base station equipment included in the first video frame to maintain the temporal consistency of the device identity. The tracking logic is also implemented based on the detection confidence value, for example: For a certain video frame, a temporary identifier 1 is assigned to the first communication base station device. When other video frames show communication base station devices that need to be assigned identifiers, the detection confidence between the two is calculated. When the detection confidence is not less than 0.8, the communication base station devices in other video frames are directly associated with the temporary identifier 1.

[0055] Optionally, determining at least one third video frame among the plurality of video frames based on the detection confidence information includes: If the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value, the fourth video frame is determined as the third video frame, wherein the fourth video frame is any one of the plurality of video frames; or, If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value but greater than the second preset confidence value, tracking parameters are detected for the communication base station equipment included in the fourth video frame to obtain first tracking parameters. The first tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the communication base station equipment included in the fourth video frame. Tracking parameters are detected for the first communication base station equipment included in any video frame other than the fourth video frame in the first video to obtain second tracking parameters. The second tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the first communication base station equipment. If the similarity between the first tracking parameters and the second tracking parameters is greater than a preset similarity threshold, the fourth video frame is determined as the third video frame.

[0056] In this embodiment, for the fourth video frame, if the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value (e.g., 0.8), the fourth video frame is determined as the third video frame, and the communication base station device included in the fourth video frame is determined as the first communication base station device. It should be noted that if the fourth video frame includes only one communication base station device, the first communication base station device can be directly determined; if the fourth video frame includes multiple communication base station devices, since the detection confidence value is the largest among the multiple confidence values ​​corresponding to the multiple communication base station devices, the communication base station device corresponding to the largest of the multiple confidence values ​​is determined as the first communication base station device.

[0057] If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value and greater than the second preset confidence value (e.g., 0.5), the first tracking parameter of the communication base station device included in the fourth video frame and the second tracking parameter of the first communication base station device are further compared to obtain the similarity. If the similarity is greater than the preset similarity threshold, the communication base station device included in the fourth video frame is considered to be the first communication base station device, and the fourth video frame is determined to be the third video frame.

[0058] In this embodiment, if the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value, the fourth video frame is directly identified as the third video frame. If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value but greater than the second preset confidence value, the first tracking parameters and the second tracking parameters are used for further analysis, thereby improving the accuracy of the identified third video frame and thus improving the accuracy of the final obtained third pitch angle.

[0059] The pitch angle detection method for communication base station equipment in this application can be processed through the following three core modules: First, the equipment identification and initial positioning are completed through a modular multi-algorithm OBB detection system; then, the angle data is corrected and smoothed through an integrated angle post-processing module; finally, the status judgment and result output module completes the status assessment and report generation based on preset thresholds. The entire process realizes fully automatic and high-precision output from video input to structured results. Specifically, as follows... Figure 3 As shown: The first video is input into the multi-algorithm OBB detection module, and step 102 above is executed to obtain the first pitch angle. The target base station tower and communication base station equipment in the first video are identified and tracked using the detection confidence information, and the corresponding OBB parameters are extracted. For the first pitch angle of each communication base station device, the hypotenuse information is used for correction to obtain the effective angle. Based on the effective angle, the final third pitch angle is determined and the detection result is output. Based on precise pitch angles, an automated status determination and result management process is implemented. The typical determination criteria are: when the base station tower angle is between 0° and 5°, and the antenna / AAU / RRU equipment angle is between 0° and 12°, it is considered a "normal" state; angles between 5° and 20° or between 12° and 20° are marked as "warning" states; if any equipment angle exceeds 20°, it is uniformly considered "abnormal," requiring the initiation of an emergency maintenance process. The final output includes a complete set of test result images and a structured report (supporting Excel and PDF formats). All data supports local storage and cloud-based collaborative management. Users can upload results to the operation and maintenance platform, or download historical test data, including videos, from the cloud, enabling traceability of test records and multi-device data synchronization.

[0060] In the pitch angle detection method for communication base station equipment in this application, a standardized UAV data acquisition and annotation scheme is constructed. A strict acquisition process is implemented by authorizing UAVs: controlling the gimbal attitude angle within ±5°, and employing a method of layered video capture around the base station tower and extracting static images to ensure the standardization of data acquisition and the clarity of equipment images. Simultaneously, a clear standard for defining "side-view / non-side-view" perspectives is established, and the annotation system integrates scene coverage of multiple base station tower types and the correlation logic between equipment type and angle range, thereby systematically solving the problems of inconsistent annotation quality and insufficient scene coverage, and constructing a high-quality, multi-scene, reliable dataset for algorithm training. Secondly, a modular and scalable multi-algorithm OBB detection system is constructed. Through a unified interface design, it is compatible with mainstream and future OBB detection algorithms, and integrates small target enhancement and scene adaptive scheduling mechanisms, significantly improving detection accuracy and generalization ability. The system ensures compatibility with subsequent processing modules through a standardized output layer, and combines target tracking and ID association strategies to achieve stable identification of device identity between consecutive frames and temporal smoothing of angle data, effectively overcoming the shortcomings of traditional methods in small target omission, angle fluctuation, and scene adaptability. Furthermore, an integrated processing solution combining device hypotenuse correction and tracking ID filtering improves the accuracy and stability of angle detection. The module calculates the angle based on the physical hypotenuse and cross-validates it with the OBB detection results; simultaneously, it uses the tracking ID to filter the median value and monitor fluctuations in multi-frame angle data, effectively suppressing instantaneous interference and misjudgments, ensuring that the final output angle meets the actual operation and maintenance accuracy requirements.

[0061] See Figure 4 , Figure 4This is a structural diagram of a pitch angle detection device for a communication base station equipment according to an embodiment of this application. Figure 4 As shown, the device 400 includes: The acquisition module 401 is used to acquire a first video, which is a video obtained by shooting around the target base station, and the first video includes an image of a first communication base station device set at the target base station. The detection module 402 is used to detect the pitch angle of the first communication base station device in the first video based on the preset directional bounding box OBB algorithm, and obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the size of the angle between the first communication base station device and the reference direction. The calculation module 403 is used to calculate N second pitch angles based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video. The first communication base station device is included in the frame of each of the N consecutive video frames. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2. The correction module 404 is used to correct the first pitch angle based on the N second pitch angles respectively, so as to obtain N effective angles that correspond one-to-one with the N second pitch angles. The determining module 405 is used to determine the third pitch angle of the first communication base station device based on the N effective angles.

[0062] Optionally, the calibration module 404 is also used for: If the absolute value of the difference between the target pitch angle and the first pitch angle is less than or equal to the first preset angle, the first pitch angle is determined as the effective angle corresponding to the target pitch angle, and the target pitch angle is any one of the N second pitch angles. If the absolute value of the difference between the target pitch angle and the first pitch angle is greater than the first preset angle, the target pitch angle is determined as the effective angle corresponding to the target pitch angle.

[0063] Optionally, the determining module 405 is also used for: Based on the N effective angles, an angle interval is determined, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; The angle value indicated by the midpoint of the angle interval is determined as the third pitch angle.

[0064] Device 400 also includes: The second determining module is configured to: determine an angle interval based on the N effective angles when the difference between two effective angles corresponding to any two adjacent video frames is less than a second preset angle, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; and determine the angle value indicated by the midpoint of the angle interval as the third pitch angle. The third determining module is used to: acquire a second video when there are M consecutive video frames in the N video frames that satisfy a preset angle fluctuation condition, wherein the second video is a video obtained by re-enacting a surround shot of the target base station; and determine a third pitch angle of the first communication base station device based on the second video, wherein M is an integer greater than 1, wherein the preset angle fluctuation condition includes: the difference between the two effective angles corresponding to any two adjacent video frames is greater than the second preset angle.

[0065] Optionally, the first video frame includes multiple different communication base station devices, including the first communication base station device, and the detection module 402 is further configured to: Each video frame in the first video is detected to obtain detection confidence information, wherein the detection confidence information includes: multiple detection confidence values ​​corresponding one-to-one with the multiple video frames included in the first video, and the detection confidence values ​​are used to indicate the confidence that the corresponding video frame includes the image of the first communication base station device; Based on the detection confidence information, at least one third video frame is determined from the plurality of video frames, and the at least one third video frame includes: all video frames in the plurality of video frames that include the image of the first communication base station device; Based on the preset OBB algorithm, the pitch angle of the first communication base station device in the at least one third video frame is detected to obtain the first pitch angle of the first communication base station device.

[0066] Optionally, the detection module 402 is also used for: If the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value, the fourth video frame is determined as the third video frame, wherein the fourth video frame is any one of the plurality of video frames; or, If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value but greater than the second preset confidence value, tracking parameters are detected for the communication base station equipment included in the fourth video frame to obtain first tracking parameters. The first tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the communication base station equipment included in the fourth video frame. Tracking parameters are detected for the first communication base station equipment included in any video frame other than the fourth video frame in the first video to obtain second tracking parameters. The second tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the first communication base station equipment. If the similarity between the first tracking parameters and the second tracking parameters is greater than a preset similarity threshold, the fourth video frame is determined as the third video frame.

[0067] The device 400 provided in this application can perform all the steps of the above-mentioned pitch angle detection method for communication base station equipment and achieve the same beneficial effects. To avoid repetition, it will not be described again.

[0068] This application also provides an electronic device. Since the principle by which the electronic device solves the problem is similar to the pitch angle detection method of the communication base station equipment in this application, the implementation of this electronic device can refer to the implementation of the pitch angle detection method of the communication base station equipment described above, and repeated details will not be repeated. Figure 5 As shown, the electronic device of this application embodiment includes: a processor 500, configured to read a program from a memory 520 and execute the following processes: Acquire a first video, which is a video obtained by shooting around the target base station, and the first video includes an image of a first communication base station device installed at the target base station; The pitch angle of the first communication base station device in the first video is detected based on the preset directional bounding box OBB algorithm to obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the size of the angle between the first communication base station device and the reference direction. Based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video, N second pitch angles are calculated. The first communication base station device is included in the frame of each of the N consecutive video frames. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2. The first pitch angle is corrected based on the N second pitch angles respectively to obtain N effective angles that correspond one-to-one with the N second pitch angles; Based on the N effective angles, the third pitch angle of the first communication base station equipment is determined.

[0069] Among them, Figure 5 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 500) and memory (memory 520). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. A bus interface provides the interface. Processor 500 is responsible for managing the bus architecture and general processing, and memory 520 can store data used by processor 500 during operation.

[0070] Optionally, the processor 500 is configured to read the program from the memory 520 and execute the following processes: If the absolute value of the difference between the target pitch angle and the first pitch angle is less than or equal to the first preset angle, the first pitch angle is determined as the effective angle corresponding to the target pitch angle, and the target pitch angle is any one of the N second pitch angles. If the absolute value of the difference between the target pitch angle and the first pitch angle is greater than the first preset angle, the target pitch angle is determined as the effective angle corresponding to the target pitch angle.

[0071] Optionally, the processor 500 is configured to read the program from the memory 520 and execute the following processes: Based on the N effective angles, an angle interval is determined, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; The angle value indicated by the midpoint of the angle interval is determined as the third pitch angle.

[0072] Optionally, the processor 500 is configured to read the program from the memory 520 and execute the following processes: In the N video frames, if the difference between the two effective angles corresponding to any two adjacent video frames is less than a second preset angle, an angle interval is determined based on the N effective angles, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; the angle value indicated by the midpoint of the angle interval is determined as the third pitch angle; If, among the N video frames, there are M consecutive video frames that satisfy a preset angle fluctuation condition, a second video is acquired. The second video is a video obtained by re-enacting a surround shot of the target base station. Based on the second video, a third pitch angle of the first communication base station device is determined, where M is an integer greater than 1. The preset angle fluctuation condition includes: the difference between the two effective angles corresponding to any two adjacent video frames is greater than the second preset angle.

[0073] Optionally, the first video frame includes multiple different communication base station devices, including the first communication base station device. The processor 500 is used to read the program in the memory 520 and execute the following process: Each video frame in the first video is detected to obtain detection confidence information, wherein the detection confidence information includes: multiple detection confidence values ​​corresponding one-to-one with the multiple video frames included in the first video, and the detection confidence values ​​are used to indicate the confidence that the corresponding video frame includes the image of the first communication base station device; Based on the detection confidence information, at least one third video frame is determined from the plurality of video frames, and the at least one third video frame includes: all video frames in the plurality of video frames that include the image of the first communication base station device; Based on the preset OBB algorithm, the pitch angle of the first communication base station device in the at least one third video frame is detected to obtain the first pitch angle of the first communication base station device.

[0074] Optionally, the processor 500 is configured to read the program from the memory 520 and execute the following processes: If the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value, the fourth video frame is determined as the third video frame, wherein the fourth video frame is any one of the plurality of video frames; or, If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value but greater than the second preset confidence value, tracking parameters are detected for the communication base station equipment included in the fourth video frame to obtain first tracking parameters. The first tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the communication base station equipment included in the fourth video frame. Tracking parameters are detected for the first communication base station equipment included in any video frame other than the fourth video frame in the first video to obtain second tracking parameters. The second tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the first communication base station equipment. If the similarity between the first tracking parameters and the second tracking parameters is greater than a preset similarity threshold, the fourth video frame is determined as the third video frame.

[0075] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described embodiment of the elevation angle detection method for communication base station equipment, and achieves the same technical effect. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0076] This application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above-described... Figure 1 The various processes of the elevation angle detection method embodiment for the communication base station equipment shown are all applicable and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0077] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0078] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0079] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for detecting the pitch angle of a communication base station device, characterized in that, The method includes: Acquire a first video, which is a video obtained by shooting around the target base station, and the first video includes an image of a first communication base station device installed at the target base station; The pitch angle of the first communication base station device in the first video is detected based on the preset directional bounding box OBB algorithm to obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the size of the angle between the first communication base station device and the reference direction. Based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video, N second pitch angles are calculated. The first communication base station device is included in the frame of each of the N consecutive video frames. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2. The first pitch angle is corrected based on the N second pitch angles respectively to obtain N effective angles that correspond one-to-one with the N second pitch angles; Based on the N effective angles, the third pitch angle of the first communication base station equipment is determined.

2. The method according to claim 1, characterized in that, The step of correcting the first pitch angle based on the N second pitch angles to obtain N effective angles corresponding one-to-one with the N second pitch angles includes: If the absolute value of the difference between the target pitch angle and the first pitch angle is less than or equal to the first preset angle, the first pitch angle is determined as the effective angle corresponding to the target pitch angle, and the target pitch angle is any one of the N second pitch angles. If the absolute value of the difference between the target pitch angle and the first pitch angle is greater than the first preset angle, the target pitch angle is determined as the effective angle corresponding to the target pitch angle.

3. The method according to claim 1 or 2, characterized in that, The determination of the third pitch angle of the first communication base station device based on the N effective angles includes: Based on the N effective angles, an angle interval is determined, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; The angle value indicated by the midpoint of the angle interval is determined as the third pitch angle.

4. The method according to claim 1 or 2, characterized in that, After correcting the first pitch angle based on the N second pitch angles respectively to obtain N effective angles corresponding one-to-one with the N second pitch angles, the method further includes: In the N video frames, if the difference between the two effective angles corresponding to any two adjacent video frames is less than a second preset angle, an angle interval is determined based on the N effective angles, wherein the minimum angle value of the angle interval is the minimum effective angle among the N effective angles, and the maximum angle value of the angle interval is the maximum effective angle among the N effective angles; the angle value indicated by the midpoint of the angle interval is determined as the third pitch angle; The method further includes: If, among the N video frames, there are M consecutive video frames that satisfy a preset angle fluctuation condition, a second video is acquired. The second video is a video obtained by re-enacting a surround shot of the target base station. Based on the second video, a third pitch angle of the first communication base station device is determined, where M is an integer greater than 1. The preset angle fluctuation condition includes: the difference between the two effective angles corresponding to any two adjacent video frames is greater than the second preset angle.

5. The method according to claim 1, characterized in that, The first video includes multiple different communication base station devices, including the first communication base station device. The step of detecting the pitch angle of the first communication base station device in the first video based on a preset OBB algorithm to obtain the first pitch angle of the first communication base station device includes: Each video frame in the first video is detected to obtain detection confidence information, wherein the detection confidence information includes: multiple detection confidence values ​​corresponding one-to-one with the multiple video frames included in the first video, and the detection confidence values ​​are used to indicate the confidence that the corresponding video frame includes the image of the first communication base station device; Based on the detection confidence information, at least one third video frame is determined from the plurality of video frames, and the at least one third video frame includes: all video frames in the plurality of video frames that include the image of the first communication base station device; Based on the preset OBB algorithm, the pitch angle of the first communication base station device in the at least one third video frame is detected to obtain the first pitch angle of the first communication base station device.

6. The method according to claim 5, characterized in that, The step of determining at least one third video frame among the plurality of video frames based on the detection confidence information includes: If the detection confidence value corresponding to the fourth video frame is greater than or equal to the first preset confidence value, the fourth video frame is determined as the third video frame, wherein the fourth video frame is any one of the plurality of video frames; or, If the detection confidence value corresponding to the fourth video frame is less than the first preset confidence value but greater than the second preset confidence value, tracking parameters are detected for the communication base station equipment included in the fourth video frame to obtain first tracking parameters. The first tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the communication base station equipment included in the fourth video frame. Tracking parameters are detected for the first communication base station equipment included in any video frame other than the fourth video frame in the first video to obtain second tracking parameters. The second tracking parameters include the OBB center coordinates, width and height dimensions, rotation angle, and equipment category of the first communication base station equipment. If the similarity between the first tracking parameters and the second tracking parameters is greater than a preset similarity threshold, the fourth video frame is determined as the third video frame.

7. A pitch angle detection device for a communication base station equipment, characterized in that, The device includes: The acquisition module is used to acquire a first video, which is a video obtained by shooting around the target base station, and the first video includes an image of a first communication base station device set up at the target base station. The detection module is used to detect the pitch angle of the first communication base station device in the first video based on the preset directional bounding box OBB algorithm, and obtain the first pitch angle of the first communication base station device. The first pitch angle is used to indicate the size of the angle between the first communication base station device and the reference direction. The calculation module is used to calculate N second pitch angles based on the hypotenuse information of the first communication base station device displayed in N consecutive video frames in the first video. Each video frame in the N consecutive video frames includes the first communication base station device. The second pitch angle is used to indicate the angle between the first communication base station device and the reference direction in the corresponding video frame. N is an integer greater than 2. The correction module is used to correct the first pitch angle based on the N second pitch angles respectively, so as to obtain N effective angles that correspond one-to-one with the N second pitch angles; The determining module is used to determine the third pitch angle of the first communication base station device based on the N effective angles.

8. An electronic device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When executed by the processor, the computer program implements the steps of the elevation angle detection method for a communication base station device as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the elevation angle detection method for the communication base station equipment as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The method includes computer instructions that, when executed by a processor, implement the steps of the elevation angle detection method for a communication base station device as described in any one of claims 1 to 6.