In on-orbit control missions, it is important to use more stable line segment features to measure the pose information of the space target. However, traditional line segment detection methods are prone to failure under complex space illumination environments. To address this, we propose a robust line segment detection method combining geometric properties of line segments. This method improves the anchor extraction algorithm by using the inherent properties of the line segment. In the line segment validation stage, the line segment is verified by two steps. The Helmholtz method is introduced to verify the initial line segment and the line segment is further verified by the anchor density of the line segment. We verify the effectiveness of the proposed method by using visible image data collected on a semi-physical simulation platform and find that the proposed method is superior to the traditional line segment detection methods in terms of accuracy.