[go: up one dir, main page]

CN116012443A - A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting - Google Patents

A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting Download PDF

Info

Publication number
CN116012443A
CN116012443A CN202211535506.3A CN202211535506A CN116012443A CN 116012443 A CN116012443 A CN 116012443A CN 202211535506 A CN202211535506 A CN 202211535506A CN 116012443 A CN116012443 A CN 116012443A
Authority
CN
China
Prior art keywords
contour
point
points
fitting
straight line
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211535506.3A
Other languages
Chinese (zh)
Inventor
谢成清
薛凯
孙华苗
刘燎
王珏瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Aerospace Dongfanghong Satellite Co ltd
Original Assignee
Shenzhen Aerospace Dongfanghong Satellite Co ltd
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 Shenzhen Aerospace Dongfanghong Satellite Co ltd filed Critical Shenzhen Aerospace Dongfanghong Satellite Co ltd
Priority to CN202211535506.3A priority Critical patent/CN116012443A/en
Publication of CN116012443A publication Critical patent/CN116012443A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Landscapes

  • Image Analysis (AREA)

Abstract

The invention provides an on-orbit satellite pose measurement method based on parallelogram fitting, which comprises the following steps: step A, collecting an image; step B, designing an image processing algorithm, and extracting the outline in the image processing algorithm; step C, combining contour points according to the set judging conditions; step D, selecting a target contour; e, performing parallelogram fitting on the target contour points by utilizing a parallelogram fitting algorithm; and F, extracting corner points and resolving the pose of the target satellite. The beneficial effects of the invention are as follows: 1. the on-orbit Wei Xingwei pose measurement method is applicable to a plurality of occasions and has high fitting precision; 2. the on-orbit Wei Xingwei pose measurement method disclosed by the invention gradually approaches the best fit line in an iterative mode, can eliminate the interference of points with large errors, and is applicable to both closed contour points and discrete point sets.

Description

一种基于平行四边形拟合的在轨卫星位姿测量方法A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting

技术领域technical field

本发明涉及航空技术领域,尤其涉及一种基于平行四边形拟合的在轨卫星位姿测量方法。The invention relates to the field of aviation technology, in particular to an in-orbit satellite pose measurement method based on parallelogram fitting.

背景技术Background technique

随着各国太空活动的增加,太空任务越来越复杂,对卫星的搜索,检测,逼近,伴飞等任务增加,视觉探测是其中的重要方式,因此需要开发高效率、高精度的视觉测量算法。With the increase of space activities in various countries, space missions are becoming more and more complex, and tasks such as satellite search, detection, approach, and accompanying flight are increasing, and visual detection is an important method. Therefore, it is necessary to develop high-efficiency and high-precision visual measurement algorithms .

发明内容Contents of the invention

为了解决现有技术中的问题,本发明提供了一种基于平行四边形拟合的在轨卫星位姿测量方法。In order to solve the problems in the prior art, the present invention provides an on-orbit satellite pose measurement method based on parallelogram fitting.

本发明提供了一种基于平行四边形拟合的在轨卫星位姿测量方法,包括以下步骤:The invention provides a method for measuring the position and attitude of satellites in orbit based on parallelogram fitting, comprising the following steps:

步骤A,采集图像。Step A, collecting images.

步骤B,设计图像处理算法,提取其中的轮廓。Step B, designing an image processing algorithm to extract the contours therein.

步骤C,根据设置的判定条件,组合轮廓点。Step C, combining the contour points according to the set judgment conditions.

步骤D,目标轮廓选择。Step D, target contour selection.

步骤E,利用平行四边形拟合算法对目标轮廓点进行平行四边形拟合。Step E, using a parallelogram fitting algorithm to perform parallelogram fitting on the target contour points.

步骤F,提取角点并解算目标卫星的位姿。Step F, extract corner points and calculate the pose of the target satellite.

作为本发明的进一步改进,在所述步骤B中,还包括:As a further improvement of the present invention, in the step B, it also includes:

步骤B1,图像畸变去除。Step B1, image distortion removal.

步骤B2,根据目标卫星在图像中的区域,设置ROI搜索区域。Step B2, according to the area of the target satellite in the image, set the ROI search area.

步骤B3,将图像转化为适合机器判断的HLS格式。Step B3, converting the image into an HLS format suitable for machine judgment.

步骤B4,对图像进行中值滤波,减少噪点干扰。Step B4, performing median filtering on the image to reduce noise interference.

步骤B5,根据图片各像素点的HLS值提取目标区域,将图像转化为二值图。In step B5, the target area is extracted according to the HLS value of each pixel of the image, and the image is converted into a binary image.

步骤B6,利用形态学闭操作减少图像中的干扰,填充目标区域的空隙,减小提取误差。Step B6, use the morphological closing operation to reduce the interference in the image, fill the gaps in the target area, and reduce the extraction error.

步骤B7,提取轮廓。Step B7, extract the contour.

作为本发明的进一步改进,在所述步骤C中,还包括:As a further improvement of the present invention, in the step C, it also includes:

步骤C1,利用最小包络矩形拟合各轮廓点集,获得拟合矩形后矩形的中心点、边长、绕中心点的旋转角度。Step C1, use the minimum enveloping rectangle to fit each contour point set, and obtain the center point, side length, and rotation angle around the center point of the fitted rectangle.

步骤C2,从第一个轮廓开始,依次判断两个轮廓间距离与轮廓拟合矩形边长间的关系,如果差异大于阈值,则合并轮廓点集到前一个轮廓点集中,并删去后一个轮廓点集。Step C2, starting from the first contour, sequentially judge the relationship between the distance between the two contours and the side length of the contour fitting rectangle, if the difference is greater than the threshold, merge the contour point set into the previous contour point set, and delete the latter one Set of contour points.

步骤C3,返回步骤C1,重复步骤C2、步骤C3,直到没有轮廓可以被合并。Step C3, return to step C1, repeat steps C2 and C3 until no contours can be merged.

步骤C4,根据各轮廓点集中点的数量筛选轮廓点集,删去轮廓点数量较少的轮廓。Step C4, filter the contour point set according to the number of points in each contour point set, and delete the contour with a small number of contour points.

作为本发明的进一步改进,在所述步骤D中,提取目标为太阳帆板对应的轮廓,包括:As a further improvement of the present invention, in the step D, the extraction target is the contour corresponding to the solar panel, including:

步骤D1,选择轮廓点数目最大的轮廓则为目标太阳帆板的轮廓。In step D1, the contour with the largest number of contour points is selected as the contour of the target solar panel.

步骤D2,按照帆板在图像平面的位置关系区分帆板轮廓,中心点坐标(u,v)中,u最小的为最左侧帆板,u居中的为中间帆板,u最大的为最右侧帆板。Step D2, distinguish the outline of the sailboard according to the positional relationship of the sailboard on the image plane. Among the center point coordinates (u, v), the sailboard with the smallest u is the leftmost sailboard, the one with u in the middle is the middle sailboard, and the one with the largest u is the farthest sailboard. Right side sailboard.

作为本发明的进一步改进,在所述步骤E中,还包括:As a further improvement of the present invention, in the step E, it also includes:

步骤E1,获得需要拟合的轮廓点集,求轮廓的中心点,即各点(u,v)坐标的平均值。Step E1, obtain the contour point set to be fitted, and calculate the center point of the contour, that is, the average value of the (u, v) coordinates of each point.

步骤E2,利用最小二乘法求拟合的最优直线ax+by+c=0,该直线通过轮廓点集的中心点。Step E2, using the least squares method to obtain an optimal fitting straight line ax+by+c=0, the straight line passing through the center point of the contour point set.

步骤E3,确定拟合与最优直线近似平行的平行四边形的两条边缘线的点集。Step E3, determining point sets fitting two edge lines of a parallelogram approximately parallel to the optimal straight line.

步骤E4,利用最小二乘法分别拟合上下轮廓点集的最佳拟合直线,拟合的两条直线需为平行直线,利用两个轮廓点集分别拟合两条直线后求解直线的偏转角,根据两个轮廓点集元素数量求直线偏转角的加权平均值,进而确定两条直线的a,b,c1,c2。Step E4, use the least squares method to fit the best fitting straight lines of the upper and lower contour point sets respectively, the two fitted straight lines need to be parallel straight lines, use the two contour point sets to fit the two straight lines respectively, and then calculate the deflection angle of the straight line , calculate the weighted average of the deflection angle of the straight line according to the number of elements in the two contour point sets, and then determine the a, b, c1, c2 of the two straight lines.

步骤E5,确定拟合平行四边形另外两条平行线的点集。Step E5, determining point sets for fitting the other two parallel lines of the parallelogram.

步骤E6,根据步骤E5获得的点集拟合另外两条平行直线。Step E6, fitting another two parallel straight lines according to the point set obtained in step E5.

步骤E7,根据初步确定的拟合平行四边形四条边的点集和初步确认的四条边的直线方程,通过迭代的方式逐渐逼近平行四边形四条边的最优直线方程。Step E7, according to the preliminarily determined point set for fitting the four sides of the parallelogram and the preliminarily confirmed straight line equations of the four sides, gradually approach the optimal straight line equation of the four sides of the parallelogram in an iterative manner.

作为本发明的进一步改进,在所述步骤E3中,还包括:As a further improvement of the present invention, in the step E3, it also includes:

步骤E30,根据轮廓点与直线的位置关系,将轮廓点分为直线上方(包含直线上)的点和直线下方的点两部分。Step E30 , according to the positional relationship between the contour points and the straight line, the contour points are divided into two parts: points above the straight line (including on the straight line) and points below the straight line.

步骤E31,计算每个轮廓点到直线的距离,并分别找到直线上方点和直线下方点到直线的最大距离。Step E31, calculate the distance from each contour point to the straight line, and find the maximum distances from the points above the straight line and the points below the straight line to the straight line respectively.

步骤E32,对于直线上下方的点,分别根据各点到直线的距离与步骤E31中求得的最大距离的差异分配到不同的点集中。Step E32, for the points above and below the straight line, assign them to different point sets according to the difference between the distance from each point to the straight line and the maximum distance obtained in step E31.

步骤E33,对于上下方的点,如果最远点集的元素数量最多,或最远点集元素数目大于阈值,则最远点集为轮廓边缘点所在的集合,否则剩余点集中元素数目最多的点集为轮廓边缘点所在的集合。Step E33, for the upper and lower points, if the number of elements in the farthest point set is the largest, or the number of elements in the farthest point set is greater than the threshold, then the farthest point set is the set where the contour edge points are located, otherwise the remaining point set has the largest number of elements The point set is the set where the contour edge points are located.

作为本发明的进一步改进,在所述步骤E5中,还包括:As a further improvement of the present invention, in the step E5, it also includes:

步骤E50,求步骤E4中点集中与拟合的两条直线距离小于阈值且在点集边缘的点作为所需拟合的平行四边形另外两条边的起始搜索点。Step E50, finding the point set in step E4 whose distance from the two fitted straight lines is less than the threshold and on the edge of the point set as the starting search point for the other two sides of the parallelogram to be fitted.

步骤E51,通过步骤E50中得到的两对起始搜索点求解通过两点的直线,将这两条直线作为所需拟合的平行四边形的两条初始边线,搜索距离直线小于阈值的点作为拟合平行四边形两条边线的点集,拟合两部分点集组成的直线,方法与步骤E4相同。Step E51, solve the straight line passing through two points through the two pairs of initial search points obtained in step E50, use these two straight lines as the two initial sidelines of the parallelogram to be fitted, and search for points whose distance from the straight line is smaller than the threshold value as the fitted line. Combine the point sets of the two sidelines of the parallelogram to fit the straight line formed by the two part point sets, the method is the same as step E4.

作为本发明的进一步改进,在所述步骤E7中,还包括:As a further improvement of the present invention, in the step E7, it also includes:

步骤E70,对于用于拟合平行四边形四条边线的点集,判断各点距离其拟合后直线的距离,小于阈值则保留,大于阈值则删去。Step E70, for the point set used to fit the four sides of the parallelogram, determine the distance between each point and the fitted straight line, if it is less than the threshold, keep it, and if it is greater than the threshold, delete it.

步骤E71,用步骤E70处理后的点集拟合平行四边形的两对平行边缘线,方法与步骤E4相同。Step E71, using the point set processed in step E70 to fit two pairs of parallel edge lines of a parallelogram, the method is the same as step E4.

步骤E72,判断前后两次删去的点是否小于阈值,如果是,则结束,如果否,则返回步骤E70,其中步骤E70所用的距离阈值会随迭代次数增加而减小。Step E72, judging whether the points deleted twice before and after are smaller than the threshold, if yes, then end, if not, then return to step E70, wherein the distance threshold used in step E70 will decrease with the increase of the number of iterations.

作为本发明的进一步改进,在所述步骤F中,还包括:As a further improvement of the present invention, in the step F, it also includes:

步骤F1,求解拟合的四条直线相交形成的四个角点。Step F1, solving the four corner points formed by the intersection of the four fitted straight lines.

步骤F2,求卫星在相机坐标系中的位姿。Step F2, find the pose of the satellite in the camera coordinate system.

作为本发明的进一步改进,在所述步骤F2中,如果已知太阳帆板的三维尺寸,对于单目相机,可以利用P12P算法,如果某角点拟合误差较大,可排除该角点,利用剩余角点拟合,对于双目相机或多目相机,可对每个单目相机图像利用P12P算法求解卫星位姿后取平均值,如果不知太阳帆板的三维尺寸,则可用双目相机或多目相机,求解每一个角点的位置后得到卫星的位姿。As a further improvement of the present invention, in the step F2, if the three-dimensional size of the solar panel is known, the P12P algorithm can be used for the monocular camera, and if a certain corner point has a large fitting error, the corner point can be excluded, Using the remaining corner fitting, for a binocular camera or a multi-eye camera, you can use the P12P algorithm to solve the satellite pose for each monocular camera image and take the average value. If you don’t know the three-dimensional size of the solar panel, you can use a binocular camera Or a multi-eye camera, after solving the position of each corner point, the pose of the satellite is obtained.

本发明的有益效果是:1.本发明的在轨卫星位姿测量方法适用场合多,拟合精度高;2.本发明的在轨卫星位姿测量方法通过迭代的方式逐步逼近最佳拟合线,能够剔除误差大的点的干扰,对于闭合轮廓点与离散点集均适用。The beneficial effects of the present invention are: 1. The on-orbit satellite pose measurement method of the present invention is suitable for many occasions, and the fitting accuracy is high; 2. The on-orbit satellite pose and pose measurement method of the present invention gradually approaches the best fitting by iterative mode Lines can eliminate the interference of points with large errors, and are applicable to both closed contour points and discrete point sets.

附图说明Description of drawings

图1是本发明卫星模型示意图;Fig. 1 is a schematic diagram of a satellite model of the present invention;

图2是本发明在轨卫星位姿测量方法的流程图;Fig. 2 is the flow chart of the method for measuring the position and attitude of the satellite in orbit of the present invention;

图3是本发明轮廓点平行四边形拟合的流程图;Fig. 3 is the flow chart of contour point parallelogram fitting of the present invention;

图4是本发明卫星太阳帆板平行四边形拟合的效果图。Fig. 4 is an effect diagram of the parallelogram fitting of the satellite solar panel of the present invention.

具体实施方式Detailed ways

太阳帆板表面积很大,展开后目标较为明显,因此本发明将太阳帆板作为视觉检测对象。太阳帆板表面一般由多组矩形阵组成,单个矩形尺寸过小,且矩形间间距较小,在图像中难以保证能够完全区分,因此将单个太阳帆板整体作为视觉检测对象。帆板内各小矩形边缘及矩形间空隙会对图像识别造成很多干扰,本发明提出的基于平行四边形拟合的在轨卫星位姿测量方法能够剔除轮廓内部的干扰,通过对轮廓点的平行四边形拟合实现对太阳帆板的检测。The surface area of the solar panel is large, and the target is more obvious after being unfolded, so the present invention uses the solar panel as the visual detection object. The surface of a solar panel is generally composed of multiple groups of rectangular arrays. The size of a single rectangle is too small, and the distance between the rectangles is small, so it is difficult to ensure that it can be completely distinguished in the image. Therefore, a single solar panel as a whole is used as a visual inspection object. The edges of the small rectangles in the sailboard and the spaces between the rectangles will cause a lot of interference to image recognition. The on-orbit satellite pose measurement method based on parallelogram fitting proposed by the present invention can eliminate the interference inside the outline. Fitting realizes the detection of solar panels.

本发明的目的是用于在卫星伴飞,卫星逼近等任务中,以卫星上均具备的太阳帆板为检测对象,利用视觉检测的方式,检测太阳帆板的位姿,针对太阳帆板上纹路较多,对目标边缘提取影响很大的特征,通过图像处理得到图像中的轮廓后利用最小矩形包络等方法处理和组合轮廓,并结合太阳帆板在笛卡尔空间的位姿和在图像中的位置设置检测条件,提取到三个帆板对应的轮廓。然后利用本发明提出的轮廓点平行四边形拟合算法求解轮廓的四个角点。本发明适用场合多,拟合精度高。The purpose of the present invention is to use the solar panels on the satellites as detection objects in tasks such as satellite accompanying flight and satellite approaching, and use the mode of visual detection to detect the position and posture of the solar panels. There are many textures, which have a great influence on the extraction of the target edge. After obtaining the contour in the image through image processing, use the minimum rectangular envelope and other methods to process and combine the contour, and combine the pose of the solar panel in Cartesian space and in the image. The detection conditions are set in the position, and the contours corresponding to the three sailboards are extracted. Then, the four corner points of the contour are solved by using the contour point parallelogram fitting algorithm proposed by the present invention. The present invention has many applicable occasions and high fitting precision.

本发明提出的一种新的平行四边形拟合算法,用于对笛卡尔空间中有表面形状为矩形的物体在图像平面中的拟合,本算法利用最小二乘法求解所有轮廓点拟合的最佳直线,用其初步确认了用于拟合两条平行线的点集,并进一步确认了用于拟合另外两条平行线的点集,在此基础上,通过迭代的方式删去偏移拟合线的点,求解所拟合的平行四边形的四条边线。该算法通过迭代的方式逐步逼近最佳拟合线,能够剔除误差大的点的干扰,对于闭合轮廓点与离散点集均适用。A new parallelogram fitting algorithm proposed by the present invention is used to fit objects with a rectangular surface shape in the image plane in Cartesian space. This algorithm uses the least square method to solve the best fit of all contour points. The best straight line, using it to preliminarily confirm the point set used to fit two parallel lines, and further confirm the point set used to fit the other two parallel lines, on this basis, delete the offset by iteration The points of the fitted line are solved for the four sides of the fitted parallelogram. The algorithm gradually approaches the best fitting line by iterative method, and can eliminate the interference of points with large errors, and is applicable to both closed contour points and discrete point sets.

本发明的技术方案的测量对象为卫星。如图1示,卫星表面有3个太阳帆板,以这三个太阳帆板作为本发明的检测对象。The measurement object of the technical solution of the present invention is a satellite. As shown in Figure 1, there are three solar panels on the surface of the satellite, and these three solar panels are used as the detection objects of the present invention.

如图2所示,本发明公开了一种基于平行四边形拟合的在轨卫星位姿测量方法,包括以下步骤:As shown in Figure 2, the present invention discloses a method for measuring the position and attitude of satellites in orbit based on parallelogram fitting, comprising the following steps:

步骤A,采集图像;利用单目或多目相机拍摄卫星的图像。Step A, collecting images; using a monocular or multi-camera to capture satellite images.

步骤B,设计图像处理算法,提取其中的轮廓。Step B, designing an image processing algorithm to extract the contours therein.

步骤C,根据设置的判定条件,组合轮廓点。Step C, combining the contour points according to the set judgment conditions.

步骤D,目标轮廓选择。Step D, target contour selection.

步骤E,利用平行四边形拟合算法对目标轮廓点进行平行四边形拟合。Step E, using a parallelogram fitting algorithm to perform parallelogram fitting on the target contour points.

步骤F,提取角点并解算目标卫星的位姿。Step F, extract corner points and calculate the pose of the target satellite.

在所述步骤B中,包括:In said step B, comprising:

步骤B1,图像畸变去除。Step B1, image distortion removal.

步骤B2,根据目标卫星在图像中的区域,设置ROI(局部感兴趣)搜索区域,提高计算效率。In step B2, according to the area of the target satellite in the image, a ROI (local interest) search area is set to improve calculation efficiency.

步骤B3,将图像转化为更适合机器判断的HLS格式。Step B3, converting the image into an HLS format that is more suitable for machine judgment.

步骤B4,对图像进行中值滤波,减少噪点干扰。Step B4, performing median filtering on the image to reduce noise interference.

步骤B5,根据图片各像素点的HLS值提取目标区域,将图像转化为二值图。In step B5, the target area is extracted according to the HLS value of each pixel of the image, and the image is converted into a binary image.

步骤B6,利用形态学闭操作减少图像中的干扰,填充目标区域的空隙,减小提取误差。Step B6, use the morphological closing operation to reduce the interference in the image, fill the gaps in the target area, and reduce the extraction error.

步骤B7,提取轮廓。Step B7, extract the contour.

在所述步骤C中,还包括:In said step C, also include:

步骤C1,利用最小包络矩形拟合各轮廓点集,获得拟合矩形后矩形的中心点、边长、绕中心点的旋转角度等。Step C1, use the minimum enveloping rectangle to fit each contour point set, and obtain the center point, side length, rotation angle around the center point, etc. of the fitted rectangle.

步骤C2,从第一个轮廓开始,依次判断两个轮廓间距离与轮廓拟合矩形边长间的关系,如果差异大于阈值,则合并轮廓点集到前一个轮廓点集中,并删去后一个轮廓点集。Step C2, starting from the first contour, sequentially judge the relationship between the distance between the two contours and the side length of the contour fitting rectangle, if the difference is greater than the threshold, merge the contour point set into the previous contour point set, and delete the latter one Set of contour points.

步骤C3,返回步骤C1,重复步骤C2、步骤C3,直到没有轮廓可以被合并。Step C3, return to step C1, repeat steps C2 and C3 until no contours can be merged.

步骤C4,根据各轮廓点集中点的数量筛选轮廓点集,删去轮廓点数量较少的轮廓。Step C4, filter the contour point set according to the number of points in each contour point set, and delete the contour with a small number of contour points.

在所述步骤D中,提取目标为太阳帆板对应的轮廓,具体包括:In the step D, the target is extracted as the contour corresponding to the solar panel, specifically including:

步骤D1,选择轮廓点数目最大的3个轮廓则为3个目标太阳帆板的轮廓;Step D1, select the 3 contours with the largest number of contour points as the contours of the 3 target solar panels;

步骤D2,按照3个帆板在图像平面的位置关系区分3个帆板轮廓,中心点坐标(u,v)中,u最小的为最左侧帆板,u居中的为中间帆板,u最大的为最右侧帆板。Step D2, according to the positional relationship of the three sailboards in the image plane, distinguish the outlines of the three sailboards. Among the center point coordinates (u, v), the sailboard with the smallest u is the leftmost sailboard, the one with u in the middle is the middle sailboard, and u The largest is the rightmost sailboard.

如图3所示,在所述步骤E中,还包括:As shown in Figure 3, in said step E, also include:

步骤E1,获得需要拟合的轮廓点集,求轮廓的中心点,即各点(u,v)坐标的平均值。Step E1, obtain the contour point set to be fitted, and calculate the center point of the contour, that is, the average value of the (u, v) coordinates of each point.

步骤E2,利用最小二乘法求拟合的最优直线ax+by+c=0,该直线通过轮廓点集的中心点。Step E2, using the least squares method to obtain an optimal fitting straight line ax+by+c=0, the straight line passing through the center point of the contour point set.

步骤E3,确定拟合与最优直线近似平行的平行四边形的两条边缘线的点集。Step E3, determining point sets fitting two edge lines of a parallelogram approximately parallel to the optimal straight line.

步骤E4,利用最小二乘法分别拟合上下轮廓点集的最佳拟合直线,拟合的两条直线需为平行直线,因为拟合的平行四边形两对边应分别平行,利用两个轮廓点集分别拟合两条直线后求解直线的偏转角,根据两个轮廓点集元素数量求直线偏转角的加权平均值,进而确定两条直线的a,b,c1,c2。Step E4, using the least squares method to fit the best fitting straight lines of the upper and lower contour point sets respectively, the two fitted straight lines must be parallel straight lines, because the two opposite sides of the fitted parallelogram should be parallel respectively, using two contour points After fitting two straight lines, the deflection angle of the straight line is calculated, and the weighted average of the deflection angle of the straight line is calculated according to the number of elements of the two contour point sets, and then a, b, c1, c2 of the two straight lines are determined.

步骤E5,确定拟合平行四边形另外两条平行线的点集。Step E5, determining point sets for fitting the other two parallel lines of the parallelogram.

步骤E6,根据步骤E5获得的点集拟合另外两条平行直线。Step E6, fitting another two parallel straight lines according to the point set obtained in step E5.

步骤E7,根据初步确定的拟合平行四边形四条边的点集和初步确认的四条边的直线方程,通过迭代的方式逐渐逼近平行四边形四条边的最优直线方程。Step E7, according to the preliminarily determined point set for fitting the four sides of the parallelogram and the preliminarily confirmed straight line equations of the four sides, gradually approach the optimal straight line equation of the four sides of the parallelogram in an iterative manner.

在所述步骤E3中,还包括:In said step E3, also include:

步骤E30,根据轮廓点与直线的位置关系,将轮廓点分为直线上方(包含直线上)的点和直线下方的点两部分。Step E30 , according to the positional relationship between the contour points and the straight line, the contour points are divided into two parts: points above the straight line (including on the straight line) and points below the straight line.

步骤E31,计算每个轮廓点到直线的距离,并分别找到直线上方点和直线下方点到直线的最大距离。Step E31, calculate the distance from each contour point to the straight line, and find the maximum distances from the points above the straight line and the points below the straight line to the straight line respectively.

步骤E32,对于直线上下方的点,分别根据各点到直线的距离与步骤E31中求得的最大距离的差异分配到不同的点集中。Step E32, for the points above and below the straight line, assign them to different point sets according to the difference between the distance from each point to the straight line and the maximum distance obtained in step E31.

步骤E33,对于上下方的点,如果最远点集的元素数量最多,或最远点集元素数目大于阈值,则最远点集为轮廓边缘点所在的集合,否则剩余点集中元素数目最多的点集为轮廓边缘点所在的集合。因为一般情况下,轮廓点应分布在比较集中的区域中,且轮廓点一般应在整个轮廓点集比较边缘的位置。Step E33, for the upper and lower points, if the number of elements in the farthest point set is the largest, or the number of elements in the farthest point set is greater than the threshold, then the farthest point set is the set where the contour edge points are located, otherwise the remaining point set has the largest number of elements The point set is the set where the contour edge points are located. Because in general, the contour points should be distributed in relatively concentrated areas, and the contour points should generally be at the edge of the entire contour point set.

在所述步骤E5中,还包括:In said step E5, also include:

步骤E50,求步骤E4中点集中与拟合的两条直线距离小于阈值且在点集边缘的点作为所需拟合的平行四边形另外两条边的起始搜索点。Step E50, finding the point set in step E4 whose distance from the two fitted straight lines is less than the threshold and on the edge of the point set as the starting search point for the other two sides of the parallelogram to be fitted.

步骤E51,通过步骤E50中得到的两对起始搜索点求解通过两点的直线,将这两条直线作为所需拟合的平行四边形的两条初始边线,搜索距离直线小于阈值的点作为拟合平行四边形两条边线的点集,拟合两部分点集组成的直线,方法与步骤E4相同。Step E51, solve the straight line passing through two points through the two pairs of initial search points obtained in step E50, use these two straight lines as the two initial sidelines of the parallelogram to be fitted, and search for points whose distance from the straight line is smaller than the threshold value as the fitted line. Combine the point sets of the two sidelines of the parallelogram to fit the straight line formed by the two part point sets, the method is the same as step E4.

在所述步骤E7中,还包括:In said step E7, also include:

步骤E70,对于用于拟合平行四边形四条边线的点集,判断各点距离其拟合后直线的距离,小于阈值则保留,大于阈值则删去。Step E70, for the point set used to fit the four sides of the parallelogram, determine the distance between each point and the fitted straight line, if it is less than the threshold, keep it, and if it is greater than the threshold, delete it.

步骤E71,用步骤E70处理后的点集拟合平行四边形的两对平行边缘线,方法与步骤E4相同。Step E71, using the point set processed in step E70 to fit two pairs of parallel edge lines of a parallelogram, the method is the same as step E4.

步骤E72,判断前后两次删去的点是否小于阈值,如果是,则结束,如果否,则返回步骤E70;即重复步骤E70、步骤E71,继续进行判断,直至前后两次处理后四个点集删去的点均小于阈值,其中步骤E70所用的距离阈值会随迭代次数增加而减小。Step E72, judge whether the points deleted twice before and after are less than the threshold value, if yes, then end, if not, then return to step E70; that is, repeat step E70, step E71, continue to judge until the four points after the two times of processing The points deleted from the set are all smaller than the threshold, and the distance threshold used in step E70 will decrease as the number of iterations increases.

在所述步骤F中,还包括:In said step F, also include:

步骤F1,求解拟合的四条直线相交形成的四个角点,即为所拟合平行四边形的四个角点,三个轮廓共12个角点。Step F1, solving the four corner points formed by the intersection of the four fitted straight lines, that is, the four corner points of the fitted parallelogram, and the three contours have a total of 12 corner points.

步骤F2,求卫星在相机坐标系中的位姿。Step F2, find the pose of the satellite in the camera coordinate system.

在所述步骤F2中,如果已知卫星帆板的三维尺寸,对于单目相机,可以利用P12P算法,如果某角点拟合误差较大,可排除该角点,利用剩余角点拟合,对于双目相机或多目相机,可对每个单目相机图像利用P12P算法求解卫星位姿后取平均值,如果不知卫星帆板的三维尺寸,则可用双目相机或多目相机,求解每一个角点的位置后得到卫星的位姿。In the step F2, if the three-dimensional size of the satellite sailboard is known, the P12P algorithm can be used for the monocular camera. If the fitting error of a certain corner point is large, the corner point can be excluded and the remaining corner points can be used for fitting. For a binocular camera or a multi-eye camera, the P12P algorithm can be used to calculate the satellite pose for each monocular camera image and then take the average value. After obtaining the position of a corner point, the pose of the satellite is obtained.

如图4所示,为对卫星三个太阳帆板的拟合效果,连线为平行四边形的四条边,各边交点,及圆点处为拟合的平行四边形的角点,从拟合图像可以看出,该算法拟合精度很高,整个算法与直线提取等算法相比,计算量较小。As shown in Figure 4, it is the fitting effect of the three solar panels of the satellite. The connecting lines are the four sides of the parallelogram, the intersection points of each side, and the dots are the corner points of the fitted parallelogram. From the fitting image It can be seen that the fitting accuracy of the algorithm is very high, and the calculation amount of the whole algorithm is relatively small compared with other algorithms such as straight line extraction.

与现有的技术相比,本发明具有以下的优点:Compared with the prior art, the present invention has the following advantages:

1、本发明提供了检测卫星和测量卫星位姿的方法,以卫星基本均具备的太阳帆板为特征检测对象,针对太阳帆板上纹路较多,对目标边缘提取影响很大的特征,通过图像处理得到图像中的轮廓后利用最小矩形包络等方法处理和组合轮廓,并结合太阳帆板在笛卡尔空间的位姿和在图像中的位置设置检测条件,提取到三个帆板对应的轮廓,然后利用本发明提出的轮廓平行四边形拟合算法求解轮廓的四个角点,本发明的在轨卫星位姿测量方法适用场合多,拟合精度高。1. The present invention provides a method for detecting satellites and measuring the position and attitude of satellites. The solar panels that are basically all equipped with satellites are used as the feature detection object. For the features that have many lines on the solar panels and have a great influence on the edge extraction of the target, through Image processing After obtaining the contours in the image, use methods such as the minimum rectangular envelope to process and combine the contours, and combine the pose of the solar panels in the Cartesian space and the position in the image to set the detection conditions, and extract the corresponding values of the three sails. contour, and then use the contour parallelogram fitting algorithm proposed by the present invention to solve the four corner points of the contour. The method for measuring the position and attitude of the satellite in orbit of the present invention is applicable to many occasions and has high fitting accuracy.

2、本发明提供了一种新的平行四边形拟合算法。笛卡尔空间有很多表面形状为矩形的物体,理论上,其在图像平面中形状为平行四边形,本算法利用最小二乘法求解所有轮廓点拟合的最佳直线,用其初步确认了用于拟合两条平行线的点集,并进一步确认了用于拟合另外两条平行线的点集,在此基础上,通过迭代的方式删去偏移拟合线的点,求解所拟合的平行四边形的四条边线,该算法通过迭代的方式逐步逼近最佳拟合线,能够剔除误差大的点的干扰,对于闭合轮廓点与离散点集均适用。2. The present invention provides a new parallelogram fitting algorithm. There are many objects whose surface shape is rectangular in Cartesian space. Theoretically, its shape is a parallelogram in the image plane. This algorithm uses the least square method to solve the best straight line fitting of all contour points, and preliminarily confirms that it is used for fitting The point sets of two parallel lines are combined, and the point sets used to fit the other two parallel lines are further confirmed. For the four sides of a parallelogram, the algorithm gradually approximates the best fitting line through iterative methods, and can eliminate the interference of points with large errors. It is applicable to both closed contour points and discrete point sets.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (10)

1. The on-orbit satellite pose measurement method based on parallelogram fitting is characterized by comprising the following steps of:
step A, collecting an image;
step B, designing an image processing algorithm, and extracting the outline in the image processing algorithm;
step C, combining contour points according to the set judging conditions;
step D, selecting a target contour;
e, performing parallelogram fitting on the target contour points by utilizing a parallelogram fitting algorithm;
and F, extracting corner points and resolving the pose of the target satellite.
2. The method for measuring the pose of an in-orbit satellite according to claim 1, further comprising, in the step B:
step B1, removing image distortion;
step B2, setting a region of interest (ROI) searching region according to the region of the target satellite in the image;
step B3, converting the image into an HLS format suitable for machine judgment;
step B4, median filtering is carried out on the image, so that noise interference is reduced;
step B5, extracting a target area according to HLS values of all pixel points of the picture, and converting the image into a binary image;
step B6, interference in the image is reduced by using morphological closing operation, gaps of the target area are filled, and extraction errors are reduced;
and B7, extracting the outline.
3. The method for measuring the pose of an in-orbit satellite according to claim 1, wherein in said step C, further comprising:
step C1, fitting each contour point set by using a minimum envelope rectangle to obtain a center point, side length and rotation angle around the center point of the rectangle after fitting the rectangle;
step C2, starting from the first contour, judging the relation between the distance between the two contours and the rectangular side length of the contour fitting in sequence, if the difference is greater than a threshold value, merging contour point sets into the previous contour point set, and deleting the latter contour point set;
step C3, returning to the step C1, and repeating the step C2 and the step C3 until no contour can be combined;
and C4, screening the contour point sets according to the number of the contour point sets, and deleting the contours with smaller contour point numbers.
4. The method for measuring the pose of an in-orbit satellite according to claim 1, wherein in the step D, the extraction target is a contour corresponding to a solar sailboard, and the method specifically comprises:
step D1, selecting the contour with the largest number of contour points as the contour of the target solar sailboard;
and D2, distinguishing the contour of the sailboard according to the position relation of the sailboard on the image plane, wherein in the central point coordinates (u, v), u is the leftmost sailboard, u is the middle sailboard in the middle, and u is the rightmost sailboard.
5. The method for measuring the pose of an in-orbit satellite according to claim 1, further comprising, in said step E:
e1, obtaining a contour point set to be fitted, and solving the average value of the central point of the contour, namely the coordinates of each point (u, v);
step E2, using a least square method to calculate a fitted optimal straight line ax+by+c=0, the straight line passing through the center point of the contour point set;
e3, determining a point set of two edge lines of a parallelogram which is approximately parallel to the optimal straight line;
e4, respectively fitting the best fit straight lines of the upper contour point set and the lower contour point set by using a least square method, wherein the two fitted straight lines are required to be parallel straight lines, respectively fitting the two straight lines by using the two contour point sets, then solving the deflection angle of the straight lines, solving the weighted average value of the deflection angle of the straight lines according to the element quantity of the two contour point sets, and further determining a, b, c1 and c2 of the two straight lines;
e5, determining a point set for fitting the other two parallel lines of the parallelogram;
e6, fitting two other parallel straight lines according to the point set obtained in the step E5;
and E7, gradually approaching the optimal linear equation of the four sides of the parallelogram in an iterative mode according to the preliminarily determined point set fitting the four sides of the parallelogram and the preliminarily determined linear equation of the four sides.
6. The method for measuring the pose of an in-orbit satellite according to claim 5, further comprising, in said step E3:
e30, dividing the contour point into a point above the straight line and a point below the straight line according to the position relation between the contour point and the straight line, wherein the point above the straight line comprises a point on the straight line;
e31, calculating the distance from each contour point to a straight line, and finding the maximum distance from the point above the straight line and the point below the straight line to the straight line respectively;
e32, for points above and below the straight line, respectively distributing the points to different point sets according to the difference between the distance from each point to the straight line and the maximum distance obtained in the step E31;
and E33, for the points above and below, if the number of elements of the furthest point set is the largest, or the number of elements of the furthest point set is larger than a threshold, the furthest point set is the set where the contour edge points are located, otherwise, the point set with the largest number of elements in the rest point sets is the set where the contour edge points are located.
7. The method for measuring the pose of an in-orbit satellite according to claim 5, wherein in said step E5, further comprising:
e50, solving the points in the point set in the step E4, which have the distance between the two straight lines to be fitted smaller than a threshold value and are at the edges of the point set, as initial search points of the other two sides of the parallelogram to be fitted;
and E51, solving a straight line passing through the two points through the two pairs of initial search points obtained in the step E50, taking the two straight lines as two initial edges of the parallelogram to be fitted, searching points with the distance of the straight line smaller than a threshold value as point sets for fitting the two edges of the parallelogram, and fitting the straight line formed by the two part point sets, wherein the method is the same as that of the step E4.
8. The method for measuring the pose of an in-orbit satellite according to claim 5, further comprising, in said step E7:
e70, judging the distance between each point and the straight line of the fitted parallelogram for the point set used for fitting the four edges of the parallelogram, if the distance is smaller than the threshold value, reserving the points, and if the distance is larger than the threshold value, deleting the points;
step E71, fitting two pairs of parallel edge lines of the parallelogram by using the point set processed in the step E70, wherein the method is the same as that in the step E4;
and E72, judging whether the two deleted points are smaller than a threshold value, if yes, ending, otherwise, returning to the step E70, wherein the distance threshold value used in the step E70 is reduced along with the increase of the iteration times.
9. The method for measuring the pose of an in-orbit satellite according to claim 1, further comprising, in said step F:
step F1, solving four corner points formed by intersecting the fitted four straight lines;
and F2, calculating the pose of the satellite in a camera coordinate system.
10. The method according to claim 9, wherein in the step F2, if the three-dimensional size of the solar array is known, the P12P algorithm is used for the monocular camera, if the fitting error of a certain corner point is large, the corner point can be eliminated, the remaining corner point fitting is used, the P12P algorithm is used for solving Wei Xingwei pose for each monocular camera image for the binocular camera or the multi-view camera, and then the average value is obtained, and if the three-dimensional size of the solar array is not known, the binocular camera or the multi-view camera is used for solving the position of each corner point to obtain the pose of the satellite.
CN202211535506.3A 2022-12-02 2022-12-02 A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting Pending CN116012443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211535506.3A CN116012443A (en) 2022-12-02 2022-12-02 A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211535506.3A CN116012443A (en) 2022-12-02 2022-12-02 A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting

Publications (1)

Publication Number Publication Date
CN116012443A true CN116012443A (en) 2023-04-25

Family

ID=86018221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211535506.3A Pending CN116012443A (en) 2022-12-02 2022-12-02 A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting

Country Status (1)

Country Link
CN (1) CN116012443A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116721157A (en) * 2023-06-20 2023-09-08 北京理工大学 A method for measuring the position and attitude of a rotary aircraft based on contour features

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101050948A (en) * 2007-05-11 2007-10-10 上海大学 Sensing and visual method and device for space flexible sail plate structure form
CN102810204A (en) * 2012-07-03 2012-12-05 天津大学 Monocular Vision Single Image Positioning Method Based on Parallelogram
US20170076438A1 (en) * 2015-08-31 2017-03-16 Cape Analytics, Inc. Systems and methods for analyzing remote sensing imagery
CN113592953A (en) * 2021-07-20 2021-11-02 中国科学院西安光学精密机械研究所 Binocular non-cooperative target pose measurement method based on feature point set
CN114998437A (en) * 2022-07-01 2022-09-02 陕西仙电同圆信息科技有限公司 A method for centroid location of space target

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101050948A (en) * 2007-05-11 2007-10-10 上海大学 Sensing and visual method and device for space flexible sail plate structure form
CN102810204A (en) * 2012-07-03 2012-12-05 天津大学 Monocular Vision Single Image Positioning Method Based on Parallelogram
US20170076438A1 (en) * 2015-08-31 2017-03-16 Cape Analytics, Inc. Systems and methods for analyzing remote sensing imagery
CN113592953A (en) * 2021-07-20 2021-11-02 中国科学院西安光学精密机械研究所 Binocular non-cooperative target pose measurement method based on feature point set
CN114998437A (en) * 2022-07-01 2022-09-02 陕西仙电同圆信息科技有限公司 A method for centroid location of space target

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116721157A (en) * 2023-06-20 2023-09-08 北京理工大学 A method for measuring the position and attitude of a rotary aircraft based on contour features

Similar Documents

Publication Publication Date Title
CN109544456B (en) Panoramic environment perception method based on fusion of 2D image and 3D point cloud data
CN104536009B (en) Above ground structure identification that a kind of laser infrared is compound and air navigation aid
CN107451982B (en) High-canopy-density forest stand crown area acquisition method based on unmanned aerial vehicle image
Zhou et al. Seamless fusion of LiDAR and aerial imagery for building extraction
CN112489212A (en) Intelligent three-dimensional mapping method for building based on multi-source remote sensing data
CN108562274A (en) A kind of noncooperative target pose measuring method based on marker
CN106780712B (en) Three-dimensional point cloud generation method combining laser scanning and image matching
CN110570428A (en) method and system for segmenting roof surface patch of building from large-scale image dense matching point cloud
CN105069843A (en) Rapid extraction method for dense point cloud oriented toward city three-dimensional modeling
KR101549155B1 (en) Method of automatic extraction of building boundary from lidar data
CN105513119B (en) A kind of road and bridge three-dimensional rebuilding method and device based on unmanned plane
CN109559324A (en) A kind of objective contour detection method in linear array images
CN118898691A (en) High-precision reconstruction method of 3D model based on point cloud data processing
Kim et al. Semiautomatic reconstruction of building height and footprints from single satellite images
CN116563377B (en) Mars rock measurement method based on hemispherical projection model
CN117557617B (en) A multi-view dense matching method, system and device based on plane prior optimization
CN105913435A (en) Multidimensional remote sensing image matching method and multidirectional remote sensing image matching system suitable for large area
CN119648830B (en) River terrain generation method, system, storage medium and electronic equipment
CN110020659A (en) A kind of extraction of remote sensing image multi-scale edge and matching process and system based on dyadic wavelet
CN115760984A (en) Non-cooperative target pose measurement method based on monocular vision by cubic star
CN116012443A (en) A Pose Measurement Method for On-orbit Satellites Based on Parallelogram Fitting
CN105005962B (en) Islands and reefs Remote Sensing Image Matching method based on hierarchical screening strategy
Wang Automatic extraction of building outline from high resolution aerial imagery
CN109708627A (en) A kind of moving platform down space dynamic point target rapid detection method
Ekhtari et al. Automatic building extraction from LIDAR digital elevation models and WorldView imagery

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination