Antenna support frame control method and system based on image detection in electromagnetic environment

By automatically adjusting the antenna support frame using image detection technology in an electromagnetic environment, the problems of inaccurate and low efficiency in traditional methods are solved, and antenna regulation with higher accuracy and efficiency are achieved.

CN119447810BActive Publication Date: 2025-03-07XIAN YOURTEST TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510024989.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-03-07
Estimated Expiration
2045-01-08

AI Technical Summary

Technical Problem

In an electromagnetic environment, the traditional antenna support frame control method is not accurate enough due to electromagnetic noise interference, and the manual adjustment efficiency is low.

Method used

The antenna support frame control method based on image detection in an electromagnetic environment is adopted. By constructing a support frame control system, the camera is used to automatically take pictures, the antenna operation image is obtained, the grayscale conversion and key part recognition is performed, the target support frame image and the target antenna image are determined, the signal reception stability is evaluated, and the image is automatically adjusted based on the image information.

Benefits of technology

It improves the accuracy and efficiency of antenna support frame regulation, reduces the impact of electromagnetic interference, and achieves higher quality signal reception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119447810B_ABST
    Figure CN119447810B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of antenna image processing technology, and is a method and system for controlling an antenna support frame based on image detection in an electromagnetic environment, comprising: constructing a support frame control system, using the support frame control system to obtain an original received signal set and an antenna operation image, identifying the antenna key parts of the antenna operation image to obtain a candidate grayscale image group, determining a target support frame image and a target antenna image in the candidate grayscale image group, and obtaining a signal stability factor based on the original received signal set. If the signal stability factor is less than a standard stability factor, the antenna azimuth is controlled to obtain an adjustable support frame, and the above steps are repeated until the signal stability factor is not less than the standard stability factor. The present invention can improve the accuracy and efficiency of antenna support frame control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of antenna image processing, and in particular to an antenna support frame control method and system based on image detection in an electromagnetic environment. Background Art

[0002] In modern communication systems, antennas are devices that transmit and receive wireless signals, and their performance directly affects the communication quality. Antenna support frames are key structures for fixing and adjusting the antenna position, and their control accuracy is crucial to the antenna's working performance. Therefore, it is particularly important to accurately control the antenna support frame to adapt to different environments and signal requirements.

[0003] The main steps to achieve the control of the antenna support frame are: using sensors to detect the current height and polarization azimuth of the antenna, and based on the current height and polarization azimuth of the antenna, manually adjusting the height and polarization azimuth of the antenna support frame. In an electromagnetic environment, the data collected by the sensor will be interfered by electromagnetic noise, which makes this method less accurate in controlling the antenna. At the same time, manual adjustment will also reduce the efficiency of antenna support frame control. Summary of the invention

[0004] The present invention provides an antenna support frame control method and system based on image detection in an electromagnetic environment, the main purpose of which is to improve the accuracy and efficiency of antenna support frame control.

[0005] To achieve the above object, the present invention provides an antenna support frame control method based on image detection in an electromagnetic environment, comprising:

[0006] Constructing a support frame control system, wherein the support frame control system includes: an antenna support frame, a slidable lever and a shooting camera, wherein the antenna support frame is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support frame, and the shooting camera can shoot a panoramic image of the antenna support frame;

[0007] receiving an antenna control instruction, starting a support frame control system based on the antenna control instruction, and performing a signal reception test using the support frame control system to obtain an original received signal set, and after the step of performing the signal reception test is completed, automatically photographing the antenna support frame using a camera to obtain an antenna operation image;

[0008] Performing grayscale conversion on the antenna operation image to obtain a grayscale antenna image, and performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group;

[0009] Determine a target support frame image and a target antenna image in the candidate grayscale image group;

[0010] Based on the original received signal set, the signal reception stability of the antenna support frame is evaluated to obtain the signal stability factor;

[0011] If the signal stability factor is less than the preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to adjust the support frame height and the polarization direction;

[0012] Based on adjusting the height of the support frame and adjusting the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjustable support frame;

[0013] The antenna support frame is updated by using the adjustment support frame, and the step of receiving the antenna control instruction is returned until the signal stability factor is not less than the standard stability factor, thereby completing the antenna support frame control based on image detection in the electromagnetic environment.

[0014] Optionally, the performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group includes:

[0015] Preliminarily dividing the grayscale antenna image to obtain a divided grayscale image group, and sequentially extracting divided grayscale images from the divided grayscale image group;

[0016] identifying a contact grayscale image group of divided grayscale images in the divided grayscale image group;

[0017] For each contact grayscale image in the contact grayscale image group, perform the following steps:

[0018] Calculating a grayscale contrast factor between the divided grayscale image and the contact grayscale image, and determining whether the grayscale contrast factor is greater than a preset standard contrast factor;

[0019] If the grayscale contrast factor is not greater than the standard contrast factor, the divided grayscale image is divided twice to obtain a secondary divided image group, and secondary divided images are sequentially extracted from the secondary divided image group;

[0020] Using the secondary divided image to update the divided grayscale image, and returning to the step of identifying the contact grayscale image group of the divided grayscale image in the divided grayscale image group, until the area of ​​the divided grayscale image is not greater than a preset minimum image area;

[0021] If the grayscale contrast factor is greater than the standard contrast factor, the average divided grayscale value of the divided grayscale image is calculated, and when the average divided grayscale value is greater than the preset maximum background grayscale value, the divided grayscale image is recorded as a candidate grayscale image;

[0022] The candidate grayscale images are aggregated to obtain a candidate grayscale image group.

[0023] Optionally, the calculating of the grayscale contrast factor between the divided grayscale image and the contact grayscale image includes:

[0024] Extracting a partitioning grayscale value set and a contact grayscale value set from the partitioning grayscale image and the contact grayscale image respectively, extracting partitioning grayscale values ​​in the partitioning grayscale value set in sequence, and calculating an average contact grayscale value of the contact grayscale value set;

[0025] According to the divided grayscale value and the average contact grayscale value, the single-point grayscale contrast value is calculated, wherein the single-point grayscale contrast value is expressed as:

[0026] ,

[0027] in, Represents the single point grayscale contrast value, Represents the grayscale value of the division, represents the average contact gray value;

[0028] The single-point grayscale contrast values ​​are summarized to obtain a single-point grayscale contrast value set, and based on the single-point grayscale contrast value set, multi-point grayscale weighted contrast is performed to obtain a grayscale contrast factor.

[0029] Optionally, performing multi-point grayscale weighted contrast based on the single-point grayscale contrast value set to obtain a grayscale contrast factor includes:

[0030] A grayscale difference threshold is set, and a contrast weight function is constructed based on the grayscale difference threshold, wherein the contrast weight function includes a grayscale difference variable, and the contrast weight function is expressed as:

[0031] ,

[0032] in, represents the contrast weight function, represents the grayscale difference variable, represents the grayscale difference threshold;

[0033] The contrast weight function is used to weight each single-point grayscale contrast value in the single-point grayscale contrast value set to obtain a weighted contrast value set, wherein a weighted contrast value in the weighted contrast value set corresponds to a single-point grayscale contrast value in the single-point grayscale contrast value set, and the weighted contrast value set is expressed as:

[0034] ,

[0035] ,

[0036] in, represents the weighted contrast value set, Represents the first weighted contrast value in the weighted contrast value set, Indicates A weighted comparison value, Indicates A weighted comparison value, represents the number of weighted contrast values ​​in the weighted contrast value set, Indicates the first A single point grayscale contrast value, The grayscale difference variable is The comparison weight function of

[0037] The average weighted contrast value in the weighted contrast value set is calculated, and the average weighted contrast value is recorded as the grayscale contrast factor.

[0038] Optionally, performing secondary division on the divided grayscale image to obtain the secondary divided image includes:

[0039] Extract the maximum single point contrast value and the minimum single point contrast value from the single point grayscale contrast value set;

[0040] In the contact grayscale image, the maximum contrast pixel point and the minimum contrast pixel point corresponding to the maximum single point contrast value and the minimum single point contrast value are identified respectively;

[0041] Based on the maximum contrast pixel point and the minimum contrast pixel point, a pixel segmentation line is constructed;

[0042] The divided grayscale image is divided by using pixel dividing lines to obtain a secondary divided image group, wherein the secondary divided image group includes two secondary divided images.

[0043] Optionally, determining a target support frame image and a target antenna image in the candidate grayscale image group includes:

[0044] Manually photographing the support frame control system using a photographing camera to obtain a comparison antenna image, wherein in the step of manually photographing, the distance between the photographing camera and the support frame control system is the same as the distance between the photographing camera and the support frame control system in the step of automatically photographing;

[0045] Performing manual antenna recognition in the comparison antenna image to obtain a standard support frame image and a standard antenna image;

[0046] The standard support frame area ratio and the standard support frame gray ratio of the standard support frame image in the control antenna image, and the standard antenna area ratio and the standard antenna gray ratio of the standard antenna image in the control antenna image are calculated respectively, wherein the standard support frame area ratio, the standard support frame gray ratio, the standard antenna area ratio and the standard antenna gray ratio are expressed as follows:

[0047] ,

[0048] ,

[0049] in, Indicates the proportion of standard support frame area, represents the area of ​​the standard support frame image, represents the area of ​​the control antenna image, represents the standard antenna area ratio, represents the area of ​​the standard antenna image, Indicates the grayscale ratio of the standard support frame, Indicates the first The gray value of a pixel, Represents the number of pixels in the standard support frame image, Indicates the comparison antenna image The gray value of a pixel, Represents the number of pixels in the control antenna image, Indicates the grayscale ratio of the standard antenna. Indicates the standard antenna image. The gray value of a pixel, Represents the number of pixels in the standard antenna image;

[0050] According to the standard support frame area ratio, the standard support frame grayscale ratio, the standard antenna area ratio and the standard antenna grayscale ratio, a target support frame image and a target antenna image are identified in the candidate grayscale image group.

[0051] Optionally, identifying a target support frame image and a target antenna image in the candidate grayscale image group includes:

[0052] Extract candidate grayscale images in the candidate grayscale image group in sequence, and calculate the to-be-confirmed area ratio and the to-be-confirmed grayscale ratio of the candidate grayscale images and the grayscale antenna image;

[0053] According to the proportion of the area to be confirmed and the proportion of the grayscale to be confirmed, the similarity value of the support frame and the similarity value of the antenna are calculated using the following formula:

[0054] ,

[0055] ,

[0056] in, represents the support frame similarity value, Indicates the proportion of area to be confirmed. Indicates the grayscale ratio to be confirmed. represents the antenna similarity value;

[0057] Summarize the support frame similarity value and antenna similarity value of each candidate grayscale image respectively to obtain a support frame similarity value set and an antenna similarity value set;

[0058] The target support frame similarity value is extracted from the support frame similarity value set and the target antenna similarity value is extracted from the antenna similarity value set, and in the candidate grayscale image group, the target support frame image and the target antenna image corresponding to the target support frame similarity value and the target antenna similarity value are respectively identified.

[0059] Optionally, the performing signal reception stability evaluation on the antenna support frame to obtain a signal stability factor includes:

[0060] Determine the signal receiving time of each original received signal in the original received signal set to obtain a signal receiving time set, identify the original signal strength of each original received signal in the original received signal set to obtain an original signal strength set, wherein the original signal strength is the voltage amplitude of the original received signal;

[0061] Calculate the average signal strength of the original signal strength set;

[0062] According to the preset detection time precision, the signal receiving time set is divided into time lengths to obtain a unit receiving time group set, wherein the number of unit receiving time groups in the unit receiving time group set is the same as the detection time precision;

[0063] The original signal strength set is divided into time periods based on the unit receiving time group set to obtain a unit signal strength group set. Unit signal strength groups are sequentially extracted from the unit signal strength group set. Based on the average signal strength, the unit signal strength group is subjected to stability analysis to obtain a unit stability factor, wherein the unit stability factor is expressed as:

[0064] ,

[0065] in, represents the unit stability factor, Indicates the number of unit signal strengths in the unit signal strength group. Indicates the unit signal strength group Unit signal strength, represents the average signal strength;

[0066] The unit stability factors are summarized to obtain a unit stability factor set, an average stability factor of the unit stability factor set is calculated, and the average stability factor is used as the signal stability factor.

[0067] Optionally, the antenna azimuth control is performed based on the target support frame image and the target antenna image to adjust the support frame height and adjust the polarization direction, including:

[0068] Respectively identifying the current support frame height of the target support frame image and the current polarization direction of the target antenna image;

[0069] Query the historical support frame height and historical polarization direction;

[0070] According to the historical support frame height, historical polarization direction, signal stability factor and standard stability factor, the current support frame height and current polarization direction are adjusted to obtain an adjusted support frame height and an adjusted polarization direction, wherein the adjusted support frame height and the adjusted polarization direction are respectively expressed as:

[0071] ,

[0072] ,

[0073] in, Indicates adjusting the height of the support frame. Indicates the current support frame height. represents the historical support frame height, represents the standard stability factor, represents the signal stability factor, Indicates adjusting the polarization direction, Indicates the current polarization direction, Indicates the historical polarization direction.

[0074] To achieve the above object, the present invention also provides an antenna support frame control system based on image detection in an electromagnetic environment, comprising:

[0075] An antenna support shooting module is used to construct a support control system, wherein the support control system includes: an antenna support, a slidable lever and a shooting camera, wherein the antenna support is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support, and the shooting camera can shoot a panoramic image of the antenna support;

[0076] a candidate image recognition module, which is used to receive an antenna control instruction, start a support frame control system based on the antenna control instruction, and use the support frame control system to perform a signal reception test to obtain an original received signal set, and after the step of performing the signal reception test is completed, automatically photograph the antenna support frame using a camera to obtain an antenna operation image, perform grayscale conversion on the antenna operation image to obtain a grayscale antenna image, perform antenna key part recognition on the grayscale antenna image to obtain a candidate grayscale image group;

[0077] A signal stability evaluation module is used to determine the target support frame image and the target antenna image in the candidate grayscale image group, and to evaluate the signal reception stability of the antenna support frame according to the original received signal set to obtain a signal stability factor. If the signal stability factor is less than a preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to obtain an adjusted support frame height and an adjusted polarization direction;

[0078] The antenna support adjustment module is used to control the azimuth of the antenna support frame based on adjusting the support frame height and adjusting the polarization direction, obtain the adjusted support frame, update the antenna support frame using the adjusted support frame, and return to the step of receiving the antenna control instruction until the signal stability factor is not less than the standard stability factor.

[0079] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0080] a memory storing at least one instruction; and

[0081] The processor executes the instructions stored in the memory to implement the above-mentioned antenna support frame control method based on image detection in an electromagnetic environment.

[0082] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned antenna support frame control method based on image detection in an electromagnetic environment.

[0083] In order to solve the problems described in the background technology, the present invention first constructs a support frame control system, and realizes precise control of the antenna support frame and real-time acquisition of panoramic images by constructing a control system integrating an antenna support frame, a slidable lever and a shooting camera, thereby providing a basis for subsequent signal reception testing and image analysis, and then obtaining the original received signal set, which provides a data basis for subsequent signal stability evaluation. At the same time, by shooting the antenna operation image, intuitive numerical information is provided for the identification of key parts of the antenna and subsequent antenna control. In addition, since traditional methods use a large number of capacitive or inductive sensors to measure the height and polarization direction of the antenna, and the electromagnetic environment during antenna reception will produce strong electromagnetic interference to the sensor measurement, thereby reducing the accuracy of antenna control, this step uses image shooting instead of sensors to measure the height and polarization direction, which greatly improves the accuracy of antenna control. By identifying the candidate antenna image group in the grayscale antenna image, the image area that needs to be image recognized can be quickly located, the image processing process can be simplified, and the efficiency of antenna control can be improved. By determining the target support frame image and the target antenna image in the candidate grayscale image group, the antenna component that needs to be controlled can be accurately located, providing a specific operation object for antenna control. Furthermore, by calculating the signal stability factor, the signal reception performance of the antenna can be quantified, providing an intuitive numerical basis for whether antenna control is required. Finally, according to the adjustment of the support frame height and the adjustment of the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjustable support frame. This step realizes the adjustment of the antenna height and polarization azimuth, and because the polarization azimuth is adjusted by pneumatic drive, this avoids the electromagnetic interference of the electric drive on the antenna signal reception, further improves the quality of the antenna reception signal, and thus improves the efficiency of antenna control. Therefore, the present invention can improve the accuracy and efficiency of antenna support frame control. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] Figure 1 A schematic flow chart of an antenna support frame control method based on image detection in an electromagnetic environment provided by an embodiment of the present invention;

[0085] Figure 2 A functional module diagram of an antenna support frame control system based on image detection in an electromagnetic environment provided by an embodiment of the present invention;

[0086] Figure 3 A schematic structural diagram of an electronic device for implementing the antenna support frame control method based on image detection in an electromagnetic environment provided by an embodiment of the present invention.

[0087] Description of reference numerals:

[0088] 1. Electronic device; 10. Processor; 11. Memory; 12. Bus.

[0089] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0090] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0091] The embodiment of the present application provides an antenna support frame control method based on image detection in an electromagnetic environment. The execution subject of the antenna support frame control method based on image detection in an electromagnetic environment includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the antenna support frame control method based on image detection in an electromagnetic environment can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0092] Reference Figure 1 FIG. 1 is a flow chart of an antenna support frame control method based on image detection in an electromagnetic environment provided by an embodiment of the present invention. In this embodiment, the antenna support frame control method based on image detection in an electromagnetic environment includes:

[0093] S1. Construct a support frame control system, wherein the support frame control system includes: an antenna support frame, a slidable lever and a shooting camera, the antenna support frame is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support frame, and the shooting camera can capture a panoramic image of the antenna support frame.

[0094] It can be understood that the support frame control system refers to an integrated device for performing height control and polarization azimuth control on the antenna support frame, which includes: an antenna support frame, a sliding lever and a shooting camera, wherein the antenna support frame refers to an antenna combination that needs to be controlled, which can carry multiple antennas at the same time, and each antenna corresponds to a separate polarization rotation device. At the same time, by controlling the height of the antenna support frame, the height control of the multiple antennas it carries can be achieved.

[0095] It should be explained that the sliding lever refers to a vertical rod perpendicular to the horizontal plane, and the antenna support frame can slide freely on the sliding lever. The shooting camera refers to a device for shooting the antenna support frame. The shooting camera is installed directly in front of the antenna support frame, and the distance between the shooting camera and the antenna support frame can capture the panoramic view of the antenna support frame.

[0096] S2. Receive antenna control instructions, start the support frame control system based on the antenna control instructions, and use the support frame control system to perform a signal reception test to obtain an original received signal set, and after the step of performing the signal reception test is completed, use a shooting camera to automatically shoot the antenna support frame to obtain an antenna operation image.

[0097] It can be understood that the antenna control instruction refers to the instruction issued by the relevant operator for adjusting the angle of the antenna support frame and the polarization azimuth of the antenna, the original received signal refers to the signal received by the antenna support frame during the signal reception test, and the antenna operation image refers to the image of the antenna support frame taken after the signal reception test is completed, which image contains the height information of the antenna support frame and the polarization azimuth information of the antenna.

[0098] For example, Xiao Zhang is an antenna tester. One day, Xiao Zhang received an antenna control instruction and needed to adjust a certain antenna support frame so that the antenna support frame could better receive signals. So Xiao Zhang started the receiving power of the antenna support frame and used the antenna support frame to receive signals. Within a preset test duration, the antenna support frame received a total of multiple groups of signals, which are the original received signal sets. After the antenna support frame completed receiving the original received signal set, Xiao Zhang started the shooting camera and used the shooting camera to shoot the antenna support frame to obtain the antenna operation image.

[0099] S3. Perform grayscale conversion on the antenna operation image to obtain a grayscale antenna image, identify key antenna parts on the grayscale antenna image, and obtain a candidate grayscale image group.

[0100] It can be understood that the grayscale antenna image refers to the antenna operation image after grayscale space conversion, wherein the antenna operation image is an image in the RGB color space. In order to improve the efficiency of subsequent image processing, it is necessary to convert the antenna operation image in the RGB color space into a grayscale antenna image in the grayscale space. The candidate grayscale image group refers to the regional image in the grayscale antenna image used to represent various parts in the support frame control system, wherein the various parts include: the frame of the antenna support frame and the antenna contained in the antenna support frame, etc. Since there are a large number of background area images in the grayscale antenna image, and these images do not contain any useful antenna orientation information, it is necessary to extract useful candidate grayscale image groups from the grayscale antenna image to improve the efficiency of subsequent processing.

[0101] In detail, the step of performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group includes:

[0102] Preliminarily dividing the grayscale antenna image to obtain a divided grayscale image group, and sequentially extracting divided grayscale images from the divided grayscale image group;

[0103] identifying a contact grayscale image group of divided grayscale images in the divided grayscale image group;

[0104] For each contact grayscale image in the contact grayscale image group, perform the following steps:

[0105] Calculating a grayscale contrast factor between the divided grayscale image and the contact grayscale image, and determining whether the grayscale contrast factor is greater than a preset standard contrast factor;

[0106] If the grayscale contrast factor is not greater than the standard contrast factor, the divided grayscale image is divided twice to obtain a secondary divided image group, and secondary divided images are sequentially extracted from the secondary divided image group; the divided grayscale image is updated using the secondary divided image, and the step of identifying the contact grayscale image group of the divided grayscale image in the divided grayscale image group is returned to until the area of ​​the divided grayscale image is not greater than the preset minimum image area;

[0107] If the grayscale contrast factor is greater than the standard contrast factor, the average divided grayscale value of the divided grayscale image is calculated, and when the average divided grayscale value is greater than the preset maximum background grayscale value, the divided grayscale image is recorded as a candidate grayscale image;

[0108] The candidate grayscale images are aggregated to obtain a candidate grayscale image group.

[0109] Exemplarily, a divided grayscale image is A, and then A is divided to obtain a divided grayscale image group: B, C, D, E. A divided grayscale image B is extracted from the divided grayscale images, and a contact grayscale image group that is in direct contact with the divided grayscale image B is identified in the divided grayscale image group as: C, D. After calculation, it is found that the grayscale comparison factor between B and C is greater than the standard comparison factor, while the grayscale comparison factor between B and D is not greater than the standard comparison factor. Then, D is divided twice at this time to obtain a secondary divided image group: D1 and D2. Then, a secondary divided image D1 is extracted from the secondary divided image group, and D1 at this time is used as the divided grayscale image, and the step of identifying the contact grayscale image group of the divided grayscale image in the divided grayscale image group is repeated. It should be noted that after completing the return operation on D1, the same operation as D1 needs to be performed on D2.

[0110] It can be understood that the divided grayscale image refers to the grayscale antenna image after division, and the detailed steps of preliminary division of the grayscale antenna image are: manually setting the number of divided images, and evenly dividing the grayscale antenna image based on the number of divided images to obtain a divided grayscale image group, wherein the number of divided grayscale images in the divided grayscale image group is the number of divided images. The updating of the divided grayscale image refers to replacing the divided grayscale image in the step of "identifying the contact grayscale image group of the divided grayscale image in the divided grayscale image group" with the secondary divided image at this time.

[0111] It can be understood that the contact grayscale image refers to an image adjacent to the divided grayscale image in the divided grayscale image group, the grayscale contrast factor refers to a numerical value used to represent the degree of grayscale difference between the divided grayscale image and the contact grayscale image, and the standard contrast factor refers to an artificially set constant. When the grayscale contrast factor is not greater than the standard contrast factor, it means that the grayscale difference between the divided grayscale image and the contact grayscale image is not large, that is, the divided grayscale image still contains a large amount of background area, and the key parts in the support frame control system are not highlighted, and secondary division is required. The detailed steps of the secondary division will be given later.

[0112] It should be explained that the secondary divided image refers to the divided grayscale image after division, the minimum image area refers to an artificially set area constant, which clarifies the area of ​​the divided grayscale image that cannot be divided again, the average divided grayscale value refers to the average value of the grayscale values ​​of each pixel in the divided grayscale image, and the maximum background grayscale value refers to an artificially set grayscale value constant, which is used to represent the maximum grayscale value in the background area. Since there are background images and key part images in the divided grayscale image that satisfies the grayscale contrast factor greater than the standard contrast factor, and the grayscale value of the background image is smaller than that of the key part image, the part of the divided grayscale image belonging to the background image can be eliminated by setting the maximum background grayscale value, and the obtained candidate grayscale images are all key part images.

[0113] In detail, the calculation of the grayscale contrast factor between the divided grayscale image and the contact grayscale image includes:

[0114] Extracting a partitioning grayscale value set and a contact grayscale value set from the partitioning grayscale image and the contact grayscale image respectively, extracting partitioning grayscale values ​​in the partitioning grayscale value set in sequence, and calculating an average contact grayscale value of the contact grayscale value set;

[0115] According to the divided grayscale value and the average contact grayscale value, the single-point grayscale contrast value is calculated, wherein the single-point grayscale contrast value is expressed as:

[0116] ,

[0117] in, Represents the single point grayscale contrast value, Represents the grayscale value of the division, represents the average contact gray value;

[0118] The single-point grayscale contrast values ​​are summarized to obtain a single-point grayscale contrast value set, and based on the single-point grayscale contrast value set, multi-point grayscale weighted contrast is performed to obtain a grayscale contrast factor.

[0119] It can be understood that the partitioned grayscale value set refers to the set of grayscale values ​​of each pixel in the partitioned grayscale image, the contact grayscale value set refers to the set of grayscale values ​​of each pixel in the contact grayscale image, the average contact grayscale value refers to the average value of each contact grayscale value in the contact grayscale value set, and the single-point grayscale contrast value refers to a numerical value used to represent the degree of grayscale similarity between a single pixel in the partitioned grayscale image and the contact grayscale image.

[0120] Specifically, the grayscale contrast factor is obtained by performing multi-point weighted grayscale contrast based on a single-point grayscale contrast value set, including:

[0121] A grayscale difference threshold is set, and a contrast weight function is constructed based on the grayscale difference threshold, wherein the contrast weight function includes a grayscale difference variable, and the contrast weight function is expressed as:

[0122] ,

[0123] in, represents the contrast weight function, represents the grayscale difference variable, represents the grayscale difference threshold;

[0124] The contrast weight function is used to weight each single-point grayscale contrast value in the single-point grayscale contrast value set to obtain a weighted contrast value set, wherein a weighted contrast value in the weighted contrast value set corresponds to a single-point grayscale contrast value in the single-point grayscale contrast value set, and the weighted contrast value set is expressed as:

[0125] ,

[0126] ,

[0127] in, represents the weighted contrast value set, Represents the first weighted contrast value in the weighted contrast value set, Indicates A weighted comparison value, Indicates A weighted comparison value, represents the number of weighted contrast values ​​in the weighted contrast value set, Represents the first A single point grayscale contrast value, The grayscale difference variable is The comparison weight function of

[0128] The average weighted contrast value in the weighted contrast value set is calculated, and the average weighted contrast value is recorded as the grayscale contrast factor.

[0129] It should be explained that the grayscale difference threshold refers to an artificially set constant, which is used to select the independent variable in the contrast weight function. The contrast weight function refers to a function that numerically weights pixel points. The greater the grayscale difference between a certain pixel point and the contact grayscale image, the contrast weight function will assign a larger numerical weight to the single-point grayscale contrast value corresponding to the pixel point. This step is to increase the grayscale difference value between the divided grayscale image and the contact grayscale image, so that the grayscale contrast between them is more obvious.

[0130] Furthermore, the grayscale difference variable refers to the independent variable in the contrast weight function, the weighted contrast value refers to the single-point grayscale ratio calculated by the contrast weight function, and the average weighted contrast value refers to the average value of all weighted contrast values ​​in the weighted contrast value set.

[0131] In detail, the step of performing secondary division on the divided grayscale image to obtain the secondary divided image includes:

[0132] Extract the maximum single point contrast value and the minimum single point contrast value from the single point grayscale contrast value set;

[0133] In the contact grayscale image, the maximum contrast pixel point and the minimum contrast pixel point corresponding to the maximum single point contrast value and the minimum single point contrast value are identified respectively;

[0134] Based on the maximum contrast pixel point and the minimum contrast pixel point, a pixel segmentation line is constructed;

[0135] The divided grayscale image is divided by using pixel dividing lines to obtain a secondary divided image group, wherein the secondary divided image group includes two secondary divided images.

[0136] It can be understood that the maximum single-point contrast value and the minimum single-point contrast value respectively refer to the maximum value and the minimum value in the single-point grayscale contrast value set, the maximum contrast pixel point and the minimum contrast pixel point respectively refer to the pixel points corresponding to the maximum single-point contrast value and the minimum single-point contrast value in the contact grayscale image, and the pixel dividing line refers to the straight line that will divide the grayscale image, and the pixel dividing line is the line between the maximum contrast pixel point and the minimum contrast pixel point.

[0137] S4. Determine a target support frame image and a target antenna image in the candidate grayscale image group.

[0138] It should be explained that the target support frame image refers to an image used to represent the support frame in the antenna support frame, and the height of the support frame in the grayscale antenna image can represent the actual height of the antenna support frame. The target antenna image refers to an image used to represent the antenna in the antenna support frame, and the antenna polarization direction in the image can represent the actual antenna polarization direction in the antenna support frame.

[0139] In detail, determining the target support frame image and the target antenna image in the candidate grayscale image group includes:

[0140] Manually photographing the support frame control system using a photographing camera to obtain a comparison antenna image, wherein in the step of manually photographing, the distance between the photographing camera and the support frame control system is the same as the distance between the photographing camera and the support frame control system in the step of automatically photographing;

[0141] Performing manual antenna recognition in the comparison antenna image to obtain a standard support frame image and a standard antenna image;

[0142] The standard support frame area ratio and the standard support frame gray ratio of the standard support frame image in the control antenna image, and the standard antenna area ratio and the standard antenna gray ratio of the standard antenna image in the control antenna image are calculated respectively, wherein the standard support frame area ratio, the standard support frame gray ratio, the standard antenna area ratio and the standard antenna gray ratio are expressed as follows:

[0143] ,

[0144] ,

[0145] in, Indicates the proportion of standard support frame area, represents the area of ​​the standard support frame image, represents the area of ​​the control antenna image, represents the standard antenna area ratio, represents the area of ​​the standard antenna image, Indicates the grayscale ratio of the standard support frame, Indicates the first The gray value of a pixel, Represents the number of pixels in the standard support frame image, Indicates the comparison antenna image The gray value of a pixel, Represents the number of pixels in the control antenna image, Indicates the grayscale ratio of the standard antenna. Indicates the standard antenna image. The gray value of a pixel, Represents the number of pixels in the standard antenna image;

[0146] According to the standard support frame area ratio, the standard support frame grayscale ratio, the standard antenna area ratio and the standard antenna grayscale ratio, a target support frame image and a target antenna image are identified in the candidate grayscale image group.

[0147] It can be understood that the control antenna image refers to an image taken manually of the support frame control system. In the manual shooting step, the distance between the shooting camera and the support frame control system is the same as the distance between the shooting camera and the support frame control system in the monitoring step. This is to ensure that the antenna information displayed in the control antenna image is the same as the antenna information taken in the signal reception test step. The standard support frame image and the standard antenna image respectively refer to an image of the support frame in the antenna support frame and an image of the antenna in the antenna support frame, and the identification method is manual identification.

[0148] Exemplarily, Xiao Zhang takes a picture of a reference antenna image, and then Xiao Zhang marks in the computer the standard support frame image used to represent the frame in the antenna support frame and the standard antenna image used to represent the antenna in the antenna support frame.

[0149] In detail, the step of identifying a target support frame image and a target antenna image in a candidate grayscale image group includes:

[0150] Extract candidate grayscale images in the candidate grayscale image group in sequence, and calculate the to-be-confirmed area ratio and the to-be-confirmed grayscale ratio of the candidate grayscale images and the grayscale antenna image;

[0151] According to the proportion of the area to be confirmed and the proportion of the grayscale to be confirmed, the similarity value of the support frame and the similarity value of the antenna are calculated using the following formula:

[0152] ,

[0153] ,

[0154] in, represents the support frame similarity value, Indicates the proportion of area to be confirmed. Indicates the grayscale ratio to be confirmed. represents the antenna similarity value;

[0155] Summarize the support frame similarity value and antenna similarity value of each candidate grayscale image respectively to obtain a support frame similarity value set and an antenna similarity value set;

[0156] The target support frame similarity value is extracted from the support frame similarity value set and the target antenna similarity value is extracted from the antenna similarity value set, and in the candidate grayscale image group, the target support frame image and the target antenna image corresponding to the target support frame similarity value and the target antenna similarity value are respectively identified.

[0157] It can be understood that the area ratio to be confirmed refers to the area ratio between the candidate grayscale image and the grayscale antenna image, and the grayscale ratio to be confirmed refers to the grayscale value ratio between the candidate grayscale image and the grayscale antenna image. Their calculation methods are the same as the above-mentioned standard antenna area ratio and standard antenna grayscale ratio, and they will not be repeated here. The support frame similarity value refers to a numerical value used to represent the similarity between the image content contained in the candidate grayscale image and the antenna support frame frame, and the antenna similarity value refers to a numerical value used to represent the similarity between the image content contained in the candidate grayscale image and the antenna in the antenna support frame.

[0158] Furthermore, the target support frame similarity value refers to the smallest value in the support frame similarity value set, and the target antenna similarity value refers to the smallest value in the antenna similarity value set.

[0159] S5. According to the original received signal set, the signal reception stability of the antenna support frame is evaluated to obtain a signal stability factor.

[0160] It can be understood that the signal stability factor refers to the value of the reception stability when the antenna support receives the signal under the current antenna height and antenna polarization direction.

[0161] In detail, the signal reception stability evaluation of the antenna support frame to obtain the signal stability factor includes:

[0162] Determine the signal receiving time of each original received signal in the original received signal set to obtain a signal receiving time set, identify the original signal strength of each original received signal in the original received signal set to obtain an original signal strength set, wherein the original signal strength is the voltage amplitude of the original received signal;

[0163] Calculate the average signal strength of the original signal strength set;

[0164] According to the preset detection time precision, the signal receiving time set is divided into time lengths to obtain a unit receiving time group set, wherein the number of unit receiving time groups in the unit receiving time group set is the same as the detection time precision;

[0165] The original signal strength set is divided into time periods based on the unit receiving time group set to obtain a unit signal strength group set. Unit signal strength groups are sequentially extracted from the unit signal strength group set. Based on the average signal strength, the unit signal strength group is subjected to stability analysis to obtain a unit stability factor, wherein the unit stability factor is expressed as:

[0166] ,

[0167] in, represents the unit stability factor, Indicates the number of unit signal strengths in the unit signal strength group. Indicates the unit signal strength group Unit signal strength, represents the average signal strength;

[0168] The unit stability factors are summarized to obtain a unit stability factor set, an average stability factor of the unit stability factor set is calculated, and the average stability factor is used as the signal stability factor.

[0169] It can be understood that the average signal strength refers to the average value of all original signal strengths in the original signal strength set, and the detection time accuracy refers to an artificially set constant, which represents the number of unit receiving time groups for subsequent time division. The unit receiving time group refers to the signal receiving time set after time division. The detailed steps for time division are: divide the signal receiving time set into a parts, where a represents the detection time accuracy.

[0170] For example, a signal receiving time set is: {20min10s, 20min20s, 20min30s, 20min40s}, and the detection time accuracy is currently set to 2. Then the signal receiving time set needs to be evenly divided into two unit receiving time groups, and each unit receiving time group is represented as: {20min10s, 20min20s}, {20min30s, 20min40s}.

[0171] It should be explained that the unit signal strength group refers to the original signal strength set after division, wherein the signal reception time of each unit signal strength in the unit signal strength group corresponds one-to-one to the unit reception time in the unit reception time group, and the unit stability factor refers to a numerical value used to represent the signal stability degree in the unit signal strength group.

[0172] S6. If the signal stability factor is less than the preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to adjust the support frame height and the polarization direction.

[0173] It can be understood that the standard stability factor refers to an artificially set constant, and the adjustment of the support frame height and the adjustment of the polarization direction refer to the adjusted antenna height and antenna polarization direction respectively.

[0174] In detail, the antenna azimuth control is performed based on the target support frame image and the target antenna image to adjust the support frame height and adjust the polarization direction, including:

[0175] Respectively identifying the current support frame height of the target support frame image and the current polarization direction of the target antenna image;

[0176] Query the historical support frame height and historical polarization direction;

[0177] According to the historical support frame height, historical polarization direction, signal stability factor and standard stability factor, the current support frame height and current polarization direction are adjusted to obtain an adjusted support frame height and an adjusted polarization direction, wherein the adjusted support frame height and the adjusted polarization direction are respectively expressed as:

[0178] ,

[0179] ,

[0180] in, Indicates adjusting the height of the support frame. Indicates the current support frame height. represents the historical support frame height, represents the standard stability factor, represents the signal stability factor, Indicates adjusting the polarization direction, Indicates the current polarization direction, Indicates the historical polarization direction.

[0181] It can be understood that the current support frame height refers to the antenna height of the current antenna support frame, and the current polarization direction refers to the antenna polarization direction of the current antenna support frame, wherein the detailed steps for identifying the current support frame height and the current polarization direction are as follows: first, a coordinate system is constructed for the grayscale antenna image, wherein the origin is the lower left vertex of the grayscale antenna image, the horizontal axis is the horizontal direction, and the vertical axis is the vertical direction, and edge recognition is performed on the target support frame image and the target antenna image, respectively, to obtain the support frame contour and the antenna contour, wherein edge recognition can be achieved through algorithms such as the Sobel operator and the Prewitt operator, and then the highest contour position of the support frame contour in the vertical direction in the target support frame image is identified, and in the grayscale image, the coordinate system is constructed. The highest contour coordinates of the highest contour position are determined in the grayscale antenna image, and the ordinate value of the highest contour coordinates is recorded as the current support frame height, the antenna contour pixel point set in the antenna contour is identified, and the antenna contour coordinate set in the antenna contour pixel point set is confirmed in the grayscale antenna image, the antenna contour coordinates are extracted in sequence in the antenna contour coordinate set, and the antenna contour coordinates are connected with the coordinate origin in the grayscale antenna image to obtain the contour line, and then the angle between the contour line and the longitudinal axis in the grayscale antenna image is calculated to obtain the single-point polarization direction, the single-point polarization direction of each antenna contour coordinate is summarized to obtain the single-point polarization direction set, and then the mode in the single-point polarization direction set is identified, and the mode is recorded as the current polarization direction.

[0182] It should be explained that in the above detailed steps of identifying the current support frame height and the current polarization direction, the distance interval unit of the horizontal axis and the vertical axis is the number of pixels, and when performing angle calculation, the accuracy of the angle calculation is set to 1 degree.

[0183] It can be understood that the historical support frame height and historical polarization direction respectively refer to the current support frame height and current polarization direction obtained at the time. When this is the first time to obtain the current support frame height and current polarization direction, the historical support frame height is the lowest height that the antenna support frame can reach, and the historical polarization direction is 0 degrees.

[0184] S7. Based on adjusting the height of the support frame and adjusting the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjusted support frame.

[0185] It should be explained that the adjustment support frame refers to the antenna support frame after azimuth adjustment, and the adjustment support frame is different from the antenna support frame only in the antenna height and the antenna polarization direction.

[0186] Furthermore, the azimuth adjustment of the antenna support frame includes: height adjustment and polarization azimuth adjustment, wherein the height adjustment can be achieved by electrically driving the antenna support frame to slide on a sliding lever, and the polarization azimuth adjustment can be achieved by a pneumatic motor built into the antenna support frame.

[0187] It should be noted that a pneumatic motor is placed inside the antenna support frame, and the pneumatic motor is connected to the polarization knob of the antenna through a gear transmission device. The polarization direction of the antenna can be changed through the pneumatic motor and the gear transmission device. Using a pneumatic motor to change the polarization direction of the antenna can avoid the influence of electromagnetic interference of the electric drive on the signal reception of the antenna.

[0188] S8. Update the antenna support frame by using the adjustment support frame, and return to the step of receiving the antenna control instruction until the signal stability factor is not less than the standard stability factor, thereby completing the antenna support frame control based on image detection in the electromagnetic environment.

[0189] It should be explained that when the signal stability factor is not less than the standard stability factor, it means that the height and polarization orientation of the antenna in the antenna support frame can meet the actual usage requirements and no adjustment is required.

[0190] In order to solve the problems described in the background technology, the present invention first constructs a support frame control system, and realizes precise control of the antenna support frame and real-time acquisition of panoramic images by constructing a control system integrating an antenna support frame, a slidable lever and a shooting camera, thereby providing a basis for subsequent signal reception testing and image analysis, and then obtaining the original received signal set, which provides a data basis for subsequent signal stability evaluation. At the same time, by shooting the antenna operation image, intuitive numerical information is provided for the identification of key parts of the antenna and subsequent antenna control. In addition, since traditional methods use a large number of capacitive or inductive sensors to measure the height and polarization direction of the antenna, and the electromagnetic environment during antenna reception will produce strong electromagnetic interference to the sensor measurement, thereby reducing the accuracy of antenna control, this step uses image shooting instead of sensors to measure the height and polarization direction, which greatly improves the accuracy of antenna control. By identifying the candidate antenna image group in the grayscale antenna image, the image area that needs to be image recognized can be quickly located, the image processing process can be simplified, and the efficiency of antenna control can be improved. By determining the target support frame image and the target antenna image in the candidate grayscale image group, the antenna component that needs to be controlled can be accurately located, providing a specific operation object for antenna control. Furthermore, by calculating the signal stability factor, the signal reception performance of the antenna can be quantified, providing an intuitive numerical basis for whether antenna control is required. Finally, according to the adjustment of the support frame height and the adjustment of the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjustable support frame. This step realizes the adjustment of the antenna height and polarization azimuth, and because the polarization azimuth is adjusted by pneumatic drive, this avoids the electromagnetic interference of the electric drive on the antenna signal reception, further improves the quality of the antenna reception signal, and thus improves the efficiency of antenna control. Therefore, the present invention can improve the accuracy and efficiency of antenna support frame control.

[0191] like Figure 2 , is a functional module diagram of an antenna support frame control system based on image detection in an electromagnetic environment provided by an embodiment of the present invention.

[0192] The antenna support frame control system 100 based on image detection in an electromagnetic environment of the present invention can be installed in an electronic device. According to the functions implemented, the antenna support frame control system 100 based on image detection in an electromagnetic environment may include an antenna support shooting module 101, a candidate image recognition module 102, a signal stability evaluation module 103 and an antenna support adjustment module 104. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, which are stored in the memory of the electronic device.

[0193] The antenna support shooting module 101 is used to construct a support control system, wherein the support control system includes: an antenna support, a slidable lever and a shooting camera, the antenna support is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support, and the shooting camera can shoot a panoramic image of the antenna support;

[0194] The candidate image recognition module 102 is used to receive an antenna control instruction, start a support frame control system based on the antenna control instruction, and use the support frame control system to perform a signal reception test to obtain an original received signal set, and after the step of performing the signal reception test is completed, use a camera to automatically shoot the antenna support frame to obtain an antenna operation image, perform grayscale conversion on the antenna operation image to obtain a grayscale antenna image, perform antenna key part recognition on the grayscale antenna image to obtain a candidate grayscale image group;

[0195] The signal stability evaluation module 103 is used to determine the target support frame image and the target antenna image in the candidate grayscale image group, and perform signal reception stability evaluation on the antenna support frame according to the original received signal set to obtain a signal stability factor. If the signal stability factor is less than a preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to obtain an adjusted support frame height and an adjusted polarization direction.

[0196] The antenna support adjustment module 104 is used to control the azimuth of the antenna support frame based on adjusting the support frame height and adjusting the polarization direction, obtain an adjusted support frame, update the antenna support frame using the adjusted support frame, and return to the step of receiving the antenna control instruction until the signal stability factor is not less than the standard stability factor.

[0197] In detail, the modules in the antenna support frame control system 100 based on image detection under electromagnetic environment in the embodiment of the present invention are used in the same manner as above. Figure 1 The antenna support frame control method based on image detection in an electromagnetic environment has the same technical means as described in the above, and can produce the same technical effects, so they will not be repeated here.

[0198] like Figure 3 , is a schematic diagram of the structure of an electronic device for implementing an antenna support frame control method based on image detection in an electromagnetic environment provided by an embodiment of the present invention.

[0199] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an antenna support frame control method program based on image detection in an electromagnetic environment.

[0200] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 also includes an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the antenna support frame control method program based on image detection in an electromagnetic environment, but also can be used to temporarily store data that has been output or is to be output.

[0201] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as a program for controlling the antenna support frame based on image detection in an electromagnetic environment, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0202] The bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0203] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0204] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management system, so that the power management system can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0205] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0206] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0207] The antenna support frame control method program based on image detection in an electromagnetic environment stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0208] Constructing a support frame control system, wherein the support frame control system includes: an antenna support frame, a slidable lever and a shooting camera, wherein the antenna support frame is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support frame, and the shooting camera can shoot a panoramic image of the antenna support frame;

[0209] receiving an antenna control instruction, starting a support frame control system based on the antenna control instruction, and performing a signal reception test using the support frame control system to obtain an original received signal set, and after the step of performing the signal reception test is completed, automatically photographing the antenna support frame using a camera to obtain an antenna operation image;

[0210] Performing grayscale conversion on the antenna operation image to obtain a grayscale antenna image, and performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group;

[0211] Determine a target support frame image and a target antenna image in the candidate grayscale image group;

[0212] Based on the original received signal set, the signal reception stability of the antenna support frame is evaluated to obtain the signal stability factor;

[0213] If the signal stability factor is less than the preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to adjust the support frame height and the polarization direction;

[0214] Based on adjusting the height of the support frame and adjusting the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjustable support frame;

[0215] The antenna support frame is updated by using the adjustment support frame, and the step of receiving the antenna control instruction is returned until the signal stability factor is not less than the standard stability factor, thereby completing the antenna support frame control based on image detection in the electromagnetic environment.

[0216] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 3 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0217] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or system that can carry the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0218] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0219] Constructing a support frame control system, wherein the support frame control system includes: an antenna support frame, a slidable lever and a shooting camera, wherein the antenna support frame is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support frame, and the shooting camera can shoot a panoramic image of the antenna support frame;

[0220] receiving an antenna control instruction, starting a support frame control system based on the antenna control instruction, and performing a signal reception test using the support frame control system to obtain an original received signal set, and after the step of performing the signal reception test is completed, automatically photographing the antenna support frame using a camera to obtain an antenna operation image;

[0221] Performing grayscale conversion on the antenna operation image to obtain a grayscale antenna image, and performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group;

[0222] Determine a target support frame image and a target antenna image in the candidate grayscale image group;

[0223] Based on the original received signal set, the signal reception stability of the antenna support frame is evaluated to obtain the signal stability factor;

[0224] If the signal stability factor is less than the preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to adjust the support frame height and the polarization direction;

[0225] Based on adjusting the height of the support frame and adjusting the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjustable support frame;

[0226] The antenna support frame is updated by using the adjustment support frame, and the step of receiving the antenna control instruction is returned until the signal stability factor is not less than the standard stability factor, thereby completing the antenna support frame control based on image detection in the electromagnetic environment.

[0227] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, and actual implementation may have other division methods.

[0228] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0229] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0230] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0231] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for controlling an antenna support frame based on image detection in an electromagnetic environment, characterized in that: The method comprises: Constructing a support frame control system, wherein the support frame control system includes: an antenna support frame, a slidable lever and a shooting camera, wherein the antenna support frame is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support frame, and the shooting camera can shoot a panoramic image of the antenna support frame; receiving an antenna control instruction, starting a support frame control system based on the antenna control instruction, and performing a signal reception test using the support frame control system to obtain an original received signal set, and after the step of performing the signal reception test is completed, automatically photographing the antenna support frame using a camera to obtain an antenna operation image; Performing grayscale conversion on the antenna operation image to obtain a grayscale antenna image, and performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group; Determine a target support frame image and a target antenna image in the candidate grayscale image group; Based on the original received signal set, the signal reception stability of the antenna support frame is evaluated to obtain the signal stability factor; If the signal stability factor is less than the preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to adjust the support frame height and the polarization direction; Based on adjusting the height of the support frame and adjusting the polarization direction, the antenna support frame is azimuthally controlled to obtain an adjustable support frame; The antenna support frame is updated by using the adjustment support frame, and the step of receiving the antenna control instruction is returned until the signal stability factor is not less than the standard stability factor, thereby completing the antenna support frame control based on image detection in the electromagnetic environment.

2. The antenna support frame control method based on image detection in an electromagnetic environment according to claim 1, characterized in that: The step of performing antenna key part identification on the grayscale antenna image to obtain a candidate grayscale image group includes: Preliminarily dividing the grayscale antenna image to obtain a divided grayscale image group, and sequentially extracting divided grayscale images from the divided grayscale image group; identifying a contact grayscale image group of divided grayscale images in the divided grayscale image group; For each contact grayscale image in the contact grayscale image group, perform the following steps: Calculating a grayscale contrast factor between the divided grayscale image and the contact grayscale image, and determining whether the grayscale contrast factor is greater than a preset standard contrast factor; If the grayscale contrast factor is not greater than the standard contrast factor, the divided grayscale image is divided twice to obtain a secondary divided image group, and secondary divided images are sequentially extracted from the secondary divided image group; Using the secondary divided image to update the divided grayscale image, and returning to the step of identifying the contact grayscale image group of the divided grayscale image in the divided grayscale image group, until the area of ​​the divided grayscale image is not greater than a preset minimum image area; If the grayscale contrast factor is greater than the standard contrast factor, the average divided grayscale value of the divided grayscale image is calculated, and when the average divided grayscale value is greater than the preset maximum background grayscale value, the divided grayscale image is recorded as a candidate grayscale image; The candidate grayscale images are aggregated to obtain a candidate grayscale image group.

3. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 2, characterized in that: The step of calculating the grayscale contrast factor between the divided grayscale image and the contact grayscale image includes: Extracting a partitioning grayscale value set and a contact grayscale value set from the partitioning grayscale image and the contact grayscale image respectively, extracting partitioning grayscale values ​​in the partitioning grayscale value set in sequence, and calculating an average contact grayscale value of the contact grayscale value set; According to the divided grayscale value and the average contact grayscale value, the single-point grayscale contrast value is calculated, wherein the single-point grayscale contrast value is expressed as: , in, Represents the single point grayscale contrast value, Represents the grayscale value of the division, represents the average contact gray value; The single-point grayscale contrast values ​​are summarized to obtain a single-point grayscale contrast value set, and based on the single-point grayscale contrast value set, multi-point grayscale weighted contrast is performed to obtain a grayscale contrast factor.

4. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 3 is characterized in that: The method of performing multi-point grayscale weighted contrast based on a single-point grayscale contrast value set to obtain a grayscale contrast factor includes: A grayscale difference threshold is set, and a contrast weight function is constructed based on the grayscale difference threshold, wherein the contrast weight function includes a grayscale difference variable, and the contrast weight function is expressed as: , in, represents the contrast weight function, represents the grayscale difference variable, represents the grayscale difference threshold; The contrast weight function is used to weight each single-point grayscale contrast value in the single-point grayscale contrast value set to obtain a weighted contrast value set, wherein a weighted contrast value in the weighted contrast value set corresponds to a single-point grayscale contrast value in the single-point grayscale contrast value set, and the weighted contrast value set is expressed as: , , in, represents the weighted contrast value set, Represents the first weighted contrast value in the weighted contrast value set, Indicates A weighted comparison value, Indicates A weighted comparison value, represents the number of weighted contrast values ​​in the weighted contrast value set, Represents the first A single point grayscale contrast value, The grayscale difference variable is The comparison weight function of The average weighted contrast value in the weighted contrast value set is calculated, and the average weighted contrast value is recorded as the grayscale contrast factor.

5. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 4, characterized in that: The step of performing secondary division on the divided grayscale image to obtain the secondary divided image comprises: Extract the maximum single point contrast value and the minimum single point contrast value from the single point grayscale contrast value set; In the contact grayscale image, the maximum contrast pixel point and the minimum contrast pixel point corresponding to the maximum single point contrast value and the minimum single point contrast value are identified respectively; Based on the maximum contrast pixel point and the minimum contrast pixel point, a pixel segmentation line is constructed; The divided grayscale image is divided by using pixel dividing lines to obtain a secondary divided image group, wherein the secondary divided image group includes two secondary divided images.

6. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 5, characterized in that: The step of determining a target support frame image and a target antenna image in the candidate grayscale image group includes: Manually photographing the support frame control system using a photographing camera to obtain a comparison antenna image, wherein in the step of manually photographing, the distance between the photographing camera and the support frame control system is the same as the distance between the photographing camera and the support frame control system in the step of automatically photographing; Performing manual antenna recognition in the comparison antenna image to obtain a standard support frame image and a standard antenna image; The standard support frame area ratio and the standard support frame gray ratio of the standard support frame image in the control antenna image, and the standard antenna area ratio and the standard antenna gray ratio of the standard antenna image in the control antenna image are calculated respectively, wherein the standard support frame area ratio, the standard support frame gray ratio, the standard antenna area ratio and the standard antenna gray ratio are expressed as follows: , , in, Indicates the proportion of standard support frame area, represents the area of ​​the standard support frame image, represents the area of ​​the control antenna image, represents the standard antenna area ratio, represents the area of ​​the standard antenna image, Indicates the grayscale ratio of the standard support frame, Indicates the first The gray value of a pixel, Represents the number of pixels in the standard support frame image, Indicates the comparison antenna image The gray value of a pixel, Represents the number of pixels in the control antenna image, Indicates the grayscale ratio of the standard antenna. Indicates the standard antenna image. The gray value of a pixel, Represents the number of pixels in the standard antenna image; According to the standard support frame area ratio, the standard support frame grayscale ratio, the standard antenna area ratio and the standard antenna grayscale ratio, a target support frame image and a target antenna image are identified in the candidate grayscale image group.

7. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 6, characterized in that: The step of identifying a target support frame image and a target antenna image in the candidate grayscale image group includes: Extract candidate grayscale images in the candidate grayscale image group in sequence, and calculate the to-be-confirmed area ratio and the to-be-confirmed grayscale ratio of the candidate grayscale images and the grayscale antenna image; According to the proportion of the area to be confirmed and the proportion of the grayscale to be confirmed, the similarity value of the support frame and the similarity value of the antenna are calculated using the following formula: , , in, represents the support frame similarity value, Indicates the proportion of area to be confirmed. Indicates the grayscale ratio to be confirmed. represents the antenna similarity value; Summarize the support frame similarity value and antenna similarity value of each candidate grayscale image respectively to obtain a support frame similarity value set and an antenna similarity value set; The target support frame similarity value is extracted from the support frame similarity value set and the target antenna similarity value is extracted from the antenna similarity value set, and in the candidate grayscale image group, the target support frame image and the target antenna image corresponding to the target support frame similarity value and the target antenna similarity value are respectively identified.

8. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 7, characterized in that: The signal reception stability evaluation of the antenna support frame to obtain the signal stability factor includes: Determine the signal receiving time of each original received signal in the original received signal set to obtain a signal receiving time set, identify the original signal strength of each original received signal in the original received signal set to obtain an original signal strength set, wherein the original signal strength is the voltage amplitude of the original received signal; Calculate the average signal strength of the original signal strength set; According to the preset detection time precision, the signal receiving time set is divided into time lengths to obtain a unit receiving time group set, wherein the number of unit receiving time groups in the unit receiving time group set is the same as the detection time precision; The original signal strength set is divided into time periods based on the unit receiving time group set to obtain a unit signal strength group set. Unit signal strength groups are sequentially extracted from the unit signal strength group set. Based on the average signal strength, the unit signal strength group is subjected to stability analysis to obtain a unit stability factor, wherein the unit stability factor is expressed as: , in, represents the unit stability factor, Indicates the number of unit signal strengths in the unit signal strength group. Indicates the unit signal strength group Unit signal strength, represents the average signal strength; The unit stability factors are summarized to obtain a unit stability factor set, an average stability factor of the unit stability factor set is calculated, and the average stability factor is used as the signal stability factor.

9. The antenna support frame control method based on image detection in an electromagnetic environment as claimed in claim 8, characterized in that: The antenna azimuth control is performed based on the target support frame image and the target antenna image to adjust the support frame height and the polarization direction, including: Respectively identifying the current support frame height of the target support frame image and the current polarization direction of the target antenna image; Query the historical support frame height and historical polarization direction; According to the historical support frame height, historical polarization direction, signal stability factor and standard stability factor, the current support frame height and current polarization direction are adjusted to obtain an adjusted support frame height and an adjusted polarization direction, wherein the adjusted support frame height and the adjusted polarization direction are respectively expressed as: , , in, Indicates adjusting the height of the support frame. Indicates the current support frame height. represents the historical support frame height, represents the standard stability factor, represents the signal stability factor, Indicates adjusting the polarization direction, Indicates the current polarization direction, Indicates the historical polarization direction.

10. An antenna support frame control system based on image detection in an electromagnetic environment, characterized in that: The system comprises: An antenna support shooting module is used to construct a support control system, wherein the support control system includes: an antenna support, a slidable lever and a shooting camera, wherein the antenna support is fixed on the slidable lever, the shooting camera is fixed in front of the antenna support, and the shooting camera can shoot a panoramic image of the antenna support; a candidate image recognition module, which is used to receive an antenna control instruction, start a support frame control system based on the antenna control instruction, and use the support frame control system to perform a signal reception test to obtain an original received signal set, and after the step of performing the signal reception test is completed, automatically photograph the antenna support frame using a camera to obtain an antenna operation image, perform grayscale conversion on the antenna operation image to obtain a grayscale antenna image, perform antenna key part recognition on the grayscale antenna image to obtain a candidate grayscale image group; A signal stability evaluation module is used to determine the target support frame image and the target antenna image in the candidate grayscale image group, and to evaluate the signal reception stability of the antenna support frame according to the original received signal set to obtain a signal stability factor. If the signal stability factor is less than a preset standard stability factor, the antenna azimuth is adjusted based on the target support frame image and the target antenna image to obtain an adjusted support frame height and an adjusted polarization direction; The antenna support adjustment module is used to control the azimuth of the antenna support frame based on adjusting the support frame height and adjusting the polarization direction, obtain the adjusted support frame, update the antenna support frame using the adjusted support frame, and return to the step of receiving the antenna control instruction until the signal stability factor is not less than the standard stability factor.

Citation Information

Patent Citations

  • Antenna orientation adjustment assistance device and antenna device installation method

    CN104662734A

  • Ice and snow environment-oriented unmanned aerial vehicle aerial photography natural driving data set construction method

    CN117636268A