WO2016187752A1 - Method and device for measuring antenna attitude - Google Patents

Method and device for measuring antenna attitude Download PDF

Info

Publication number
WO2016187752A1
WO2016187752A1 PCT/CN2015/079596 CN2015079596W WO2016187752A1 WO 2016187752 A1 WO2016187752 A1 WO 2016187752A1 CN 2015079596 W CN2015079596 W CN 2015079596W WO 2016187752 A1 WO2016187752 A1 WO 2016187752A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate system
antenna
points
dimensional coordinates
measured
Prior art date
Application number
PCT/CN2015/079596
Other languages
French (fr)
Chinese (zh)
Inventor
李明凡
李颖哲
耿卫东
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580080053.1A priority Critical patent/CN107534202B/en
Priority to PCT/CN2015/079596 priority patent/WO2016187752A1/en
Publication of WO2016187752A1 publication Critical patent/WO2016187752A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C1/00Measuring angles
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01QANTENNAS, i.e. RADIO AERIALS
    • H01Q1/00Details of, or arrangements associated with, antennas
    • H01Q1/12Supports; Mounting means

Definitions

  • the present invention relates to the field of antenna attitude measurement technologies, and in particular, to a method and apparatus for measuring an antenna attitude.
  • the attitude of the antenna has a very important influence on the coverage of the signal, and will further affect the quality of the network communication. Therefore, it is important to measure the attitude of the antenna.
  • the antenna attitude is typically reflected by antenna attitude information (eg, downtilt, azimuth, etc.).
  • the antenna attitude is generally measured by adding a measuring device to each antenna, wherein the measuring device mainly comprises a sensor, a bracket and a wireless communication module, and the bracket is used for fixedly connecting the antenna and the sensor;
  • the antenna attitude information is used to transmit the antenna attitude information measured by the sensor to the device that needs to acquire the antenna attitude information through the wireless communication module.
  • the measuring device Since there is a safety hazard in directly installing the measuring device for the already installed antenna, the measuring device is generally installed for each antenna in the process of producing the antenna; however, this causes the process of producing the antenna to be complicated.
  • Embodiments of the present invention provide a method and apparatus for measuring an attitude of an antenna, which is used to solve the problem in the prior art that a measuring device is required for each antenna in the process of producing an antenna, thereby causing a complicated process for producing an antenna. The problem.
  • a method of measuring an attitude of an antenna comprising:
  • each The image includes an antenna sub-image to be measured, I ⁇ 2, and I is an integer;
  • the determining, according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system, The posture information of the measurement antenna is described, including:
  • the reference coordinate system is a calibration plate coordinate system or a world coordinate system
  • the three-dimensional coordinates according to the points in the reference coordinate system and the coordinates of the points in the antenna coordinates Determining the attitude information of the antenna to be measured, including:
  • Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  • the reference coordinate system is a calibration plate coordinate system; each of the images further includes Marking a sub-image; obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ,include:
  • R w2a R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
  • the to-be-measured set is: the antenna to be measured A set of two endpoints of the long axis of the sub-image, or a set of points on the outer contour of the image of the antenna sub-image to be measured.
  • the posture information of the antenna to be measured includes the following information. At least one of: azimuth, tilt angle.
  • an apparatus comprising:
  • a first acquiring unit configured to acquire one image that is collected by the electronic device from the I viewpoints; wherein each of the images includes an antenna sub-image to be measured, I ⁇ 2, and I is an integer;
  • a second acquiring unit configured to acquire two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system; wherein the to-be-measured set is the antenna to be measured a collection of at least two points of a sub-image;
  • a third acquiring unit configured to acquire three-dimensional coordinates of the points in an antenna coordinate system
  • a determining unit configured to determine posture information of the antenna to be measured according to two-dimensional coordinates of the points in the electronic device coordinate system and three-dimensional coordinates of the points in the antenna coordinate system.
  • the determining unit is specifically configured to:
  • the reference coordinate system is a calibration plate coordinate system or a world coordinate system
  • the determining unit is specifically configured to:
  • Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  • the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; the determining The unit is specifically used to:
  • R w2a R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
  • the to-be-measured set is: the antenna to be measured A set of two endpoints of the long axis of the sub-image, or a set of points on the outer contour of the image of the antenna sub-image to be measured.
  • the posture information of the antenna to be measured includes the following information. At least one of: azimuth, tilt angle.
  • the method and device for measuring an attitude of an antenna obtains an image of an antenna that is correspondingly collected from an I viewpoint, wherein each image includes an image of the antenna to be measured; and the image is obtained according to the image.
  • 2D coordinates of at least two points of the antenna sub-image to be measured in the electronic device coordinate system according to the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system, Determine the attitude information of the antenna to be measured.
  • the technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna.
  • the root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
  • FIG. 1 is a flowchart of a method for measuring an attitude of an antenna according to Embodiment 1 of the present invention. schematic diagram;
  • FIG. 2 is a schematic flowchart of a method for measuring an attitude of an antenna according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic flowchart of a method for measuring an attitude of an antenna according to Embodiment 3 of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of a device according to Embodiment 5 of the present invention.
  • FIG. 1 is a schematic flowchart diagram of a method for measuring an attitude of an antenna according to an embodiment of the present invention.
  • the method shown in Figure 1 includes:
  • S101 Acquire an I image that is collected by the electronic device from one viewpoint; wherein each image includes an antenna sub-image to be measured, I ⁇ 2, and I is an integer.
  • the execution body of the method for measuring the attitude of the antenna provided by the embodiment of the present invention may be the “electronic device” described above, or may be a virtual device or a physical device different from the electronic device.
  • a camera is installed in the “electronic device” for collecting images; the electronic device may specifically be: a smart phone, a tablet computer, or the like.
  • Viewpoint refers to the location where the electronic device is located; the images acquired by the electronic device at the same viewpoint are the same image.
  • the "I viewpoint” can be selected by the user to enable the electronic device to capture any I position of the antenna sub-image to be measured.
  • the “I images acquired by the electronic device from the I viewpoints” specifically include: the electronic device collects one image from each viewpoint.
  • the electronic device collects 1 image correspondingly from one viewpoint through the camera.
  • the I viewpoints may be: 4-5 viewpoints uniformly arranged within a range of 45-60 degrees centered on a certain orientation of the antenna to be measured (for example, a long axis direction or a short axis direction, etc.) .
  • I can also determine I viewpoints by other means. It should be noted that the larger the value of I is, the more accurate the attitude information of the antenna to be measured is finally obtained.
  • S102 in each image of the I image, obtaining two-dimensional coordinates of each point in the set to be measured in an electronic device coordinate system; wherein the to-be-measured set is composed of at least two points of the antenna sub-image to be measured Collection.
  • the "to-be-measured set” may be a set of any number of points of the antenna sub-image to be measured; wherein the "point” here is an exponential point, similar to the "intersection", “vertex” in the mathematical sense, "Midpoint”, “Endpoint”, etc.
  • Each point in the set to be measured may be preset, or may be acquired by the execution subject in the process of executing the method.
  • the set to be measured is a set of two endpoints of a long axis of the antenna sub-image to be measured, or a set of points on an outer contour of the antenna sub-image to be measured.
  • it may also be a set of specific points on the outer contour of the antenna sub-image to be measured, or a set of two end points of the short axis of the antenna sub-image to be measured, and the like.
  • the “specific point” may be a preset point, for example, a point from a certain point on the outer contour of the antenna sub-image to be measured, an integral multiple of a preset distance from the point, and the like.
  • the “electronic device coordinate system” is a three-dimensional coordinate system formed by an image captured by the electronic device and an axis perpendicular to the two-dimensional plane; wherein the two-dimensional plane is x in the electronic device coordinate system, The plane in which the y-axis is located, the axis perpendicular to the two-dimensional plane is the z-axis in the electronic device coordinate system.
  • the "two-dimensional coordinates in the electronic device coordinate system” is the coordinates in the two-dimensional plane in which the image captured by the electronic device is located.
  • an electronic device such as a smart phone
  • the screen is a rectangle
  • the “electronic device coordinate system” may specifically be: the direction of the bottom edge of the electronic device screen to the right is the direction in which the x-axis is located, and the direction of the vertical direction of the screen is the direction in which the y-axis is located, and The direction in which the screen is vertically upward is the direction in which the z-axis is located.
  • the execution subject has been able to know information such as the shape of the antenna to be measured before performing the method.
  • the execution body may establish a three-dimensional model for the antenna to be measured according to information such as the shape of the antenna to be measured, and determine the antenna coordinate system.
  • any one of the three-dimensional models can be used as any coordinate axis of the antenna coordinate system; optionally, the direction of the long axis of the antenna sub-image to be measured in the three-dimensional model can be used as the antenna coordinate system.
  • the electronic device can directly obtain the three-dimensional coordinates of any point of the antenna to be measured in the antenna coordinate system.
  • S104 Determine posture information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
  • the attitude information of the antenna to be measured includes at least one of the following information: azimuth angle, tilt angle
  • S104 may include: Step 1): obtaining a rotation matrix between the antenna coordinate system and the world coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system. Step 2), according to the rotation matrix between the antenna coordinate system and the world coordinate system, obtain the attitude information of the antenna to be measured.
  • the foregoing step 1) may include: step 11), obtaining a coordinate between the antenna coordinate system and the electronic device coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system. a rotation matrix; step 12), acquiring a rotation matrix between the electronic device coordinate system and the world coordinate system; step 13), according to a rotation matrix between the antenna coordinate system and the electronic device coordinate system, and an electronic device coordinate system and a world coordinate system The rotation matrix gives the antenna coordinate system and the world coordinate system.
  • the implementation method of obtaining the rotation matrix between the antenna coordinate system and the electronic device coordinate system in step 11 refer to the calibration plate coordinate system obtained in the second embodiment to sit on the antenna.
  • the implementation of the step 12 can also refer to the second embodiment, and details are not described herein again.
  • the S104 may include: acquiring three-dimensional coordinates of each point in a reference coordinate system according to two-dimensional coordinates of each point in an electronic device coordinate system; wherein, the reference coordinate system is a calibration plate coordinate system or a world coordinate system; The attitude information of the antenna to be measured is determined according to the three-dimensional coordinates of each point in the reference coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system.
  • the "reference coordinate system” may be a world coordinate system or a user-defined coordinate system; the user-defined coordinate system is referred to herein as a calibration plate coordinate system.
  • the method for measuring an attitude of an antenna obtains an image of an antenna that is correspondingly collected from an I viewpoint, wherein each image includes an image of the antenna to be measured; and according to the image, the image to be measured is acquired.
  • the two-dimensional coordinates of the at least two points of the antenna sub-image in the electronic device coordinate system thereby determining the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system Measure the attitude information of the antenna.
  • the technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna.
  • the root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
  • the “reference coordinate system” in the first embodiment is the calibration plate coordinate system in this embodiment.
  • the position of the calibration plate has been set before the implementation of the embodiment; wherein the position of the calibration plate may be an image capable of simultaneously acquiring the antenna to be measured at one viewpoint (ie, the antenna sub-image to be measured) ) and any position of the image of the calibration plate (ie, the calibration plate sub-image).
  • the position of the calibration plate does not change. The closer the distance between the position where the calibration plate is located and the position where the antenna to be measured is located, the antenna to be measured obtained by the electronic device The more accurate the gesture information.
  • FIG. 2 is a schematic flowchart diagram of a method for measuring an attitude of an antenna according to an embodiment of the present invention.
  • the execution body of the method shown in FIG. 2 is an electronic device, and the method includes:
  • S201 Acquire one image correspondingly from one viewpoint; wherein, one image is acquired from each viewpoint, and each image includes an antenna sub-image to be measured and a calibration sub-image, I ⁇ 2, and I is an integer.
  • step S201 For related description of the step S201, reference may be made to the above, and details are not described herein again.
  • the "I viewpoint” is such that the electronic device can simultaneously acquire the viewpoint including the image of the antenna to be measured and the image of the calibration board.
  • the set to be measured is a set of points formed on the outer contour of the antenna sub-image to be measured, or a set of two endpoints of the long axis of the antenna sub-image to be measured.
  • the electronic device can obtain the two-dimensional coordinates of each point on the outer contour of the antenna sub-image to be measured in an image in an electronic device coordinate system by using the image of the antenna to be measured in an image as a foreground, and the image is in the image. The rest of the background is used as a background to form a mask image. On the mask image, the two-dimensional coordinates of the points on the outer contour of the antenna sub-image to be measured are calculated in the electronic device coordinate system.
  • the electronic device can obtain the two-dimensional coordinates of each point on the outer contour of the antenna sub-image to be measured in the electronic device coordinate system by calling the findContour function in the opencv (open source) data packet.
  • the electronic device can obtain the end point of the long axis of the antenna sub-image to be measured in an image by: forming a 2 ⁇ N matrix of the two-dimensional coordinates of the N front sights on the mask image in the electronic device coordinate system, wherein The element on each column of the matrix is a two-dimensional coordinate of a front spot in the electronic device coordinate system; a point K obtained by taking the mean value of the elements on each column of the matrix, and the absolute value of the matrix is larger
  • the feature vector L corresponding to the feature value, that is, the long axis axis.
  • the line determined by K and L and the antenna to be measured The outer contour of the sub-image must have two intersection points, which are the two endpoints of the long axis of the antenna sub-image to be measured.
  • the N front attractions are generally all of the previous attractions on the mask image.
  • the electronic device can obtain the mean value of the elements on each column in the matrix by performing Principal Component Analysis (PCA) on the 2 ⁇ N matrix.
  • PCA Principal Com
  • points in the set to be measured can be expressed as: among them, a vector representing a two-dimensional coordinate of the jth point in the set to be measured under the i-th image; Specifically can be expressed as 1 ⁇ i ⁇ I, 1 ⁇ j ⁇ J, i, j are integers.
  • an electronic device can be The minimum principle is to obtain the three-dimensional coordinates of the jth point in the set to be measured in the calibration plate coordinate system; Representing: the projection of the three-dimensional coordinates of the j-th point in the calibration set in the calibration plate coordinate system on the i-th image, and the position of the j-th point in the i-th image (ie, the jth The distance between the two-dimensional coordinates of the point in the electronic device coordinate system. This can be achieved by the following steps:
  • P j represents a vector formed by the three-dimensional coordinates of the j-th point to be obtained in the calibration plate coordinate system; alternatively, the initial value of P j is the origin of the calibration plate coordinate system; of course, it is not limited thereto.
  • the reference line of the jth point is: the optical center of the camera under each viewpoint, and the line where the jth point is located in the image acquired by the electronic device at the viewpoint.
  • the line L i of the optical center of the camera at the i-th viewpoint and the position of the j-th point in the i-th image can be expressed as: Indicates the rotation matrix of the electronic device coordinate system to the calibration coordinate system at the i-th viewpoint.
  • Express Transposed matrix Representation vector The kth element, k is 0 or 1.
  • the electronic device can be obtained by the following method Obtaining an external parameter of the viewpoint lower point electronic device by using the calibration board sub-image and the antenna sub-image to be measured in the image acquired by the viewpoint under the i-th viewpoint; wherein the external parameter includes with Indicates the translation matrix of the electronic device coordinate system to the calibration plate coordinate system at the i-th viewpoint.
  • the electronic device can obtain an external parameter of the electronic device at each view according to the image acquired at each view point and call the calibrateCamera function of opencv.
  • the electronic device can The value is taken as the updated P j .
  • Steps 1) and 2) are performed M times, and the finally updated P j is used as the three-dimensional coordinates of the j-th point obtained by the electronic device after the step S203 in the calibration plate coordinate system.
  • S204 Acquire three-dimensional coordinates of each point in an antenna coordinate system.
  • the electronic device establishes a three-dimensional model for the antenna to be measured in advance and determines an antenna coordinate system.
  • the direction in which the long axis of the antenna sub-image to be measured in the three-dimensional model is located is taken as the direction of the z-axis of the antenna coordinate system.
  • the electronic device can directly obtain the three-dimensional coordinates of any point of the antenna to be measured in the antenna coordinate system.
  • a vector composed of three-dimensional coordinates of the j-th point in the antenna coordinate system is denoted as F j .
  • the three-dimensional coordinates of each point in the antenna coordinate system are mapped to the calibration plate coordinate system according to the rotation matrix R and the translation matrix T; the three-dimensional coordinates of each point in the calibration plate coordinate system are compared to corresponding
  • the matching degree between the three-dimensional coordinates in the calibration plate coordinates is the rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system.
  • R c2a can be determined by the following method, of course, not limited thereto.
  • the method may specifically include: marking the vectors formed by the three-dimensional coordinates of the J points in the calibration plate coordinate system as P 1 , P 2 , . . . , P j , . . . , P J , respectively.
  • the vectors formed by the three-dimensional coordinates of the point in the antenna coordinate system are respectively labeled as F 1 , F 2 , ..., F j , ..., F J ; then, the two endpoints of the J points are in the antenna coordinate system.
  • the obtained three-dimensional coordinates are respectively composed of R 2 F 1 + T 2 , R 2 F 2 + T 2 , ... R 2 F j + T 2 , ..., R 2 F J + T 2 ; further, R c2a is The lowest R 2 .
  • R w2a R w2p R p2c R c2a
  • R w2a a rotation matrix of the world coordinate system to the antenna coordinate system
  • R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system.
  • ⁇ , ⁇ , and ⁇ are respectively the roll angle, the direction angle, and the elevation angle of the obtained electronic device according to the data measured by the acceleration sensor in the electronic device under the i-th viewpoint.
  • the electronic device further includes an acceleration sensor
  • the method may further include: when the electronic device collects an image at each viewpoint, recording the data measured by the acceleration sensor in the electronic device to obtain the view point.
  • the data measured by the acceleration sensor in the electronic device is data in the sensor coordinate system.
  • the electronic device coordinate system is consistent with the sensor coordinate system as an example; wherein the electronic device coordinate system and the sensor coordinate system are consistent, the rotation matrix between the electronic device coordinate system and the sensor coordinate system is Each element is 0.
  • the electronic device needs to first convert the data measured by the acceleration sensor into the number in the electronic device coordinate system. According to this, the rotation matrix of the world coordinate system to the electronic device coordinate system is obtained.
  • the sensor coordinate system is a coordinate system preset in the sensor.
  • step S203 For the acquisition process of R p2c under the i-th viewpoint, reference may be made to step S203 above.
  • R c2a the i-th viewpoint is the R c2a obtained in the above step S205.
  • S207 Obtain posture information of the antenna to be measured according to a rotation matrix of the world coordinate system to the antenna coordinate system.
  • the posture information includes a downtilt angle and an azimuth angle. specific:
  • f i , n i , s i respectively represent: in the world coordinate system, the long-axis direction vector, the front surface normal vector and the side surface normal vector of the antenna sub-image to be measured;
  • f a , n a , s a respectively represent : On the three-dimensional model of the antenna to be measured, the long-axis direction vector, the front surface normal vector, and the side surface normal vector of the antenna sub-image to be measured.
  • the downtilt angle l i of the antenna to be measured at the i-th viewpoint is obtained;
  • n a '(0) denotes the kth element of n a ', k is 0 or 1
  • n a ' (n a (0), n a (1), 0), indicating that n a is on a horizontal plane Projection
  • n a (k) represents the kth element of n a .
  • the azimuth angle z of the antenna to be measured is obtained.
  • the method for measuring the posture of the antenna provided by the embodiment, the electronic device collects one image correspondingly from one viewpoint, wherein each image includes an image of the antenna to be measured; and according to the image, the antenna to be measured is obtained.
  • the three-dimensional coordinates of at least two points of the image in the calibration plate coordinate system thereby determining according to the three-dimensional coordinates of the at least two points in the calibration plate coordinate system and the three-dimensional coordinates of the at least two points in the antenna coordinate system
  • the attitude information of the antenna to be measured The technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna.
  • the root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. Moreover, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved. In addition, since the calibration plate coordinate system is used as the reference coordinate system in the present embodiment, the stability of the reference coordinate system is high, and thus the measurement result can be made more accurate.
  • the "reference coordinate system" in the first embodiment is the world coordinate system in this embodiment.
  • FIG. 3 is a schematic flowchart diagram of a method for measuring an attitude of an antenna according to an embodiment of the present invention. The method shown in Figure 3 is applied to an electronic device, the method comprising:
  • S301 Acquire one image correspondingly from one viewpoint; wherein each viewpoint acquires one image, and each image includes an antenna sub-image to be measured, I ⁇ 2, and I is an integer.
  • S303 Obtain three-dimensional coordinates of each point in the world coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system.
  • the electronic device may acquire three-dimensional coordinates of each point in the world coordinate system according to the specific implementation method of step S203 described above. Specifically, the electronic device replaces the “scaling plate coordinate system” in the related explanation of the above step S203 with the “world coordinate system”. You can get the three-dimensional coordinates of each point in the world coordinate system.
  • S304 Acquire three-dimensional coordinates of each point in an antenna coordinate system.
  • S305 Obtain a rotation matrix of the world coordinate system to the antenna coordinate system according to the three-dimensional coordinates of each point in the world coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system.
  • the electronic device may acquire R w2a according to the specific implementation manner of step S205 described above. Specifically, the electronic device replaces the “scaling plate coordinate system” in the specific implementation manner of the above step S205 with the “world coordinate system”, and replaces R c2a with R w2a to obtain R w2a .
  • S306 Obtain posture information of the antenna to be measured according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  • the posture information includes a downtilt angle and an azimuth angle.
  • step S301 may refer to step S101 above.
  • the related description of step S302 may refer to step S202.
  • the related description of step S304 may refer to step S204 in the second embodiment. Step S207 in the second example, and details are not described herein again.
  • the electronic device collects one image correspondingly from one viewpoint, wherein each image includes an image of the antenna to be measured; and according to the image, the antenna to be measured is obtained. Determining the three-dimensional coordinates of at least two points of the image in the world coordinate system, thereby determining the antenna to be measured according to the three-dimensional coordinates of the at least two points in the world coordinate system and the three-dimensional coordinates of the at least two points in the antenna coordinate system Gesture information.
  • the technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna.
  • the root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. And, not in the process It is necessary to add any hardware device to the antenna, and it can also save the cost of measuring the attitude of the antenna.
  • the world coordinate system is used as the reference coordinate system in the present embodiment, and the direction in which the coordinate axes of the world coordinate system are located is known, the method of measuring the attitude of the antenna can be realized simply.
  • the apparatus 4 as shown in FIG. 4 may include:
  • the first acquiring unit 41 is configured to acquire, by the electronic device, I images that are correspondingly collected from the I viewpoints, where each of the images includes an antenna sub-image to be measured, I ⁇ 2, and I is an integer;
  • a second acquiring unit 42 is configured to acquire two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system, where the to-be-measured set is the to-be-measured a collection of at least two points of an antenna sub-image;
  • the third obtaining unit 43 is configured to acquire three-dimensional coordinates of the points in the antenna coordinate system
  • the determining unit 44 is configured to determine posture information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
  • the determining unit 44 is specifically configured to:
  • the reference coordinate system is a calibration plate coordinate system or a world coordinate system
  • the determining unit 44 is specifically configured to:
  • Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  • the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; the determining unit 44 is specifically configured to:
  • R w2a R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
  • the set to be measured is: a set of two endpoints of a long axis of the antenna sub-image to be measured, or the antenna sub-image to be measured A collection of points on the outer contour.
  • the posture information of the antenna to be measured includes at least one of the following information: an azimuth angle and a tilt angle.
  • the device 4 in this embodiment may be the above “electronic device” or may be a virtual device different from the electronic device.
  • the apparatus provided in this embodiment obtains an image of an antenna that is to be measured from the I viewpoints by acquiring an image of the antenna sub-image to be measured in each image; and acquiring an image of the antenna sub-image to be measured according to the I image. Determining the two-dimensional coordinates of the at least two points in the electronic device coordinate system, thereby determining the posture of the antenna to be measured according to the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system information.
  • the technical solution measures the antenna attitude by using one image correspondingly collected from one viewpoint.
  • the first obtaining unit 41, the second obtaining unit 42, the third obtaining unit 43, and the determining unit 44 in the foregoing fourth embodiment may be embedded in hardware or in a memory independent of the device, so as to facilitate processing.
  • the device invokes the operations corresponding to the above modules, and the processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
  • the apparatus 5 is a schematic structural diagram of a device according to the embodiment, which is used to perform the method for measuring the attitude of the antenna provided in the first embodiment.
  • the apparatus 5 as shown in FIG. 5 may include a memory 51, a processor 52, a wireless interface 53, and a bus system 54.
  • bus system 54 Between memory 51 and processor 52 are coupled together by bus system 54.
  • the bus system 54 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus system 54 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
  • the wireless interface 53 is used to enable communication between the device 5 and other devices.
  • the memory 51 is for storing a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 51 may be a high speed random access memory (RAM), or may be a non-volatile memory, such as at least one disk storage.
  • the processor 52 executes the program stored in the memory 51 to implement the method provided in the first embodiment.
  • a method of measuring the attitude of an antenna A method of measuring the attitude of an antenna.
  • the processor 52 is configured to perform the following actions:
  • each of the images includes an antenna sub-image to be measured, I ⁇ 2, and I is an integer;
  • the processor 52 is specifically configured to:
  • the reference coordinate system is a calibration plate coordinate system or a world coordinate system
  • the processor 52 is specifically configured to:
  • Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  • the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; and the processor 52 is specifically configured to:
  • R w2a R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
  • the to-be-measured set is: a set of two endpoints of a long axis of the to-be-measured antenna sub-image, or a set of points on an outer contour of the to-be-measured antenna sub-image.
  • the posture information of the antenna to be measured includes at least one of the following information: an azimuth angle and a tilt angle.
  • the device 5 in this embodiment may be the above “electronic device” or may be a virtual device different from the electronic device.
  • the device 5 may further include a camera; in some optional implementations, the device 5 may further include a physical component such as an acceleration sensor.
  • the apparatus provided in this embodiment obtains an image of an antenna that is to be measured from the I viewpoints by acquiring an image of the antenna sub-image to be measured in each image; and acquiring an image of the antenna sub-image to be measured according to the I image. Determining the two-dimensional coordinates of the at least two points in the electronic device coordinate system, thereby determining the posture of the antenna to be measured according to the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system information.
  • the technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna.
  • the root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. , including several instructions All or part of the steps of the method of the various embodiments of the present invention are performed by a computer device (which may be a personal computer, server, or network device, etc.) or processor.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.

Abstract

An embodiment of the present invention relates to a technical field of antenna attitude measurement, and discloses a method and device for measuring an antenna attitude, so as to address the complex antenna manufacturing process in prior art due to the need to add a measurement device to each antenna during the antenna manufacturing process. The method provided in the embodiment of the present invention comprises: acquiring I images captured correspondingly from I viewpoints by an electronic device, wherein each image comprises a sub image of an antenna to be measured, I ≥ 2, and I is an integer; acquiring a two-dimensional coordinate of each point of a to-be-measured set in each of the I images with respect to an electronic device coordinate system, wherein the to-be-measured set is a set formed by at least two points in the sub image of the antenna to be measured; acquiring a three-dimensional coordinate of said point with respect to an antenna coordinate system; and determining attitude information of the antenna to be measured according to the two-dimensional coordinates of the points with respect to the electronic device coordinate system and the three-dimensional coordinates of the points with respect to the antenna coordinate system.

Description

一种测量天线姿态的方法和装置Method and device for measuring antenna attitude 技术领域Technical field
本发明涉及天线姿态测量技术领域,尤其涉及一种测量天线姿态的方法和装置。The present invention relates to the field of antenna attitude measurement technologies, and in particular, to a method and apparatus for measuring an antenna attitude.
背景技术Background technique
在户外通信的天线架设中,天线姿态对信号的覆盖范围具有非常重要的影响,并会进一步影响到网络通信的质量,因此,测量天线姿态至关重要。一般通过天线姿态信息(例如,下倾角、方位角等)来反映天线姿态。In the antenna erection of outdoor communication, the attitude of the antenna has a very important influence on the coverage of the signal, and will further affect the quality of the network communication. Therefore, it is important to measure the attitude of the antenna. The antenna attitude is typically reflected by antenna attitude information (eg, downtilt, azimuth, etc.).
目前,一般通过以下方法测量天线姿态:在每根天线上加装测量设备,其中,该测量设备主要包括传感器、支架和无线通信模块,支架用于将天线与传感器固定连接在一起;通过传感器测量天线姿态信息,通过无线通信模块将传感器测量到的天线姿态信息传输给需要获取天线姿态信息的设备。At present, the antenna attitude is generally measured by adding a measuring device to each antenna, wherein the measuring device mainly comprises a sensor, a bracket and a wireless communication module, and the bracket is used for fixedly connecting the antenna and the sensor; The antenna attitude information is used to transmit the antenna attitude information measured by the sensor to the device that needs to acquire the antenna attitude information through the wireless communication module.
由于直接为已经架设好的天线加装测量设备存在安全隐患,因此一般在生产天线的过程中即为每根天线加装测量设备;然而,这样会导致生产天线的过程较复杂。Since there is a safety hazard in directly installing the measuring device for the already installed antenna, the measuring device is generally installed for each antenna in the process of producing the antenna; however, this causes the process of producing the antenna to be complicated.
发明内容Summary of the invention
本发明的实施例提供一种测量天线姿态的方法和装置,用以解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。Embodiments of the present invention provide a method and apparatus for measuring an attitude of an antenna, which is used to solve the problem in the prior art that a measuring device is required for each antenna in the process of producing an antenna, thereby causing a complicated process for producing an antenna. The problem.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面,提供一种测量天线姿态的方法,包括:In a first aspect, a method of measuring an attitude of an antenna is provided, comprising:
获取电子设备从I个视点对应采集的I个图像;其中,每个所 述图像包含待测量天线子图像,I≥2,I为整数;Obtaining an image that the electronic device collects correspondingly from one viewpoint; wherein each The image includes an antenna sub-image to be measured, I≥2, and I is an integer;
获取所述I个图像中的每个图像的待测量集合中的各点在电子设备坐标系下的二维坐标;其中,所述待测量集合为所述待测量天线子图像的至少两个点构成的集合;Acquiring two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system; wherein the to-be-measured set is at least two points of the to-be-measured antenna sub-image a collection of
获取所述各点在天线坐标系下的三维坐标;Obtaining three-dimensional coordinates of the points in the antenna coordinate system;
根据所述各点在所述电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
结合第一方面,在第一种可能的实现方式中,所述根据所述各点在电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息,包括:With reference to the first aspect, in a first possible implementation, the determining, according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system, The posture information of the measurement antenna is described, including:
根据所述各点在电子设备坐标系下的二维坐标,获取所述各点在参考坐标系下的三维坐标;其中,所述参考坐标系为定标板坐标系或世界坐标系;Obtaining, according to the two-dimensional coordinates of the points in the electronic device coordinate system, the three-dimensional coordinates of the points in the reference coordinate system; wherein the reference coordinate system is a calibration plate coordinate system or a world coordinate system;
根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息,包括:In conjunction with the first possible implementation of the first aspect, in a second possible implementation, the three-dimensional coordinates according to the points in the reference coordinate system and the coordinates of the points in the antenna coordinates Determining the attitude information of the antenna to be measured, including:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与所述天线坐标系之间的旋转矩阵;Obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system;
根据所述世界坐标系与所述天线坐标系之间的旋转矩阵,得到所述待测量天线的姿态信息。Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述参考坐标系为定标板坐标系;每个所述图像还包含定 标板子图像;所述根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与天线坐标系之间的旋转矩阵,包括:In conjunction with the second possible implementation of the first aspect, in a third possible implementation, the reference coordinate system is a calibration plate coordinate system; each of the images further includes Marking a sub-image; obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ,include:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到所述定标板坐标系到所述天线坐标系的旋转矩阵Rc2a Obtaining a rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ;
根据每个所述图像中均包含定标板子图像,获取所述电子设备坐标系到所述定标板坐标系的旋转矩阵Rp2cObtaining a rotation matrix R p2c of the electronic device coordinate system to the calibration plate coordinate system according to the calibration plate sub-image included in each of the images;
根据公式Rw2a=Rw2pRp2cRc2a,得到所述世界坐标系到所述天线坐标系的旋转矩阵Rw2a;其中,Rw2p为所述世界坐标系到所述电子设备坐标系的旋转矩阵。 Obtaining a rotation matrix R w2a of the world coordinate system to the antenna coordinate system according to the formula R w2a =R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
结合第一方面、第一方面的第一种可能的实现方式至第三种可能的实现方式任一种,在第四种可能的实现方式中,所述待测量集合为:所述待测量天线子图像的长轴的两个端点构成的集合,或,所述待测量天线子图像的外轮廓上的点构成的集合。With reference to the first aspect, the first possible implementation manner of the first aspect, and the third possible implementation manner, in a fourth possible implementation manner, the to-be-measured set is: the antenna to be measured A set of two endpoints of the long axis of the sub-image, or a set of points on the outer contour of the image of the antenna sub-image to be measured.
结合第一方面、第一方面的第一种可能的实现方式至第四种可能的实现方式任一种,在第五种可能的实现方式中,所述待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角。With reference to the first aspect, the first possible implementation manner of the first aspect, and the fourth possible implementation manner, in a fifth possible implementation manner, the posture information of the antenna to be measured includes the following information. At least one of: azimuth, tilt angle.
第二方面,提供一种装置,包括:In a second aspect, an apparatus is provided, comprising:
第一获取单元,用于获取电子设备从I个视点对应采集的I个图像;其中,每个所述图像包含待测量天线子图像,I≥2,I为整数;a first acquiring unit, configured to acquire one image that is collected by the electronic device from the I viewpoints; wherein each of the images includes an antenna sub-image to be measured, I≥2, and I is an integer;
第二获取单元,用于获取所述I个图像中的每个图像的待测量集合中的各点在电子设备坐标系下的二维坐标;其中,所述待测量集合为所述待测量天线子图像的至少两个点构成的集合;a second acquiring unit, configured to acquire two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system; wherein the to-be-measured set is the antenna to be measured a collection of at least two points of a sub-image;
第三获取单元,用于获取所述各点在天线坐标系下的三维坐标; a third acquiring unit, configured to acquire three-dimensional coordinates of the points in an antenna coordinate system;
确定单元,用于根据所述各点在所述电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。a determining unit, configured to determine posture information of the antenna to be measured according to two-dimensional coordinates of the points in the electronic device coordinate system and three-dimensional coordinates of the points in the antenna coordinate system.
结合第二方面,在第一种可能的实现方式中,所述确定单元具体用于:With reference to the second aspect, in a first possible implementation manner, the determining unit is specifically configured to:
根据所述各点在电子设备坐标系下的二维坐标,获取所述各点在参考坐标系下的三维坐标;其中,所述参考坐标系为定标板坐标系或世界坐标系;Obtaining, according to the two-dimensional coordinates of the points in the electronic device coordinate system, the three-dimensional coordinates of the points in the reference coordinate system; wherein the reference coordinate system is a calibration plate coordinate system or a world coordinate system;
根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述确定单元具体用于:With reference to the first possible implementation of the second aspect, in a second possible implementation, the determining unit is specifically configured to:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与所述天线坐标系之间的旋转矩阵;Obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system;
根据所述世界坐标系与所述天线坐标系之间的旋转矩阵,得到所述待测量天线的姿态信息。Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,所述参考坐标系为定标板坐标系;每个所述图像还包含定标板子图像;所述确定单元具体用于:In conjunction with the second possible implementation of the second aspect, in a third possible implementation, the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; the determining The unit is specifically used to:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到所述定标板坐标系到所述天线坐标系的旋转矩阵Rc2a Obtaining a rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ;
根据每个所述图像中均包含定标板子图像,获取所述电子设备坐标系到所述定标板坐标系的旋转矩阵Rp2cObtaining a rotation matrix R p2c of the electronic device coordinate system to the calibration plate coordinate system according to the calibration plate sub-image included in each of the images;
根据公式Rw2a=Rw2pRp2cRc2a,得到所述世界坐标系到所述天线坐标系的旋转矩阵Rw2a;其中,Rw2p为所述世界坐标系到所述电子设备坐 标系的旋转矩阵。 Obtaining a rotation matrix R w2a of the world coordinate system to the antenna coordinate system according to the formula R w2a =R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
结合第二方面、第二方面的第一种可能的实现方式至第三种可能的实现方式任一种,在第四种可能的实现方式中,所述待测量集合为:所述待测量天线子图像的长轴的两个端点构成的集合,或,所述待测量天线子图像的外轮廓上的点构成的集合。With reference to the second aspect, the first possible implementation manner of the second aspect, and the third possible implementation manner, in the fourth possible implementation manner, the to-be-measured set is: the antenna to be measured A set of two endpoints of the long axis of the sub-image, or a set of points on the outer contour of the image of the antenna sub-image to be measured.
结合第二方面、第二方面的第一种可能的实现方式至第四种可能的实现方式任一种,在第五种可能的实现方式中,所述待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角。With reference to the second aspect, the first possible implementation manner of the second aspect, and the fourth possible implementation manner, in a fifth possible implementation manner, the posture information of the antenna to be measured includes the following information. At least one of: azimuth, tilt angle.
本实施例提供的测量天线姿态的方法和装置,通过获取电子设备从I个视点对应采集的I个图像,其中,每个图像中均包含待测量天线子图像;并根据该I个图像,获取待测量天线子图像的至少两个点在电子设备坐标系下的二维坐标,从而根据该至少两个点在电子设备坐标系下的二维坐标与各点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。本技术方案利用从I个视点对应采集的I个图像测量天线姿态,该过程中不需要在天线上加装任何硬件设备,因此能够解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。另外,该过程中不需要在天线上加装任何硬件设备,还能够节省测量天线姿态的成本。The method and device for measuring an attitude of an antenna provided by the embodiment obtains an image of an antenna that is correspondingly collected from an I viewpoint, wherein each image includes an image of the antenna to be measured; and the image is obtained according to the image. 2D coordinates of at least two points of the antenna sub-image to be measured in the electronic device coordinate system, according to the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system, Determine the attitude information of the antenna to be measured. The technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna. The root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例一提供的一种测量天线姿态的方法的流程 示意图;FIG. 1 is a flowchart of a method for measuring an attitude of an antenna according to Embodiment 1 of the present invention; schematic diagram;
图2为本发明实施例二提供的一种测量天线姿态的方法的流程示意图;2 is a schematic flowchart of a method for measuring an attitude of an antenna according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种测量天线姿态的方法的流程示意图;3 is a schematic flowchart of a method for measuring an attitude of an antenna according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种装置的结构示意图;4 is a schematic structural diagram of an apparatus according to Embodiment 4 of the present invention;
图5为本发明实施例五提供的一种装置的结构示意图。FIG. 5 is a schematic structural diagram of a device according to Embodiment 5 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本文中的术语“多个”,是指两个或两个以上。The term "plurality" as used herein refers to two or more.
实施例一Embodiment 1
参见图1,为本发明实施例提供的一种测量天线姿态的方法的流程示意图。图1所示的方法包括:FIG. 1 is a schematic flowchart diagram of a method for measuring an attitude of an antenna according to an embodiment of the present invention. The method shown in Figure 1 includes:
S101:获取电子设备从I个视点对应采集的I个图像;其中,每个图像包含待测量天线子图像,I≥2,I为整数。S101: Acquire an I image that is collected by the electronic device from one viewpoint; wherein each image includes an antenna sub-image to be measured, I≥2, and I is an integer.
本发明实施例提供的测量天线姿态的方法的执行主体可以为上述“电子设备”,也可以为不同于该电子设备的虚拟装置或实体设备。The execution body of the method for measuring the attitude of the antenna provided by the embodiment of the present invention may be the “electronic device” described above, or may be a virtual device or a physical device different from the electronic device.
“电子设备”中安装有摄像头,用于采集图像;该电子设备具体可以为:智能手机、平板电脑等。A camera is installed in the “electronic device” for collecting images; the electronic device may specifically be: a smart phone, a tablet computer, or the like.
“视点”是指电子设备所处的位置;电子设备在同一个视点采集得到的图像为同一个图像。“I个视点”可以为用户选择的,能够使电子设备采集到待测量天线子图像的任意I个位置。 “Viewpoint” refers to the location where the electronic device is located; the images acquired by the electronic device at the same viewpoint are the same image. The "I viewpoint" can be selected by the user to enable the electronic device to capture any I position of the antenna sub-image to be measured.
“电子设备从I个视点对应采集的I个图像”,具体包括:电子设备从每个视点采集一个图像。The “I images acquired by the electronic device from the I viewpoints” specifically include: the electronic device collects one image from each viewpoint.
举例而言,电子设备通过摄像头从I个视点对应采集I个图像。其中,该I个视点可以为:以待测量天线的某个朝向(例如,长轴方向或短轴方向等)为中心的45-60度角的范围内的均匀排布的4-5个视点。当然,也可以通过其他方式确定I个视点。需要说明的是,I的取值越大,最终得到的待测量天线的姿态信息越精确。For example, the electronic device collects 1 image correspondingly from one viewpoint through the camera. Wherein, the I viewpoints may be: 4-5 viewpoints uniformly arranged within a range of 45-60 degrees centered on a certain orientation of the antenna to be measured (for example, a long axis direction or a short axis direction, etc.) . Of course, I can also determine I viewpoints by other means. It should be noted that the larger the value of I is, the more accurate the attitude information of the antenna to be measured is finally obtained.
S102:在该I个图像的每个图像中,均获取待测量集合中的各点在电子设备坐标系下的二维坐标;其中,待测量集合为待测量天线子图像的至少两个点构成的集合。S102: in each image of the I image, obtaining two-dimensional coordinates of each point in the set to be measured in an electronic device coordinate system; wherein the to-be-measured set is composed of at least two points of the antenna sub-image to be measured Collection.
“待测量集合”可以为待测量天线子图像的任意多个点构成的集合;其中,这里的“点”是指数学意义上的点,类似于数学意义上的“交点”、“顶点”、“中点”、“端点”等。待测量集合中的各点可以为预先设置的,也可以为执行主体在执行该方法的过程中获取的。The "to-be-measured set" may be a set of any number of points of the antenna sub-image to be measured; wherein the "point" here is an exponential point, similar to the "intersection", "vertex" in the mathematical sense, "Midpoint", "Endpoint", etc. Each point in the set to be measured may be preset, or may be acquired by the execution subject in the process of executing the method.
可选的,待测量集合为待测量天线子图像的长轴的两个端点构成的集合,或为待测量天线子图像的外轮廓上的各点构成的集合。另外,还可以为待测量天线子图像的外轮廓上的特定点构成的集合,或为待测量天线子图像的短轴的两个端点构成的集合等。其中,该“特定点”可以为预设的一些点,例如,从待测量天线子图像的外轮廓上的某个点开始的、与该点相距预设距离的整数倍的点等。Optionally, the set to be measured is a set of two endpoints of a long axis of the antenna sub-image to be measured, or a set of points on an outer contour of the antenna sub-image to be measured. In addition, it may also be a set of specific points on the outer contour of the antenna sub-image to be measured, or a set of two end points of the short axis of the antenna sub-image to be measured, and the like. The “specific point” may be a preset point, for example, a point from a certain point on the outer contour of the antenna sub-image to be measured, an integral multiple of a preset distance from the point, and the like.
“电子设备坐标系”为:由电子设备所拍摄的图像所在的二维平面以及垂直于该二维平面的轴,构成的三维坐标系;其中,该二维平面为电子设备坐标系中x、y轴所在的平面,垂直于该二维平面的轴为电子设备坐标系中z轴。“电子设备坐标系下的二维坐标”为电子设备所拍摄的图像所在的二维平面中的坐标。The “electronic device coordinate system” is a three-dimensional coordinate system formed by an image captured by the electronic device and an axis perpendicular to the two-dimensional plane; wherein the two-dimensional plane is x in the electronic device coordinate system, The plane in which the y-axis is located, the axis perpendicular to the two-dimensional plane is the z-axis in the electronic device coordinate system. The "two-dimensional coordinates in the electronic device coordinate system" is the coordinates in the two-dimensional plane in which the image captured by the electronic device is located.
举例而言,若电子设备(例如智能手机)包含屏幕、以及其屏 幕为矩形,则“电子设备坐标系”具体可以为:电子设备屏幕的下底边向右的方向为x轴所在的方向,该屏幕的竖边向上的方向为y轴所在的方向,与该屏幕垂直向上的方向为z轴所在的方向。For example, if an electronic device (such as a smart phone) contains a screen and its screen The screen is a rectangle, and the “electronic device coordinate system” may specifically be: the direction of the bottom edge of the electronic device screen to the right is the direction in which the x-axis is located, and the direction of the vertical direction of the screen is the direction in which the y-axis is located, and The direction in which the screen is vertically upward is the direction in which the z-axis is located.
S103:获取该各点在天线坐标系下的三维坐标。S103: Acquire three-dimensional coordinates of the points in the antenna coordinate system.
举例而言,一般地,在执行该方法之前,执行主体已经能够获知待测量天线的形状等信息。执行主体可以预先根据待测量天线的形状等信息为待测量天线建立三维模型,并确定天线坐标系。理论上,可以将该三维模型中的任何一个方向作为天线坐标系的任何一个坐标轴;可选的,可以将该三维模型中的待测量天线子图像的长轴所在的方向作为天线坐标系的z轴的方向。电子设备可以直接获得待测量天线的任意一个点在天线坐标系下的三维坐标。For example, generally, the execution subject has been able to know information such as the shape of the antenna to be measured before performing the method. The execution body may establish a three-dimensional model for the antenna to be measured according to information such as the shape of the antenna to be measured, and determine the antenna coordinate system. In theory, any one of the three-dimensional models can be used as any coordinate axis of the antenna coordinate system; optionally, the direction of the long axis of the antenna sub-image to be measured in the three-dimensional model can be used as the antenna coordinate system. The direction of the z-axis. The electronic device can directly obtain the three-dimensional coordinates of any point of the antenna to be measured in the antenna coordinate system.
S104:根据该各点在电子设备坐标系下的二维坐标与该各点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。S104: Determine posture information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
可选的,待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角Optionally, the attitude information of the antenna to be measured includes at least one of the following information: azimuth angle, tilt angle
可选的,S104可以包括:步骤1)、根据各点在电子设备坐标系下的二维坐标与各点在天线坐标系下的三维坐标,得到天线坐标系与世界坐标系之间的旋转矩阵;步骤2)、根据天线坐标系与世界坐标系之间的旋转矩阵,得到待测量天线的姿态信息。Optionally, S104 may include: Step 1): obtaining a rotation matrix between the antenna coordinate system and the world coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system. Step 2), according to the rotation matrix between the antenna coordinate system and the world coordinate system, obtain the attitude information of the antenna to be measured.
具体的,上述步骤1)可以包括:步骤11)、根据各点在电子设备坐标系下的二维坐标与各点在天线坐标系下的三维坐标,得到天线坐标系与电子设备坐标系之间的旋转矩阵;步骤12)、获取电子设备坐标系与世界坐标系之间的旋转矩阵;步骤13)、根据天线坐标系与电子设备坐标系之间的旋转矩阵和电子设备坐标系与世界坐标系的旋转矩阵,得到天线坐标系与世界坐标系。Specifically, the foregoing step 1) may include: step 11), obtaining a coordinate between the antenna coordinate system and the electronic device coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system. a rotation matrix; step 12), acquiring a rotation matrix between the electronic device coordinate system and the world coordinate system; step 13), according to a rotation matrix between the antenna coordinate system and the electronic device coordinate system, and an electronic device coordinate system and a world coordinate system The rotation matrix gives the antenna coordinate system and the world coordinate system.
其中,步骤11)中得到天线坐标系与电子设备坐标系之间的旋转矩阵的实现方法可以参考实施例二中得到定标板坐标系到天线坐 标系的旋转矩阵,步骤12)的具体实现方式也可以参考实施例二,此处不再赘述。For the implementation method of obtaining the rotation matrix between the antenna coordinate system and the electronic device coordinate system in step 11), refer to the calibration plate coordinate system obtained in the second embodiment to sit on the antenna. For the specific implementation of the rotation matrix of the label, the implementation of the step 12) can also refer to the second embodiment, and details are not described herein again.
可选的,S104可以包括:根据各点在电子设备坐标系下的二维坐标,获取各点在参考坐标系下的三维坐标;其中,参考坐标系为定标板坐标系或世界坐标系;根据各点在参考坐标系下的三维坐标与各点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。Optionally, the S104 may include: acquiring three-dimensional coordinates of each point in a reference coordinate system according to two-dimensional coordinates of each point in an electronic device coordinate system; wherein, the reference coordinate system is a calibration plate coordinate system or a world coordinate system; The attitude information of the antenna to be measured is determined according to the three-dimensional coordinates of each point in the reference coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system.
举例而言,“参考坐标系”可以为世界坐标系或用户定义的一坐标系;本文中将用户定义的坐标系称为定标板坐标系。For example, the "reference coordinate system" may be a world coordinate system or a user-defined coordinate system; the user-defined coordinate system is referred to herein as a calibration plate coordinate system.
本实施例提供的测量天线姿态的方法,通过获取电子设备从I个视点对应采集的I个图像,其中,每个图像中均包含待测量天线子图像;并根据该I个图像,获取待测量天线子图像的至少两个点在电子设备坐标系下的二维坐标,从而根据该至少两个点在电子设备坐标系下的二维坐标与各点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。本技术方案利用从I个视点对应采集的I个图像测量天线姿态,该过程中不需要在天线上加装任何硬件设备,因此能够解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。另外,该过程中不需要在天线上加装任何硬件设备,还能够节省测量天线姿态的成本。The method for measuring an attitude of an antenna provided by the embodiment obtains an image of an antenna that is correspondingly collected from an I viewpoint, wherein each image includes an image of the antenna to be measured; and according to the image, the image to be measured is acquired. The two-dimensional coordinates of the at least two points of the antenna sub-image in the electronic device coordinate system, thereby determining the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system Measure the attitude information of the antenna. The technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna. The root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
实施例二Embodiment 2
实施例一中的“参考坐标系”在本实施例中为定标板坐标系。The "reference coordinate system" in the first embodiment is the calibration plate coordinate system in this embodiment.
需要说明的是,定标板的位置在执行本实施例之前已经设定好;其中,定标板的位置可以为能够在I个视点同时采集到待测量天线的图像(即待测量天线子图像)和定标板的图像(即定标板子图像)的任一位置。在测量天线姿态的过程中(即:电子设备在执行图2所示的方法的过程中),定标板的位置不变。定标板所在的位置与待测量天线所在的位置之间的距离越近,电子设备得到的待测量天线 的姿态信息越准确。It should be noted that the position of the calibration plate has been set before the implementation of the embodiment; wherein the position of the calibration plate may be an image capable of simultaneously acquiring the antenna to be measured at one viewpoint (ie, the antenna sub-image to be measured) ) and any position of the image of the calibration plate (ie, the calibration plate sub-image). During the measurement of the attitude of the antenna (i.e., during the execution of the method of Figure 2 by the electronic device), the position of the calibration plate does not change. The closer the distance between the position where the calibration plate is located and the position where the antenna to be measured is located, the antenna to be measured obtained by the electronic device The more accurate the gesture information.
参见图2,为本发明实施例提供的一种测量天线姿态的方法的流程示意图。图2所示的方法的执行主体为电子设备,该方法包括:FIG. 2 is a schematic flowchart diagram of a method for measuring an attitude of an antenna according to an embodiment of the present invention. The execution body of the method shown in FIG. 2 is an electronic device, and the method includes:
S201:从I个视点对应采集I个图像;其中,从每个视点采集一个图像,每个图像中均包含待测量天线子图像和定标板子图像,I≥2,I为整数。S201: Acquire one image correspondingly from one viewpoint; wherein, one image is acquired from each viewpoint, and each image includes an antenna sub-image to be measured and a calibration sub-image, I≥2, and I is an integer.
该步骤S201的相关描述可以参考上文,此处不再赘述。For related description of the step S201, reference may be made to the above, and details are not described herein again.
在本实施例中,“I个视点”为能够使电子设备同时采集到包含待测量天线子图像和定标板子图像的视点。In the present embodiment, the "I viewpoint" is such that the electronic device can simultaneously acquire the viewpoint including the image of the antenna to be measured and the image of the calibration board.
S202:在I个图像的每个图像中,均获取待测量集合中的各点在电子设备坐标系下的二维坐标。S202: In each image of the I images, obtain two-dimensional coordinates of each point in the set to be measured in an electronic device coordinate system.
在本实施例中,待测量集合为待测量天线子图像的外轮廓上的各点构成的集合,或待测量天线子图像的长轴的两个端点构成的集合。In this embodiment, the set to be measured is a set of points formed on the outer contour of the antenna sub-image to be measured, or a set of two endpoints of the long axis of the antenna sub-image to be measured.
电子设备可以通过如下方法获取一图像中待测量天线子图像的外轮廓上的各点在电子设备坐标系下的二维坐标:将一图像中的待测量天线子图像作为前景,将该图像中的其余部分作为背景,形成掩码图像。在掩码图像上,计算待测量天线子图像的外轮廓上的各点在电子设备坐标系下的二维坐标。示例性的,电子设备可以通过调用opencv(开源)数据包中的findContour函数,得到待测量天线子图像的外轮廓上的各点在电子设备坐标系下的二维坐标。The electronic device can obtain the two-dimensional coordinates of each point on the outer contour of the antenna sub-image to be measured in an image in an electronic device coordinate system by using the image of the antenna to be measured in an image as a foreground, and the image is in the image. The rest of the background is used as a background to form a mask image. On the mask image, the two-dimensional coordinates of the points on the outer contour of the antenna sub-image to be measured are calculated in the electronic device coordinate system. Exemplarily, the electronic device can obtain the two-dimensional coordinates of each point on the outer contour of the antenna sub-image to be measured in the electronic device coordinate system by calling the findContour function in the opencv (open source) data packet.
电子设备可以通过如下方法获取一图像中待测量天线子图像的长轴的端点:将上述掩码图像上的N个前景点在电子设备坐标系下的二维坐标构成2×N的矩阵,其中,该矩阵的每列上的元素为一个前景点在电子设备坐标系下的二维坐标;获取以该矩阵的每列上的元素的均值为坐标的点K,以及该矩阵的绝对值较大的特征值所对应的特征向量L,即长轴轴向。K和L所确定的直线与待测量天线 子图像的外轮廓必定有两个交点,该两个交点即为待测量天线子图像的长轴的两个端点。示例性的,N个前景点一般为掩码图像上的所有前景点。电子设备可以通过对上述2×N的矩阵进行主元分析(Principle Component Analysis,PCA),得到该矩阵中每列上的元素的均值。The electronic device can obtain the end point of the long axis of the antenna sub-image to be measured in an image by: forming a 2×N matrix of the two-dimensional coordinates of the N front sights on the mask image in the electronic device coordinate system, wherein The element on each column of the matrix is a two-dimensional coordinate of a front spot in the electronic device coordinate system; a point K obtained by taking the mean value of the elements on each column of the matrix, and the absolute value of the matrix is larger The feature vector L corresponding to the feature value, that is, the long axis axis. The line determined by K and L and the antenna to be measured The outer contour of the sub-image must have two intersection points, which are the two endpoints of the long axis of the antenna sub-image to be measured. Illustratively, the N front attractions are generally all of the previous attractions on the mask image. The electronic device can obtain the mean value of the elements on each column in the matrix by performing Principal Component Analysis (PCA) on the 2×N matrix.
假设待测量集合中的元素的数量为J,其中,J≥2,J为整数;那么,在第i个图像中,待测量集合中的各点可以表示为:
Figure PCTCN2015079596-appb-000001
其中,
Figure PCTCN2015079596-appb-000002
表示待测量集合中的第j个点在第i个图像下的二维坐标构成的向量;
Figure PCTCN2015079596-appb-000003
具体可以表示为
Figure PCTCN2015079596-appb-000004
1≤i≤I,1≤j≤J,i、j均为整数。
Suppose that the number of elements in the set to be measured is J, where J ≥ 2, and J is an integer; then, in the ith image, points in the set to be measured can be expressed as:
Figure PCTCN2015079596-appb-000001
among them,
Figure PCTCN2015079596-appb-000002
a vector representing a two-dimensional coordinate of the jth point in the set to be measured under the i-th image;
Figure PCTCN2015079596-appb-000003
Specifically can be expressed as
Figure PCTCN2015079596-appb-000004
1 ≤ i ≤ I, 1 ≤ j ≤ J, i, j are integers.
S203:根据各点在电子设备坐标系下的二维坐标,获取各点在定标板坐标系下的三维坐标。S203: Obtain three-dimensional coordinates of each point in the calibration plate coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system.
举例而言,电子设备可以根据使
Figure PCTCN2015079596-appb-000005
最小的原则,获得待测量集合中的第j个点在定标板坐标系下的三维坐标;其中,
Figure PCTCN2015079596-appb-000006
表示:待测量集合中的第j个点在定标板坐标系下的三维坐标在第i个图像上的投影,与该第j个点在第i个图像中的位置(即该第j个点在电子设备坐标系下的二维坐标)之间的距离。具体可以通过以下步骤实现:
For example, an electronic device can be
Figure PCTCN2015079596-appb-000005
The minimum principle is to obtain the three-dimensional coordinates of the jth point in the set to be measured in the calibration plate coordinate system;
Figure PCTCN2015079596-appb-000006
Representing: the projection of the three-dimensional coordinates of the j-th point in the calibration set in the calibration plate coordinate system on the i-th image, and the position of the j-th point in the i-th image (ie, the jth The distance between the two-dimensional coordinates of the point in the electronic device coordinate system. This can be achieved by the following steps:
1)、获取Pj到第j个点的每条参考线的垂足,标记为Zj1), obtain the foot of each reference line from P j to the jth point, labeled Z j .
其中,Pj表示待求的第j个点在定标板坐标系下的三维坐标构成的向量;可选的,Pj的初始值为定标板坐标系的原点;当然不限于此。第j个点的参考线为:每个视点下摄像头的光心,与第j个点在电子设备在该视点所采集的图像中的位置所在的直线。Wherein, P j represents a vector formed by the three-dimensional coordinates of the j-th point to be obtained in the calibration plate coordinate system; alternatively, the initial value of P j is the origin of the calibration plate coordinate system; of course, it is not limited thereto. The reference line of the jth point is: the optical center of the camera under each viewpoint, and the line where the jth point is located in the image acquired by the electronic device at the viewpoint.
第i个视点下摄像头的光心与第j个点在第i个图像中的位置所在的直线Li可以表示为:
Figure PCTCN2015079596-appb-000007
Figure PCTCN2015079596-appb-000008
表示第i个视点下,电子设备坐标系到定标板(calibration)坐标系的旋转矩阵,
Figure PCTCN2015079596-appb-000009
表示
Figure PCTCN2015079596-appb-000010
的转置矩阵;
Figure PCTCN2015079596-appb-000011
表示向量
Figure PCTCN2015079596-appb-000012
的第k个元素,k为0或1。
The line L i of the optical center of the camera at the i-th viewpoint and the position of the j-th point in the i-th image can be expressed as:
Figure PCTCN2015079596-appb-000007
Figure PCTCN2015079596-appb-000008
Indicates the rotation matrix of the electronic device coordinate system to the calibration coordinate system at the i-th viewpoint.
Figure PCTCN2015079596-appb-000009
Express
Figure PCTCN2015079596-appb-000010
Transposed matrix
Figure PCTCN2015079596-appb-000011
Representation vector
Figure PCTCN2015079596-appb-000012
The kth element, k is 0 or 1.
其中,电子设备可以利用以下方法获得
Figure PCTCN2015079596-appb-000013
利用在第i个视点下视点所采集的图像中的定标板子图像和待测量天线子图像,获得该视点下视点电子设备的外参数;其中,该外参数包括
Figure PCTCN2015079596-appb-000014
Figure PCTCN2015079596-appb-000015
表示第i个视点下,电子设备坐标系到定标板坐标系的平移矩阵。具体的,电子设备可以根据在每个视点所采集的图像,并调用opencv的calibrateCamera函数,从而得到每个视点下电子设备的外参数。
Wherein, the electronic device can be obtained by the following method
Figure PCTCN2015079596-appb-000013
Obtaining an external parameter of the viewpoint lower point electronic device by using the calibration board sub-image and the antenna sub-image to be measured in the image acquired by the viewpoint under the i-th viewpoint; wherein the external parameter includes
Figure PCTCN2015079596-appb-000014
with
Figure PCTCN2015079596-appb-000015
Indicates the translation matrix of the electronic device coordinate system to the calibration plate coordinate system at the i-th viewpoint. Specifically, the electronic device can obtain an external parameter of the electronic device at each view according to the image acquired at each view point and call the calibrateCamera function of opencv.
2)、根据Zj更新Pj。可选的,电子设备可以将
Figure PCTCN2015079596-appb-000016
的值作为更新后的Pj
2) The update Z j P j. Optional, the electronic device can
Figure PCTCN2015079596-appb-000016
The value is taken as the updated P j .
执行M次步骤1)和2),将最终更新后的Pj作为电子设备执行步骤S203后得到的第j个点在定标板坐标系下的三维坐标。其中,M为大于1的整数。M的值越大,电子设备得到的第j个点在定标板坐标系下的三维坐标越精确;可选的,M=200。Steps 1) and 2) are performed M times, and the finally updated P j is used as the three-dimensional coordinates of the j-th point obtained by the electronic device after the step S203 in the calibration plate coordinate system. Where M is an integer greater than one. The larger the value of M, the more accurate the three-dimensional coordinates of the j-th point obtained by the electronic device in the calibration plate coordinate system; alternatively, M=200.
S204:获取各点在天线坐标系下的三维坐标。S204: Acquire three-dimensional coordinates of each point in an antenna coordinate system.
电子设备预先为待测量天线建立三维模型,并确定天线坐标系。其中,将该三维模型中的待测量天线子图像的长轴所在的方向作为天线坐标系的z轴的方向。电子设备可以直接获得待测量天线的任意一个点在天线坐标系下的三维坐标。The electronic device establishes a three-dimensional model for the antenna to be measured in advance and determines an antenna coordinate system. The direction in which the long axis of the antenna sub-image to be measured in the three-dimensional model is located is taken as the direction of the z-axis of the antenna coordinate system. The electronic device can directly obtain the three-dimensional coordinates of any point of the antenna to be measured in the antenna coordinate system.
将第j个点在天线坐标系下的三维坐标构成的向量标记为FjA vector composed of three-dimensional coordinates of the j-th point in the antenna coordinate system is denoted as F j .
S205:根据各点在定标板坐标系下的三维坐标和各点在天线坐标系下的三维坐标,得到定标板坐标系到天线坐标系的旋转矩阵。S205: According to the three-dimensional coordinates of each point in the coordinate plate coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system, the rotation matrix of the calibration plate coordinate system to the antenna coordinate system is obtained.
举例而言,将各点在天线坐标系下的三维坐标按照旋转矩阵R和平移矩阵T映射到定标板坐标系中;将使各点在定标板坐标系下的三维坐标,到相对应的映射后的该各点在定标板坐标下的三维坐标之间的匹配度最高时的R作为定标板坐标系到天线坐标系的旋转矩阵Rc2aFor example, the three-dimensional coordinates of each point in the antenna coordinate system are mapped to the calibration plate coordinate system according to the rotation matrix R and the translation matrix T; the three-dimensional coordinates of each point in the calibration plate coordinate system are compared to corresponding When the matching degree of the points after the mapping is the highest, the matching degree between the three-dimensional coordinates in the calibration plate coordinates is the rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system.
例如,可以通过下述方法确定Rc2a,当然不限于此。该方法具体可以包括:将J个点在定标板坐标系下的三维坐标构成的向量分别 标记为P1、P2、...、Pj、...、PJ,将该J个点在天线坐标系下的三维坐标构成的向量分别标记为F1、F2、...、Fj、...、FJ;那么,将该J个点两个端点在天线坐标系下的三维坐标按照旋转矩阵R2和平移矩阵T2映射到定标板坐标系中之后,得到的三维坐标构成的分别为R2F1+T2、R2F2+T2、...、R2Fj+T2、...、R2FJ+T2;进一步地,Rc2a为使
Figure PCTCN2015079596-appb-000017
最小时的R2
For example, R c2a can be determined by the following method, of course, not limited thereto. The method may specifically include: marking the vectors formed by the three-dimensional coordinates of the J points in the calibration plate coordinate system as P 1 , P 2 , . . . , P j , . . . , P J , respectively. The vectors formed by the three-dimensional coordinates of the point in the antenna coordinate system are respectively labeled as F 1 , F 2 , ..., F j , ..., F J ; then, the two endpoints of the J points are in the antenna coordinate system. After the three-dimensional coordinates are mapped to the calibration plate coordinate system according to the rotation matrix R 2 and the translation matrix T 2 , the obtained three-dimensional coordinates are respectively composed of R 2 F 1 + T 2 , R 2 F 2 + T 2 , ... R 2 F j + T 2 , ..., R 2 F J + T 2 ; further, R c2a is
Figure PCTCN2015079596-appb-000017
The lowest R 2 .
需要说明的是,每个视点下的Rc2a均相同。It should be noted that R c2a under each viewpoint is the same.
S206:根据定标板坐标系到天线坐标系的旋转矩阵,得到世界坐标系到天线坐标系的旋转矩阵。S206: Obtain a rotation matrix of the world coordinate system to the antenna coordinate system according to the rotation matrix of the calibration plate coordinate system to the antenna coordinate system.
举例而言,根据公式Rw2a=Rw2pRp2cRc2a,得到世界坐标系到天线坐标系的旋转矩阵Rw2a;其中,Rw2p为世界坐标系到电子设备坐标系的旋转矩阵。具体可以通过以下步骤实现:For example, according to the formula R w2a = R w2p R p2c R c2a , a rotation matrix R w2a of the world coordinate system to the antenna coordinate system is obtained ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system. This can be achieved by the following steps:
1)、获取每个视点下的Rw2p,具体的:1), get R w2p under each viewpoint, specific:
根据公式
Figure PCTCN2015079596-appb-000018
得到第i个视点下的Rw2p,即
Figure PCTCN2015079596-appb-000019
其中,φ、θ、ψ分别为电子设备根据第i个视点下电子设备中的加速度传感器测量的数据,得到的电子设备的横滚角、方向角和仰角。
According to the formula
Figure PCTCN2015079596-appb-000018
Get R w2p under the i-th viewpoint, ie
Figure PCTCN2015079596-appb-000019
Wherein, φ, θ, and ψ are respectively the roll angle, the direction angle, and the elevation angle of the obtained electronic device according to the data measured by the acceleration sensor in the electronic device under the i-th viewpoint.
需要说明的是,具体实现时,电子设备中还包括加速度传感器,该方法还可以包括:电子设备在每个视点采集图像时,记录电子设备中的加速度传感器所测量的数据,以获得该视点下世界坐标系到电子设备坐标系的旋转矩阵。It should be noted that, in an implementation, the electronic device further includes an acceleration sensor, and the method may further include: when the electronic device collects an image at each viewpoint, recording the data measured by the acceleration sensor in the electronic device to obtain the view point. The rotation matrix of the world coordinate system to the electronic device coordinate system.
另外需要说明的是,电子设备中的加速度传感器测量的数据为传感器坐标系下的数据。本发明实施例中均以电子设备坐标系与传感器坐标系一致为例进行说明;其中,电子设备坐标系与传感器坐标系一致是指,电子设备坐标系与传感器坐标系之间的旋转矩阵中的各元素均为0。具体实现时,若这两个坐标系不一致,则电子设备需要首先将加速度传感器测量的数据转换为电子设备坐标系下的数 据,再获得世界坐标系到电子设备坐标系的旋转矩阵。其中,传感器坐标系为在传感器中预设的一个坐标系。In addition, it should be noted that the data measured by the acceleration sensor in the electronic device is data in the sensor coordinate system. In the embodiment of the present invention, the electronic device coordinate system is consistent with the sensor coordinate system as an example; wherein the electronic device coordinate system and the sensor coordinate system are consistent, the rotation matrix between the electronic device coordinate system and the sensor coordinate system is Each element is 0. In the specific implementation, if the two coordinate systems are inconsistent, the electronic device needs to first convert the data measured by the acceleration sensor into the number in the electronic device coordinate system. According to this, the rotation matrix of the world coordinate system to the electronic device coordinate system is obtained. The sensor coordinate system is a coordinate system preset in the sensor.
2)、获取每个视点下的Rp2c,具体的:2), get R p2c under each viewpoint, specific:
第i个视点下的Rp2c的获取过程可以参考上述步骤S203。For the acquisition process of R p2c under the i-th viewpoint, reference may be made to step S203 above.
3)、获取每个视点下的Rc2a,具体的:3), get R c2a under each viewpoint, specific:
第i个视点下的Rc2a即为上述步骤S205中得到的Rc2aR c2a the i-th viewpoint is the R c2a obtained in the above step S205.
4)、获取每个视点下的Rw2a,具体的:4), get R w2a under each viewpoint, specific:
根据公式
Figure PCTCN2015079596-appb-000020
得到第i个视点下的Rw2a,即
Figure PCTCN2015079596-appb-000021
According to the formula
Figure PCTCN2015079596-appb-000020
Obtain R w2a under the i-th viewpoint, that is,
Figure PCTCN2015079596-appb-000021
S207:根据世界坐标系到天线坐标系的旋转矩阵,得到待测量天线的姿态信息。其中,姿态信息包括下倾角和方位角。具体的:S207: Obtain posture information of the antenna to be measured according to a rotation matrix of the world coordinate system to the antenna coordinate system. The posture information includes a downtilt angle and an azimuth angle. specific:
1)、根据公式
Figure PCTCN2015079596-appb-000022
得到待测量天线在世界坐标系中的朝向[fi,ni,si]。其中,fi、ni、si分别表示:在世界坐标系中,待测量天线子图像的长轴方向向量、前表面法向量和侧表面法向量;fa、na、sa分别表示:在待测量天线的三维模型上,待测量天线子图像的长轴方向向量、前表面法向量和侧表面法向量。
1), according to the formula
Figure PCTCN2015079596-appb-000022
The orientation [f i , n i , s i ] of the antenna to be measured in the world coordinate system is obtained. Wherein, f i , n i , s i respectively represent: in the world coordinate system, the long-axis direction vector, the front surface normal vector and the side surface normal vector of the antenna sub-image to be measured; f a , n a , s a respectively represent : On the three-dimensional model of the antenna to be measured, the long-axis direction vector, the front surface normal vector, and the side surface normal vector of the antenna sub-image to be measured.
2)获取各视点下待测量天线的下倾角和方位角。具体的:2) Obtain the downtilt and azimuth angles of the antenna to be measured at each viewpoint. specific:
根据公式li=90-arccos(g′·fi)*180/arccos(-1),得到第i个视点下待测量天线的下倾角li;其中,g′=g-g·si,g表示重力向量,g=(0,0,1)T,g′表示g在待测量天线侧表面的投影。According to the formula l i =90-arccos(g'·f i )*180/arccos(-1), the downtilt angle l i of the antenna to be measured at the i-th viewpoint is obtained; where g'=gg·s i ,g Represents a gravity vector, g = (0, 0, 1) T , g' represents the projection of g on the side surface of the antenna to be measured.
根据公式zi=arctan2(na′(0),na′(1))*180/arccos(-1)-90,得到第i个视点下待测量天线的方位角zi。其中,na′(0)表示na′的第k个元素,k为0或1;na′=(na(0),na(1),0),表示na在水平面上的投影;na(k)表示na的第k个元素。According to the formula z i =arctan2(n a '(0), n a '(1))*180/arccos(-1)-90, the azimuth angle z i of the antenna to be measured at the i-th viewpoint is obtained. Where n a '(0) denotes the kth element of n a ', k is 0 or 1; n a '=(n a (0), n a (1), 0), indicating that n a is on a horizontal plane Projection; n a (k) represents the kth element of n a .
3)获取待测量天线的姿态信息。具体的:3) Obtain the attitude information of the antenna to be measured. specific:
根据公式
Figure PCTCN2015079596-appb-000023
得到待测量天线的下倾角l。
According to the formula
Figure PCTCN2015079596-appb-000023
The downtilt angle l of the antenna to be measured is obtained.
根据公式
Figure PCTCN2015079596-appb-000024
得到待测量天线的方位角z。
According to the formula
Figure PCTCN2015079596-appb-000024
The azimuth angle z of the antenna to be measured is obtained.
本实施例提供的测量天线姿态的方法,电子设备通过从I个视点对应采集I个图像,其中,每个图像中均包含待测量天线子图像;并根据该I个图像,获取待测量天线子图像的至少两个点在定标板坐标系下的三维坐标,从而根据该至少两个点在定标板坐标系下的三维坐标与该至少两个点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。本技术方案利用从I个视点对应采集的I个图像测量天线姿态,该过程中不需要在天线上加装任何硬件设备,因此能够解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。并且,该过程中不需要在天线上加装任何硬件设备,还能够节省测量天线姿态的成本。另外,由于本实施例中利用定标板坐标系作为参考坐标系时,该参考坐标系的稳定较高,因此能够使测量结果更精确。The method for measuring the posture of the antenna provided by the embodiment, the electronic device collects one image correspondingly from one viewpoint, wherein each image includes an image of the antenna to be measured; and according to the image, the antenna to be measured is obtained. The three-dimensional coordinates of at least two points of the image in the calibration plate coordinate system, thereby determining according to the three-dimensional coordinates of the at least two points in the calibration plate coordinate system and the three-dimensional coordinates of the at least two points in the antenna coordinate system The attitude information of the antenna to be measured. The technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna. The root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. Moreover, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved. In addition, since the calibration plate coordinate system is used as the reference coordinate system in the present embodiment, the stability of the reference coordinate system is high, and thus the measurement result can be made more accurate.
实施例三Embodiment 3
实施例一中的“参考坐标系”在本实施例中为世界坐标系。The "reference coordinate system" in the first embodiment is the world coordinate system in this embodiment.
参见图3,为本发明实施例提供的一种测量天线姿态的方法的流程示意图。图3所示的方法应用于电子设备,该方法包括:FIG. 3 is a schematic flowchart diagram of a method for measuring an attitude of an antenna according to an embodiment of the present invention. The method shown in Figure 3 is applied to an electronic device, the method comprising:
S301:从I个视点对应采集I个图像;其中,每个视点采集一个图像,每个图像中均包含待测量天线子图像,I≥2,I为整数。S301: Acquire one image correspondingly from one viewpoint; wherein each viewpoint acquires one image, and each image includes an antenna sub-image to be measured, I≥2, and I is an integer.
S302:在I个图像的每个图像中,均获取待测量集合中的各点在电子设备坐标系下的二维坐标。S302: In each image of the I images, obtain two-dimensional coordinates of each point in the set to be measured in an electronic device coordinate system.
S303:根据各点在电子设备坐标系下的二维坐标,获取各点在世界坐标系下的三维坐标。S303: Obtain three-dimensional coordinates of each point in the world coordinate system according to the two-dimensional coordinates of each point in the electronic device coordinate system.
举例而言,电子设备可以根据上述步骤S203的具体实现方法,获取各点在世界坐标系下的三维坐标。具体的,电子设备将上述步骤S203的相关解释中的“定标板坐标系”替换为“世界坐标系”, 即可得到各点在世界坐标系下的三维坐标。For example, the electronic device may acquire three-dimensional coordinates of each point in the world coordinate system according to the specific implementation method of step S203 described above. Specifically, the electronic device replaces the “scaling plate coordinate system” in the related explanation of the above step S203 with the “world coordinate system”. You can get the three-dimensional coordinates of each point in the world coordinate system.
S304:获取各点在天线坐标系下的三维坐标。S304: Acquire three-dimensional coordinates of each point in an antenna coordinate system.
S305:根据各点在世界坐标系下的三维坐标和各点在天线坐标系下的三维坐标,得到世界坐标系到天线坐标系的旋转矩阵。S305: Obtain a rotation matrix of the world coordinate system to the antenna coordinate system according to the three-dimensional coordinates of each point in the world coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system.
举例而言,根据公式Rw2a=Rw2pRp2a,得到世界坐标系到天线坐标系的旋转矩阵Rw2a。具体可以通过以下步骤实现:For example, according to the formula R w2a = R w2p R p2a , the rotation matrix R w2a of the world coordinate system to the antenna coordinate system is obtained . This can be achieved by the following steps:
1)、获取每个视点下的Rw2p,具体的:可以参考实施例二中步骤S206中的1)的相关描述。1), obtaining R w2p under each viewpoint, specific: Refer to the related description of 1) in step S206 in the second embodiment.
2)、获取每个视点下的Rp2a,具体的:电子设备可以根据上述步骤S205的具体实现方式,获取Rw2a。具体的,电子设备将上述步骤S205的具体实现方式中的“定标板坐标系”替换为“世界坐标系”,并将Rc2a替换为Rw2a,即可得到Rw2a2), obtaining R p2a under each viewpoint, specifically: the electronic device may acquire R w2a according to the specific implementation manner of step S205 described above. Specifically, the electronic device replaces the “scaling plate coordinate system” in the specific implementation manner of the above step S205 with the “world coordinate system”, and replaces R c2a with R w2a to obtain R w2a .
S306:根据世界坐标系与天线坐标系之间的旋转矩阵,得到待测量天线的姿态信息。其中,姿态信息包括下倾角和方位角。S306: Obtain posture information of the antenna to be measured according to a rotation matrix between the world coordinate system and the antenna coordinate system. The posture information includes a downtilt angle and an azimuth angle.
需要说明的是,步骤S301的相关描述可以参考上述步骤S101,步骤S302的相关描述可以参考上述步骤S202,步骤S304的相关描述可以参考实施例二中的步骤S204,步骤S305的相关描述可以参考实施例二中的步骤S207,此处不再赘述。It should be noted that the related description of step S301 may refer to step S101 above. The related description of step S302 may refer to step S202. The related description of step S304 may refer to step S204 in the second embodiment. Step S207 in the second example, and details are not described herein again.
本实施例提供的测量天线姿态的方法,电子设备通过从I个视点对应采集I个图像,其中,每个图像中均包含待测量天线子图像;并根据该I个图像,获取待测量天线子图像的至少两个点在世界坐标系下的三维坐标,从而根据该至少两个点在世界坐标系下的三维坐标与该至少两个点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。本技术方案利用从I个视点对应采集的I个图像测量天线姿态,该过程中不需要在天线上加装任何硬件设备,因此能够解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。并且,该过程中不 需要在天线上加装任何硬件设备,还能够节省测量天线姿态的成本。另外,由于本实施例中利用世界坐标系作为参考坐标系,而世界坐标系的坐标轴所在的方向为已知的,因此能够使测量天线姿态的方法实现简单。The method for measuring the posture of the antenna provided by the embodiment, the electronic device collects one image correspondingly from one viewpoint, wherein each image includes an image of the antenna to be measured; and according to the image, the antenna to be measured is obtained. Determining the three-dimensional coordinates of at least two points of the image in the world coordinate system, thereby determining the antenna to be measured according to the three-dimensional coordinates of the at least two points in the world coordinate system and the three-dimensional coordinates of the at least two points in the antenna coordinate system Gesture information. The technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna. The root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. And, not in the process It is necessary to add any hardware device to the antenna, and it can also save the cost of measuring the attitude of the antenna. In addition, since the world coordinate system is used as the reference coordinate system in the present embodiment, and the direction in which the coordinate axes of the world coordinate system are located is known, the method of measuring the attitude of the antenna can be realized simply.
实施例四Embodiment 4
参见图4,为本实施例提供的一种装置的结构示意图,用以执行实施例一提供的测量天线姿态的方法,本实施例中的相关内容的解释可以参考实施例一。如图4所示的装置4可以包括:4 is a schematic structural diagram of a device according to the embodiment, which is used to perform the method for measuring the attitude of the antenna provided in the first embodiment. For the explanation of the related content in this embodiment, reference may be made to the first embodiment. The apparatus 4 as shown in FIG. 4 may include:
第一获取单元41,用于获取电子设备从I个视点对应采集的I个图像;其中,每个所述图像包含待测量天线子图像,I≥2,I为整数;The first acquiring unit 41 is configured to acquire, by the electronic device, I images that are correspondingly collected from the I viewpoints, where each of the images includes an antenna sub-image to be measured, I≥2, and I is an integer;
第二获取单元42,用于获取所述I个图像中的每个图像的待测量集合中的各点在电子设备坐标系下的二维坐标;其中,所述待测量集合为所述待测量天线子图像的至少两个点构成的集合;a second acquiring unit 42 is configured to acquire two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system, where the to-be-measured set is the to-be-measured a collection of at least two points of an antenna sub-image;
第三获取单元43,用于获取所述各点在天线坐标系下的三维坐标;The third obtaining unit 43 is configured to acquire three-dimensional coordinates of the points in the antenna coordinate system;
确定单元44,用于根据所述各点在所述电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。The determining unit 44 is configured to determine posture information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
在本实施例的一种实现方式中,所述确定单元44具体用于:In an implementation manner of this embodiment, the determining unit 44 is specifically configured to:
根据所述各点在电子设备坐标系下的二维坐标,获取所述各点在参考坐标系下的三维坐标;其中,所述参考坐标系为定标板坐标系或世界坐标系;Obtaining, according to the two-dimensional coordinates of the points in the electronic device coordinate system, the three-dimensional coordinates of the points in the reference coordinate system; wherein the reference coordinate system is a calibration plate coordinate system or a world coordinate system;
根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
在该实现方式中,可选的,所述确定单元44具体用于:In this implementation, the determining unit 44 is specifically configured to:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所 述天线坐标系下的三维坐标,得到世界坐标系与所述天线坐标系之间的旋转矩阵;According to the three-dimensional coordinates of the points in the reference coordinate system and the points in the Calculating a three-dimensional coordinate in an antenna coordinate system, and obtaining a rotation matrix between the world coordinate system and the antenna coordinate system;
根据所述世界坐标系与所述天线坐标系之间的旋转矩阵,得到所述待测量天线的姿态信息。Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
在该可选的方式中,示例性的,所述参考坐标系为定标板坐标系;每个所述图像还包含定标板子图像;所述确定单元44具体用于:In this optional manner, exemplarily, the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; the determining unit 44 is specifically configured to:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到所述定标板坐标系到所述天线坐标系的旋转矩阵Rc2a Obtaining a rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ;
根据每个所述图像中均包含定标板子图像,获取所述电子设备坐标系到所述定标板坐标系的旋转矩阵Rp2cObtaining a rotation matrix R p2c of the electronic device coordinate system to the calibration plate coordinate system according to the calibration plate sub-image included in each of the images;
根据公式Rw2a=Rw2pRp2cRc2a,得到所述世界坐标系到所述天线坐标系的旋转矩阵Rw2a;其中,Rw2p为所述世界坐标系到所述电子设备坐标系的旋转矩阵。 Obtaining a rotation matrix R w2a of the world coordinate system to the antenna coordinate system according to the formula R w2a =R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
在本实施例的上述任一种方式中,可选的,所述待测量集合为:所述待测量天线子图像的长轴的两个端点构成的集合,或,所述待测量天线子图像的外轮廓上的点构成的集合。In any of the foregoing manners of the present embodiment, the set to be measured is: a set of two endpoints of a long axis of the antenna sub-image to be measured, or the antenna sub-image to be measured A collection of points on the outer contour.
可选的,所述待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角。Optionally, the posture information of the antenna to be measured includes at least one of the following information: an azimuth angle and a tilt angle.
需要说明的是,本实施例中的装置4可以为上述“电子设备”,也可以为不同于该电子设备的虚拟装置。It should be noted that the device 4 in this embodiment may be the above “electronic device” or may be a virtual device different from the electronic device.
本实施例提供的装置,通过获取电子设备从I个视点对应采集的I个图像,其中,每个图像中均包含待测量天线子图像;并根据该I个图像,获取待测量天线子图像的至少两个点在电子设备坐标系下的二维坐标,从而根据该至少两个点在电子设备坐标系下的二维坐标与各点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。本技术方案利用从I个视点对应采集的I个图像测量天线姿态, 该过程中不需要在天线上加装任何硬件设备,因此能够解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。另外,该过程中不需要在天线上加装任何硬件设备,还能够节省测量天线姿态的成本。The apparatus provided in this embodiment obtains an image of an antenna that is to be measured from the I viewpoints by acquiring an image of the antenna sub-image to be measured in each image; and acquiring an image of the antenna sub-image to be measured according to the I image. Determining the two-dimensional coordinates of the at least two points in the electronic device coordinate system, thereby determining the posture of the antenna to be measured according to the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system information. The technical solution measures the antenna attitude by using one image correspondingly collected from one viewpoint. In this process, it is not necessary to install any hardware device on the antenna, so that it is possible to solve the problem that the process of producing the antenna is complicated due to the need to install measurement equipment for each antenna in the process of producing the antenna in the prior art. . In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
实施例五Embodiment 5
在硬件实现上,上述实施例四中的第一获取单元41、第二获取单元42、第三获取单元43和确定单元44可以以硬件形式内嵌于或独立于装置的存储器中,以便于处理器调用执行以上各个模块对应的操作,该处理器可以为中央处理单元(Central Processing Unit,CPU)、微处理器、单片机等。In hardware implementation, the first obtaining unit 41, the second obtaining unit 42, the third obtaining unit 43, and the determining unit 44 in the foregoing fourth embodiment may be embedded in hardware or in a memory independent of the device, so as to facilitate processing. The device invokes the operations corresponding to the above modules, and the processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
参见图5,为本实施例提供的一种装置的结构示意图,用以执行实施例一提供的测量天线姿态的方法,本实施例中的相关内容的解释可以参考实施例一。如图5所示的装置5可以包括:存储器51、处理器52、无线接口53和总线系统54。5 is a schematic structural diagram of a device according to the embodiment, which is used to perform the method for measuring the attitude of the antenna provided in the first embodiment. For the explanation of the related content in this embodiment, reference may be made to the first embodiment. The apparatus 5 as shown in FIG. 5 may include a memory 51, a processor 52, a wireless interface 53, and a bus system 54.
存储器51和处理器52之间是通过总线系统54耦合在一起的。Between memory 51 and processor 52 are coupled together by bus system 54.
举例而言,总线系统54可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线系统54可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。For example, the bus system 54 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus system 54 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
无线接口53用于使所述的装置5与其他设备之间进行通信。The wireless interface 53 is used to enable communication between the device 5 and other devices.
存储器51,用于存放程序。具体地,该程序可以包括程序代码,该程序代码包括计算机操作指令。举例而言,存储器51可以为高速随机存取存储器(Random Access Memory,RAM),还可以为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 51 is for storing a program. In particular, the program can include program code, the program code including computer operating instructions. For example, the memory 51 may be a high speed random access memory (RAM), or may be a non-volatile memory, such as at least one disk storage.
处理器52执行存储器51存放的程序,以实现实施例一提供的 测量天线姿态的方法。The processor 52 executes the program stored in the memory 51 to implement the method provided in the first embodiment. A method of measuring the attitude of an antenna.
处理器52用于执行以下动作:The processor 52 is configured to perform the following actions:
获取电子设备从I个视点对应采集的I个图像;其中,每个所述图像包含待测量天线子图像,I≥2,I为整数;Obtaining, by the electronic device, I images that are correspondingly collected from one viewpoint; wherein each of the images includes an antenna sub-image to be measured, I≥2, and I is an integer;
获取所述I个图像中的每个图像的待测量集合中的各点在电子设备坐标系下的二维坐标;其中,所述待测量集合为所述待测量天线子图像的至少两个点构成的集合;Acquiring two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system; wherein the to-be-measured set is at least two points of the to-be-measured antenna sub-image a collection of
获取所述各点在天线坐标系下的三维坐标;Obtaining three-dimensional coordinates of the points in the antenna coordinate system;
根据所述各点在所述电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
可选的,处理器52具体用于:Optionally, the processor 52 is specifically configured to:
根据所述各点在电子设备坐标系下的二维坐标,获取所述各点在参考坐标系下的三维坐标;其中,所述参考坐标系为定标板坐标系或世界坐标系;Obtaining, according to the two-dimensional coordinates of the points in the electronic device coordinate system, the three-dimensional coordinates of the points in the reference coordinate system; wherein the reference coordinate system is a calibration plate coordinate system or a world coordinate system;
根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
可选的,处理器52具体用于:Optionally, the processor 52 is specifically configured to:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与所述天线坐标系之间的旋转矩阵;Obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system;
根据所述世界坐标系与所述天线坐标系之间的旋转矩阵,得到所述待测量天线的姿态信息。Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
可选的,所述参考坐标系为定标板坐标系;每个所述图像还包含定标板子图像;处理器52具体用于:Optionally, the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; and the processor 52 is specifically configured to:
根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到所述定标板坐标系到所述天线坐标系的旋转矩阵Rc2a Obtaining a rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ;
根据每个所述图像中均包含定标板子图像,获取所述电子设备坐标系到所述定标板坐标系的旋转矩阵Rp2cObtaining a rotation matrix R p2c of the electronic device coordinate system to the calibration plate coordinate system according to the calibration plate sub-image included in each of the images;
根据公式Rw2a=Rw2pRp2cRc2a,得到所述世界坐标系到所述天线坐标系的旋转矩阵Rw2a;其中,Rw2p为所述世界坐标系到所述电子设备坐标系的旋转矩阵。 Obtaining a rotation matrix R w2a of the world coordinate system to the antenna coordinate system according to the formula R w2a =R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
可选的,所述待测量集合为:所述待测量天线子图像的长轴的两个端点构成的集合,或,所述待测量天线子图像的外轮廓上的点构成的集合。Optionally, the to-be-measured set is: a set of two endpoints of a long axis of the to-be-measured antenna sub-image, or a set of points on an outer contour of the to-be-measured antenna sub-image.
可选的,所述待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角。Optionally, the posture information of the antenna to be measured includes at least one of the following information: an azimuth angle and a tilt angle.
需要说明的是,本实施例中的装置5可以为上述“电子设备”,也可以为不同于该电子设备的虚拟装置。当装置5为上述“电子设备”时,参考上述的方法实施例,该装置5中还可以包括摄像头;在一些可选的实现方式中,该装置5中还可以包括加速度传感器等实体部件。It should be noted that the device 5 in this embodiment may be the above “electronic device” or may be a virtual device different from the electronic device. When the device 5 is the above-mentioned "electronic device", referring to the above-mentioned method embodiment, the device 5 may further include a camera; in some optional implementations, the device 5 may further include a physical component such as an acceleration sensor.
本实施例提供的装置,通过获取电子设备从I个视点对应采集的I个图像,其中,每个图像中均包含待测量天线子图像;并根据该I个图像,获取待测量天线子图像的至少两个点在电子设备坐标系下的二维坐标,从而根据该至少两个点在电子设备坐标系下的二维坐标与各点在天线坐标系下的三维坐标,确定待测量天线的姿态信息。本技术方案利用从I个视点对应采集的I个图像测量天线姿态,该过程中不需要在天线上加装任何硬件设备,因此能够解决现有技术中,因需要在生产天线的过程中为每根天线加装测量设备,从而导致的生产天线的过程较复杂的问题。另外,该过程中不需要在天线上加装任何硬件设备,还能够节省测量天线姿态的成本。The apparatus provided in this embodiment obtains an image of an antenna that is to be measured from the I viewpoints by acquiring an image of the antenna sub-image to be measured in each image; and acquiring an image of the antenna sub-image to be measured according to the I image. Determining the two-dimensional coordinates of the at least two points in the electronic device coordinate system, thereby determining the posture of the antenna to be measured according to the two-dimensional coordinates of the at least two points in the electronic device coordinate system and the three-dimensional coordinates of each point in the antenna coordinate system information. The technical solution measures the attitude of the antenna by using one image correspondingly collected from one viewpoint, and does not need to install any hardware device on the antenna in the process, so that it can solve the prior art, because it needs to be in the process of producing the antenna. The root antenna is equipped with a measuring device, which leads to a more complicated process of producing an antenna. In addition, there is no need to install any hardware device on the antenna in the process, and the cost of measuring the attitude of the antenna can be saved.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be apparent to those skilled in the art that for the convenience and brevity of the description, The following is an example of the division of each functional module. In practical applications, the above-mentioned function assignment can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all of the above descriptions or Some features. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用 以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. , including several instructions All or part of the steps of the method of the various embodiments of the present invention are performed by a computer device (which may be a personal computer, server, or network device, etc.) or processor. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (12)

  1. 一种测量天线姿态的方法,其特征在于,包括:A method for measuring an attitude of an antenna, comprising:
    获取电子设备从I个视点对应采集的I个图像;其中,每个所述图像包含待测量天线子图像,I≥2,I为整数;Obtaining, by the electronic device, I images that are correspondingly collected from one viewpoint; wherein each of the images includes an antenna sub-image to be measured, I≥2, and I is an integer;
    获取所述I个图像中的每个图像的待测量集合中的各点在电子设备坐标系下的二维坐标;其中,所述待测量集合为所述待测量天线子图像的至少两个点构成的集合;Acquiring two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system; wherein the to-be-measured set is at least two points of the to-be-measured antenna sub-image a collection of
    获取所述各点在天线坐标系下的三维坐标;Obtaining three-dimensional coordinates of the points in the antenna coordinate system;
    根据所述各点在所述电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the two-dimensional coordinates of the points in the electronic device coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述各点在电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息,包括:The method according to claim 1, wherein said determining said waiting according to said two-dimensional coordinates of said points in an electronic device coordinate system and three-dimensional coordinates of said points in said antenna coordinate system Measuring the attitude information of the antenna, including:
    根据所述各点在电子设备坐标系下的二维坐标,获取所述各点在参考坐标系下的三维坐标;其中,所述参考坐标系为定标板坐标系或世界坐标系;Obtaining, according to the two-dimensional coordinates of the points in the electronic device coordinate system, the three-dimensional coordinates of the points in the reference coordinate system; wherein the reference coordinate system is a calibration plate coordinate system or a world coordinate system;
    根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息,包括:The method according to claim 2, wherein said determining said waiting according to said three-dimensional coordinates of said points in said reference coordinate system and three-dimensional coordinates of said points in said antenna coordinate system Measuring the attitude information of the antenna, including:
    根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与所述天线坐标系之间的旋转矩阵;Obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system;
    根据所述世界坐标系与所述天线坐标系之间的旋转矩阵,得到所述待测量天线的姿态信息。Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  4. 根据权利要求3所述的方法,其特征在于,所述参考坐标系 为定标板坐标系;每个所述图像还包含定标板子图像;所述根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与天线坐标系之间的旋转矩阵,包括:The method of claim 3 wherein said reference coordinate system a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; the three-dimensional coordinates according to the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system The coordinates, the rotation matrix between the world coordinate system and the antenna coordinate system, including:
    根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到所述定标板坐标系到所述天线坐标系的旋转矩阵Rc2a Obtaining a rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ;
    根据每个所述图像中均包含定标板子图像,获取所述电子设备坐标系到所述定标板坐标系的旋转矩阵Rp2cObtaining a rotation matrix R p2c of the electronic device coordinate system to the calibration plate coordinate system according to the calibration plate sub-image included in each of the images;
    根据公式Rw2a=Rw2pRp2cRc2a,得到所述世界坐标系到所述天线坐标系的旋转矩阵Rw2a;其中,Rw2p为所述世界坐标系到所述电子设备坐标系的旋转矩阵。 Obtaining a rotation matrix R w2a of the world coordinate system to the antenna coordinate system according to the formula R w2a =R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述待测量集合为:所述待测量天线子图像的长轴的两个端点构成的集合,或,所述待测量天线子图像的外轮廓上的点构成的集合。The method according to any one of claims 1 to 4, wherein the set to be measured is: a set of two end points of a long axis of the antenna sub-image to be measured, or the antenna to be measured A collection of points on the outer contour of a sub-image.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角。The method according to any one of claims 1 to 5, wherein the attitude information of the antenna to be measured comprises at least one of the following information: an azimuth angle and a tilt angle.
  7. 一种装置,其特征在于,包括:A device, comprising:
    第一获取单元,用于获取电子设备从I个视点对应采集的I个图像;其中,每个所述图像包含待测量天线子图像,I≥2,I为整数;a first acquiring unit, configured to acquire one image that is collected by the electronic device from the I viewpoints; wherein each of the images includes an antenna sub-image to be measured, I≥2, and I is an integer;
    第二获取单元,用于获取所述I个图像中的每个图像的待测量集合中的各点在电子设备坐标系下的二维坐标;其中,所述待测量集合为所述待测量天线子图像的至少两个点构成的集合;a second acquiring unit, configured to acquire two-dimensional coordinates of each point in the to-be-measured set of each of the I images in an electronic device coordinate system; wherein the to-be-measured set is the antenna to be measured a collection of at least two points of a sub-image;
    第三获取单元,用于获取所述各点在天线坐标系下的三维坐标;a third acquiring unit, configured to acquire three-dimensional coordinates of the points in an antenna coordinate system;
    确定单元,用于根据所述各点在所述电子设备坐标系下的二维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。a determining unit, configured to determine posture information of the antenna to be measured according to two-dimensional coordinates of the points in the electronic device coordinate system and three-dimensional coordinates of the points in the antenna coordinate system.
  8. 根据权利要求7所述的装置,其特征在于,所述确定单元具 体用于:The device according to claim 7, wherein said determining unit has Body for:
    根据所述各点在电子设备坐标系下的二维坐标,获取所述各点在参考坐标系下的三维坐标;其中,所述参考坐标系为定标板坐标系或世界坐标系;Obtaining, according to the two-dimensional coordinates of the points in the electronic device coordinate system, the three-dimensional coordinates of the points in the reference coordinate system; wherein the reference coordinate system is a calibration plate coordinate system or a world coordinate system;
    根据所述各点在所述参考坐标系下的三维坐标与所述各点在所述天线坐标系下的三维坐标,确定所述待测量天线的姿态信息。Determining the attitude information of the antenna to be measured according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system.
  9. 根据权利要求8所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 8, wherein the determining unit is specifically configured to:
    根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到世界坐标系与所述天线坐标系之间的旋转矩阵;Obtaining a rotation matrix between the world coordinate system and the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system;
    根据所述世界坐标系与所述天线坐标系之间的旋转矩阵,得到所述待测量天线的姿态信息。Obtaining posture information of the antenna to be measured is obtained according to a rotation matrix between the world coordinate system and the antenna coordinate system.
  10. 根据权利要求9所述的装置,其特征在于,所述参考坐标系为定标板坐标系;每个所述图像还包含定标板子图像;所述确定单元具体用于:The apparatus according to claim 9, wherein the reference coordinate system is a calibration plate coordinate system; each of the images further includes a calibration plate sub-image; and the determining unit is specifically configured to:
    根据所述各点在所述参考坐标系下的三维坐标和所述各点在所述天线坐标系下的三维坐标,得到所述定标板坐标系到所述天线坐标系的旋转矩阵Rc2a Obtaining a rotation matrix R c2a of the calibration plate coordinate system to the antenna coordinate system according to the three-dimensional coordinates of the points in the reference coordinate system and the three-dimensional coordinates of the points in the antenna coordinate system ;
    根据每个所述图像中均包含定标板子图像,获取所述电子设备坐标系到所述定标板坐标系的旋转矩阵Rp2cObtaining a rotation matrix R p2c of the electronic device coordinate system to the calibration plate coordinate system according to the calibration plate sub-image included in each of the images;
    根据公式Rw2a=Rw2pRp2cRc2a,得到所述世界坐标系到所述天线坐标系的旋转矩阵Rw2a;其中,Rw2p为所述世界坐标系到所述电子设备坐标系的旋转矩阵。 Obtaining a rotation matrix R w2a of the world coordinate system to the antenna coordinate system according to the formula R w2a =R w2p R p2c R c2a ; wherein R w2p is a rotation matrix of the world coordinate system to the electronic device coordinate system .
  11. 根据权利要求7-10任一项所述的装置,其特征在于,所述待测量集合为:所述待测量天线子图像的长轴的两个端点构成的集合,或,所述待测量天线子图像的外轮廓上的点构成的集合。 The device according to any one of claims 7 to 10, wherein the set to be measured is: a set of two endpoints of a long axis of the antenna sub-image to be measured, or the antenna to be measured A collection of points on the outer contour of a sub-image.
  12. 根据权利要求7-11任一项所述的装置,其特征在于,所述待测量天线的姿态信息包括以下信息中的至少一种:方位角、倾斜角。 The apparatus according to any one of claims 7 to 11, wherein the attitude information of the antenna to be measured comprises at least one of the following information: an azimuth angle and a tilt angle.
PCT/CN2015/079596 2015-05-22 2015-05-22 Method and device for measuring antenna attitude WO2016187752A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580080053.1A CN107534202B (en) 2015-05-22 2015-05-22 A kind of method and apparatus measuring antenna attitude
PCT/CN2015/079596 WO2016187752A1 (en) 2015-05-22 2015-05-22 Method and device for measuring antenna attitude

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/079596 WO2016187752A1 (en) 2015-05-22 2015-05-22 Method and device for measuring antenna attitude

Publications (1)

Publication Number Publication Date
WO2016187752A1 true WO2016187752A1 (en) 2016-12-01

Family

ID=57393477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079596 WO2016187752A1 (en) 2015-05-22 2015-05-22 Method and device for measuring antenna attitude

Country Status (2)

Country Link
CN (1) CN107534202B (en)
WO (1) WO2016187752A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110260849A (en) * 2019-06-28 2019-09-20 宜通世纪物联网研究院(广州)有限公司 System and its implementation are determined based on the antenna attitude of image recognition
CN110930344A (en) * 2018-08-29 2020-03-27 杭州海康威视数字技术股份有限公司 Target quality determination method, device and system and electronic equipment
CN111879290A (en) * 2020-07-16 2020-11-03 上海宇航系统工程研究所 Method for measuring mechanical pointing accuracy of large antenna
CN114543746A (en) * 2021-12-29 2022-05-27 西南技术物理研究所 Photoelectric turntable attitude measurement method based on high-precision Beidou positioning
CN114993243A (en) * 2022-08-04 2022-09-02 深圳粤讯通信科技有限公司 Antenna attitude monitoring and early warning system based on Internet of things

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534275A (en) * 2003-03-21 2004-10-06 SK���Źɷ����޹�˾ Method and device for measuring resource information of mobile communication base station antenna
CN101839692A (en) * 2010-05-27 2010-09-22 西安交通大学 Method for measuring three-dimensional position and stance of object with single camera
CN102445177A (en) * 2011-09-22 2012-05-09 华为技术有限公司 Method, device and system for measuring azimuth angle and pitch angle of antenna
US20140205205A1 (en) * 2011-07-01 2014-07-24 Thomas Neubauer Method and apparatus for determining and storing the position and orientation of antenna structures
CN104155635A (en) * 2014-08-23 2014-11-19 中国科学院成都生物研究所 Ground penetrating radar single-channel electromagnetic spectrum three-dimensional positioning method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101806906A (en) * 2010-04-14 2010-08-18 上海华测导航技术有限公司 Position coordinate real-time dynamic combination measuring device and method based on GNSS (Global Navigation Satellite System)
CN104048648B (en) * 2014-05-27 2016-09-21 清华大学深圳研究生院 The relative pose measuring method of large scale noncooperative target
CN104457761B (en) * 2014-11-18 2017-10-24 上海新跃仪表厂 The feature relay method of relative position and posture based on multi-vision visual

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534275A (en) * 2003-03-21 2004-10-06 SK���Źɷ����޹�˾ Method and device for measuring resource information of mobile communication base station antenna
CN101839692A (en) * 2010-05-27 2010-09-22 西安交通大学 Method for measuring three-dimensional position and stance of object with single camera
US20140205205A1 (en) * 2011-07-01 2014-07-24 Thomas Neubauer Method and apparatus for determining and storing the position and orientation of antenna structures
CN102445177A (en) * 2011-09-22 2012-05-09 华为技术有限公司 Method, device and system for measuring azimuth angle and pitch angle of antenna
CN104155635A (en) * 2014-08-23 2014-11-19 中国科学院成都生物研究所 Ground penetrating radar single-channel electromagnetic spectrum three-dimensional positioning method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930344A (en) * 2018-08-29 2020-03-27 杭州海康威视数字技术股份有限公司 Target quality determination method, device and system and electronic equipment
CN110930344B (en) * 2018-08-29 2023-05-05 杭州海康威视数字技术股份有限公司 Target quality determination method, device and system and electronic equipment
CN110260849A (en) * 2019-06-28 2019-09-20 宜通世纪物联网研究院(广州)有限公司 System and its implementation are determined based on the antenna attitude of image recognition
CN111879290A (en) * 2020-07-16 2020-11-03 上海宇航系统工程研究所 Method for measuring mechanical pointing accuracy of large antenna
CN114543746A (en) * 2021-12-29 2022-05-27 西南技术物理研究所 Photoelectric turntable attitude measurement method based on high-precision Beidou positioning
CN114543746B (en) * 2021-12-29 2024-02-20 西南技术物理研究所 Photoelectric turntable attitude measurement method based on high-precision Beidou positioning
CN114993243A (en) * 2022-08-04 2022-09-02 深圳粤讯通信科技有限公司 Antenna attitude monitoring and early warning system based on Internet of things

Also Published As

Publication number Publication date
CN107534202B (en) 2019-10-01
CN107534202A (en) 2018-01-02

Similar Documents

Publication Publication Date Title
US20210233275A1 (en) Monocular vision tracking method, apparatus and non-transitory computer-readable storage medium
WO2021237520A1 (en) Method and apparatus for calibrating extrinsics, and device and storage medium
CN109947886B (en) Image processing method, image processing device, electronic equipment and storage medium
WO2016187752A1 (en) Method and device for measuring antenna attitude
US11204249B2 (en) Positioning method and robot with the same
KR101900873B1 (en) Method, device and system for acquiring antenna engineering parameters
CN110163087B (en) Face gesture recognition method and system
US8155387B2 (en) Method and system for position determination using image deformation
US20130176337A1 (en) Device and Method For Information Processing
WO2022222658A1 (en) Groove depth measurement method, apparatus and system, and laser measurement device
US11514608B2 (en) Fisheye camera calibration system, method and electronic device
CN110136207B (en) Fisheye camera calibration system, fisheye camera calibration method, fisheye camera calibration device, electronic equipment and storage medium
WO2021168838A1 (en) Position information determining method, device, and storage medium
EP3944194A1 (en) Fisheye camera calibration system, method and apparatus, and electronic device and storage medium
US20240071016A1 (en) Mixed reality system, program, mobile terminal device, and method
CN113361365B (en) Positioning method, positioning device, positioning equipment and storage medium
CN110232707A (en) A kind of distance measuring method and device
JP2006234703A (en) Image processing device, three-dimensional measuring device, and program for image processing device
CN113610702B (en) Picture construction method and device, electronic equipment and storage medium
CN105043341B (en) The measuring method and device of unmanned plane distance away the ground
CN110675445B (en) Visual positioning method, device and storage medium
US20210348938A1 (en) Sensor calibration for space translation
CN112633043A (en) Lane line determination method and device, electronic equipment and storage medium
CN115578432B (en) Image processing method, device, electronic equipment and storage medium
CN116182807B (en) Gesture information determining method, device, electronic equipment, system and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15892837

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15892837

Country of ref document: EP

Kind code of ref document: A1