With the upsurge in use of Unmanned Aerial Vehicles (UAVs), drone detection and pose estimation by using optical sensors becomes an important research subject in cooperative flight and low-altitude security. The existing technology only obtains the position of the target UAV based on object detection methods. To achieve better adaptability and enhanced cooperative performance, the attitude information of the target drone becomes a key message to understand its state and intention, e.g., the acceleration of quadrotors. At present, most of the object 6D pose estimation algorithms depend on accurate pose annotation or a 3D target model, which costs a lot of human resource and is difficult to apply to non-cooperative targets. To overcome these problems, a quadrotor 6D pose estimation algorithm was proposed in this paper. It was based on keypoints detection (only need keypoints annotation), relational graph network and perspective-n-point (PnP) algorithm, which achieves state-of-the-art performance both in simulation and real scenario. In addition, the inference ability of our relational graph network to the keypoints of four motors was also evaluated. The accuracy and speed were improved significantly compared with the state-of-the-art keypoints detection algorithm.
Object detection is a very challenging task due to the serious object scale diversity. There is an obvious scale distribution in the oblique images captured by the UAVs: the objects at the top of the image are smaller in scale while the objects at the bottom of the image are larger in scale. Based on this prior information, we propose an object detector with the divide-and-conquer strategy. Firstly, we estimate the object scale using inertial measurement unit (IMU) information. Then the small objects at the top of image are detected by shallow networks with small receptive field and the big objects at the bottom of image are detected by deep networks with big receptive field. Compared with YOLOv5, our method improves the accuracy by 4.6% on mAP metric and improves the speed by 79%. Our method can be also performed in real-time on an NVIDIA XAVIER NX with about 30 frames per second. The code is made available on GitHub 1.