Next Article in Journal
Camera-Based System for Drafting Detection While Cycling
Previous Article in Journal
Stabilization of a p-u Sensor Mounted on a Vehicle for Measuring the Acoustic Impedance of Road Surfaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

3D Pose Estimation for Object Detection in Remote Sensing Images

State Key Laboratory of Information Engineering in Surveying, Mapping, and Remote Sensing, Wuhan University, Wuhan 430079, China
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(5), 1240; https://doi.org/10.3390/s20051240
Submission received: 3 January 2020 / Revised: 15 February 2020 / Accepted: 22 February 2020 / Published: 25 February 2020
(This article belongs to the Section Remote Sensors)

Abstract

:
3D pose estimation is always an active but challenging task for object detection in remote sensing images. In this paper, we present a new algorithm for predicting an object’s 3D pose in remote sensing images, called Anchor Points Prediction (APP). Compared to previous methods, such as RoI Transform, our object results of the final output can obtain direction information. We predict the object’s multiple feature points based on the neural network to obtain the homograph transformation relationship between object coordinates and image coordinates. The resulting 3D pose can accurately describe the three-dimensional position and attitude of the object. At the same time, we redefine the method I o U A P P for calculating the direction and posture of the object. We tested our algorithm on the HRSC2016 dataset and the DOTA dataset with accuracy rates of 0.863 and 0.701, respectively. The experimental results show that the accuracy of the APP algorithm is significantly improved. At the same time, the algorithm can achieve one-stage prediction, which makes the calculation process easier and more efficient.

1. Introduction

In recent years, with the deepening of research and the improvement of computing power, deep learning has become more and more widely used in various fields. At the same time, the object detection algorithm has made great progress so far. In particular, remote sensing images has been a specific but active topic in computer vision [1,2]. Recent progresses in object detection in aerial images have benefited a lot from the R-CNN frameworks [1,3,4,5,6]. These methods use horizontal bounding boxes as the region of IoU and then rely on region-based features for category identification [2,7,8]. Faster-RCNN [4,5] leads to an elegant and effective solution where proposal computation is nearly cost-free given the detection network’s computation. A multi-stage object detection framework, the Cascade R-CNN, is proposed for the design of high-quality object detectors [6,9]. Additionally, FPN uses feature pyramids for object detection [10]; Yolt achieves object detection of high-resolution remote sensing images based on Yolo v3 [11,12]; and Yolo v3 is significantly faster than other methods in achieving the same accuracy [13]. These classic algorithms have different adaptation scenarios and greatly promote the development of this field. However, in remote sensing images, the object is often placed obliquely, so using an inclined box to detect the object will be more adaptive to the scene. These algorithms use a horizontal rectangular box to detect the object, so it does not accurately reflect the object pose of the remote sensing image to some extent. Also, these horizontal RoIs typically lead to misalignments between the bounding boxes and objects [8,14,15]. The RoI Transform algorithm locates the inclined box by predicting the rotation angle of the object box [8,16]. However, this algorithm has some problems. The first problem is that the rotation angle θ of the regression inclined box is ambiguous in most cases. This means that θ is equal to 0° and 180° corresponding to IoU is equal, but if the algorithm does not contain direction information, it will be considered the same type. The second problem is efficiency. It is a two-stage algorithm and the localization method relies entirely on Faster-RCNN [5,8]. The algorithm can only use the rectangle obtained by Faster-RCNN, and cannot use the feature information of the object region. CornerNet is a new one-stage approach to object detection by predicting the coordinates of the top-left and bottom-right points that does away with anchor boxes, which is more accurate and efficient [17,18,19,20]. However, predicting two points does not fully describe the information of the inclined box [5,21,22].
A 3D pose describes the three-dimensional pose of the camera relative to the object’s own coordinate system, not the pose of the object relative to the ground plane. Whether the reference object has z-coordinates and whether 3D information can be estimated are not the same thing. The object is on a plane and does not affect the rotation and translation of the camera observing the object relative to the three axes in three dimensions. Therefore, even objects on a two-dimensional plane will be observed in three-dimensional space out of the plane, which also has the 3D pose problem.
To solve the above problems, we propose the Anchor Points Prediction (called APP) algorithm. Different from other methods, we predict the position and attitude of the object by at least four corner points through the full convolution network, and can obtain the 3D pose by decomposing the homograph transformation matrix, and the algorithm is more efficient. The corner pooling layer used in the algorithm greatly improves the points prediction accuracy [17].
We give the correspondence between the predicted points and the available object information in Table 1, and a comparison of the traditional method and our method is shown in Figure 1. We have reason to believe that object detection by point prediction will become a new trend in the future.

2. Object Detection Based on APP

Any object detection problems can be attributed to the prediction of key points. The traditional rectangle object detection methods can be attributed to the prediction of two key points, such as Faster-RCNN, YOLO, and SSD (the upper-left and lower-right points of the rectangle) [5,21,24,25]; the 3D pose of the general object can be attributed to the prediction of eight points; the human body posture OpenPose can be attributed to the prediction of 18 key points of the human body [26]. We attribute the predicted inclined object box to a prediction of four points. The traditional inclined box detection methods have no direction information and may result in high accuracy. In addition, as shown in Figure 2, the boxes of the two objects whose center points are close but opposite in direction may cause the object to be lost in the NMS operation. The full name of NMS is non-maximum supply [27]. This method is used to search the local maximum and suppress the maximum. The purpose of this method is to eliminate redundant frames and find the best location for object detection.
Unlike traditional methods, we define a new calculation method that takes into account the overlap rate and direction consistency between the tilted boxes. Assuming there are two sets of object feature points, { P 11 P 1 n } , { P 21 P 2 n } , we define the I o U A P P calculation formula between the two sets of points as follows:
IoU A P P = 1 1 + α 2 d 12 d 1 + d 2 .
We use d 12 = i = 1 n P 1 i P 2 i 2 , d 1 = i = 1 n P 1 i P 1 ¯ 2 and d 2 = i = 1 n P 2 i P 2 ¯ 2 . P 1 ¯ and P 2 ¯ are the coordinates of the center point of point set 1 and point set 2, respectively. The definition mainly considers the deviation of the coordinate offset of the corresponding point from the size of the object itself. This deviation is relative. The larger the deviation, the smaller the I o U A P P . It is clear that the range of values of I o U A P P is the same as the original IoU definition, which is [0, 1]. The larger the I o U A P P , the closer the two object cells are, and the I o U A P P is equal to 1 when the two object cells are completely identical; the I o U A P P is infinitely close to 0 when the two object cells are very different.
The two sets of the object feature points may be the two prediction units to be combined in the object detection NMS process, or may be the similarity calculation between ground truth and the predicted values.
According to Figure 3, we can get the calculation formulas for I o U A P P , IoU, and I o U R B o x as follows, and we can get the relationship curve as shown in Figure 4.
IoU A P P = 1 1 + 8 α sin 2 θ 2 , α = 1 , 2 , 3 , IoU = 1 1 + 2 | cos θ sin θ | 1 + | cos θ | + | sin θ | 2 IoU r b o x = 1 | cos θ | + | sin θ | .
It can be seen from the above figure that when the object position scale is constant, only the I o U A P P is significantly affected by the object direction angle θ , so only the I o U A P P can describe the accuracy of the object direction angle. The IoU and I o U R B o x are not affected by θ and cannot describe the accuracy of the object direction angle.
The mAP (mean Average Precision) obtained from the experimental data of RoI Transform is based on I o U R B o x [8]. The mAP, which is used to evaluate the accuracy of object detection methods, is based on IoU between prediction boxes and ground truth boxes [28]. As can be seen from the above Figure, as long as the neural network that can recommend the horizontal box aligns with the center point, the I o U R B o x is always greater than 0.5. That is, even if the direction angle prediction is wrong (predicted to be any angle from 0° to 360°), it is also hit when counting mAP, so the resulting mAP is virtually high. Thus, we proposed the solution I o U A P P . The I o U A P P uses the method of regression coordinates to detect the object, and the method of evaluating mAP is more reasonable.

3. Anchor Points Prediction Algorithm

3.1. Neural Network Design

To predict the inclined box of the remote sensing object, we built a full convolutional network that predicts three scales in three different layers, each scale being the output by the APP of three different anchors’ array. Different anchors are used to detect objects with different aspect ratios in the image domain, as shown in Figure 5.
Our custom region layer is used to output the relative coordinates, the categories, and the information about whether the object exists or not. In the region layer, we used yolov3’s definition of anchors to implement n-weight anchor predictions based on the width and height of the object on the imaging surface. Each anchor represents a specific 2D wide height object. Following this concept, this particular 2D width and height corresponds to different APP range distributions. Each cell of the output array contains n × ( 4 + 1 + c + 2 × 4 ) output neurons. The meaning of the parameters are shown in Table 2.
We define the offset coordinate of point i in the range of a specific region as p w × Δ x i , p h × Δ y i . As shown in Figure 6, p w and p h are the width and height of a particular anchor. We can use Equation (3) to calculate P i .
{ u i = C x + 1 2 + p w x i v i = C y + 1 2 + p h y i
Then, the actual pixel offset coordinate of point i relative to the anchor boxes is P i = ( u i , v i ) . In addition, we define the loss function in the training procedure as follows, and we give the meaning of each parameter in Table 3.
L o s s ( O u t p u t L a y e r ) = { λ n o b j ( 0 O b j ) 2 No object in local scope λ o b j ( 1 O b j ) 2 + λ p t s i = 1 4 P i P ¯ i 2 + λ R O I L o s s R O I object within a local scope
We are more focused on the positioning learning of the inclined box determined by APP, so we reduce the weight of the horizontal box. Then, we use λ R O I = 0.01 to assist learning, and we can even set it to 0 to ignore the weight of the horizontal box. L o s s R O I is the regression error of the center point and width of the object RoI, following yolo v2 [12].
The principle of judging whether there is an object in a local range is to calculate the maximum IoU between the default anchors’ boxes and all the ground truth boxes in that range. If the IoU exceeds a threshold, there will be an object. The principle of discrimination here is consistent with the processing of yolo v2 and yolo v3 [12,13]. Therefore, the sum of the differences in the three-layer APP prediction result and the ground truth is
L o s s = output Layer Loss ( Output Layer ) .

3.2. Training Procedure

Training datasets. We experimented with the DOTA dataset. The original DOTA images are high-resolution remote sensing images, which is not convenient for direct processing using the neural network. Therefore, first of all, the raw data needs to be standardized. The method we took was to randomly select an image point, then center the point, and align the center point (W/2, H/2) of the transformed image (W, H) for random affine transformation. The scale of the transformation is 0.5 to 1.5 times the original image. Then, we obtain the sample images.
Training and testing. At training, we used 80% DOTA images, and all the processed images were resized into 416*416 and sent to the neural network. After training, the remaining 20% of images were used for testing. In the training process, the choice of multiple anchors followed the strategy of yolo v3, and the process of backpropagation of the loss layer was divided into two phases.
Phase 1: Scan each output of the output layer array. According to the ground truth set and the boxes determined by predicted APP coordinates, the output region can be obtained from the maximum IoU between them. If I o U m a x is less than ε , the corresponding object presence expectation output value will be set to 0 for backpropagation correction.
Phase 2: Scan the rows and columns of each GTBox, and correct the largest anchor of the IoU between the default rectangle of n anchors at this position and the GTBox. Then, set the expected value of the object field to 1, and the loss of APP is calculated according to Equation (19), and the expected value of the softmax segment is set to perform backpropagation correction.
Application. According to the four-sided output bounding box surrounded by four APP coordinates, the four points of the inclined box are further obtained by Equation (19), and the point coordinates are converted to the large image according to Equation (5).

3.3. Calculation of the Object of 3D Pose

The conventional methods often calculate the 3D pose of the object by matching the local features extracted in the 2D image with the features in the object 3D model to be detected, but these methods are not accurate enough [29]. Therefore, based on the key point coordinates of the object output from the region layer, we use the perspective transformation method to calculate the 3D pose. Figure 7 shows the computational process of the objects’ 3D pose. We use two methods, PnP [30] and homograph. The following describes these two methods.

3.3.1. PnP Method

As shown in Figure 7, we can get the coordinates { P 1 , P 2 , P 3 , P 4 } of the four feature points of the object in the training part. These feature point coordinates are relative to the coordinates of the complete satellite image. If the image is cropped and resized, these coordinates need to be transformed to the coordinate system of the original satellite image. The inference part obtains the 3D pose of the object based on the correspondence between the four feature points and the body coordinates of the four or eight corner points of the object. Assume that the length and width of the bounding box of the object is W and H, and the height of the object from the ground is H g . We define the eight points of the bounding box of the object’s own coordinate system as:
W 2 , H 2 , ± H g 2 , W 2 , H 2 , ± H g 2 W 2 , H 2 , ± H g 2 , W 2 , H 2 , ± H g 2
Since the distance from the camera to the ground object is much larger than the object’s own height H g , the image coordinates of the two feature points at different heights of the object at the same latitude and longitude are very close on the image. Therefore, the corresponding relationship between the eight points of the object’s bounding box and the key points { P 1 , P 2 , P 3 , P 4 } of the image coordinates is:
W 2 , H 2 , ± H g 2 P 1 left top W 2 , H 2 , ± H g 2 P 2 right top W 2 , H 2 , ± H g 2 P 3 right bottom W 2 , H 2 , ± H g 2 P 4 left bottom
According to this correspondence, we call the PnpSolve function in OpenCV to solve the camera external parameters R and T, where R is the attitude matrix of the camera relative to the object, and T is the position of the object relative to the camera.

3.3.2. Homograph Method

We define the object as an inclined box with a width W and a length H. The origin of the object’s coordinate system is defined at the center of the box. Considering the particularity of remote sensing images, the four vertices of the object in the object coordinate system are similar on a ground plane π , and the four vertices of the object in the object coordinate system are marked as:
W 2 , H 2 , W 2 , H 2 W 2 , H 2 , W 2 , H 2
According to the DOTA data format, the four points are sorted clockwise from the upper left corner. Assuming that the aspect ratio of the object is also unknown, set to α , then the four object points can be written as:
W 2 , α W 2 , W 2 , α W 2 W 2 , α W 2 , W 2 , α W 2
According to the principle of satellite remote sensing imaging, the line of sight of the imaging camera of the remote sensing image is perpendicular to the ground plane π , so the conversion of the four points on the object plane to the image plane follows the rotation transformation matrix:
u v = a 11 a 12 a 13 a 12 a 11 a 23 X Y 1
Conversely, the conversion of four points on the image plane to the four points on the object plane follows the inverse of Equation (8):
X Y = a 11 a 12 a 13 a 12 a 11 a 23 u v 1
According to the basic principle of affine transformation,
a 11 a 12 a 13 a 12 a 11 a 23 = a 11 a 12 a 13 a 12 a 11 a 23 1 = 1 a 11 2 + a 12 2 a 11 a 12 a 12 a 23 a 13 a 11 a 12 a 11 a 11 a 23 + a 13 a 12 .
In order to solve the four parameters a 11 , a 12 , a 13 , a 23 of affine transformation, we obtain the formulas of the four parameters and α according to Equation (7):
u v 1 0 0 v u 0 1 Y a 11 a 12 a 13 a 23 α = X 0 .
The four-point coordinates in Equation (9) are sequentially brought into X and Y in the above equation,
X 1 , Y 1 = W 2 , α W 2 X 2 , Y 2 = W 2 , α W 2 X 3 , Y 3 = W 2 , α W 2 X 4 , Y 4 = W 2 , α W 2
Then, we can get
u 1 v 1 1 0 0 v 1 u 1 0 1 Y 1 u 2 v 2 1 0 0 v 2 u 2 0 1 Y 2 u 3 v 3 1 0 0 v 3 u 3 0 1 Y 3 u 4 v 4 1 0 0 v 4 u 4 0 1 Y 4 a 11 a 12 a 13 a 23 α = X 1 0 X 2 0 X 3 0 X 4 0 .
After solving Equation (14) by the least two multiplication method, it is brought into Equation (16) to get a 11 , a 12 , a 13 , and a 23 . According to the principle of perspective transformation, we can get
K 1 H = f 0 c x 0 f c y 0 0 1 1 a 11 a 12 a 13 a 12 a 11 a 23 0 0 1 = 1 f 0 c x f 0 1 f c y f 0 0 1 a 11 a 12 a 13 a 12 a 11 a 23 0 0 1 = a 11 f a 12 f a 13 c x f a 12 f a 11 f a 23 c y f 0 0 1 .
Columns 1, 2 of K 1 H are then unitized to obtain the matrix:
K 1 H 1 = f a 11 2 + a 12 2 a 11 f a 12 f a 13 c x f a 12 f a 11 f a 23 c y f 0 0 1 .
The attitude matrix R = [ c 1 , c 2 , c 1 × c 2 ] . The columns 1 and 2 of K 1 H 1 construct the columns 1, 2 c 1 , c 2 of the matrix R. The third column of K 1 H 1 = is the offset T of the object relative to the camera.
Based on the above, we summarize the calculation process of the 3D pose for remote sensing image objects.
(1)
Predict the APP coordinates of each object through the neural network.
(2)
According to Equation (15), we can get the inverse affine transformation parameters a 11 , a 12 , a 13 , a 23 and the object width-to-length ratio α .
(3)
According to Equation (12), we can get the affine transformation matrix from the object coordinate system to the image coordinate system:
A = a 11 a 12 a 13 a 12 a 11 a 23
(4)
Matrix K 1 H 1 is obtained from Equation (17).
(5)
Attitude matrix R and displacement T can be obtained by decomposing matrix K 1 H 1 .

3.3.3. Object Spatial Location Using Remote Sensing Image

As shown in Figure 8, the geometric transformation of the satellite relative to the earth R s t s 1 can be obtained accurately; the rigid body connection transformation R c t c 1 of the satellite camera relative to the satellite can also be measured. Then, through the method based on APP, the transformation of the object relative to the camera can be obtained as R T T 1 . To sum up, it can be calculated that the 3D transform of the object relative to the earth is converted into R T T 1 R c t c 1 R s t s 1 .

4. Experiments and Analysis

4.1. Experimental Details

Experimental data. We conducted experiments on the DOTA and HRSC2016 datasets. For the DOTA dataset, we cut the image into subgraphs with a resolution of 1024 × 1024 . At training, we used batch-size = 64, and the learning rate was 0.0001 in the first 10,000 training sessions, and after every 20,000 increments, the learning rate was reduced by 0.1 times until the learning rate was equal to 0.000001. Our full convolutional network supports the input of images with different resolutions. We tested two different resolution inputs for 416 × 416 and 1024 × 1024 . The 416 × 416 model can get an output of 13 × 13 , 26 × 26 , 52 × 52 scales, and the 1024 × 1024 model can get an output of 32 × 32 , 64 × 64 , and 128 × 128 scales, which correspond to three different object types of large, medium, and small scales, respectively. In the detecting, we first divided the DOTA image into blocks. The blocks needed to overlap to avoid cross-border loss of the object. Finally, we calculated and counted the mAP of the object. mAP is the mean Average Precision, which means the average of the AP of all object categories. Table 4 and Table 5 are the statistics on the HRSC2016 and DOTA data sets, respectively. As can be seen from these two tables, the APP algorithm has the highest mAP.
We also tested five sets of models with different parameters. According to Equation (8), we could get the IoU between the predicted object point set and the true value point set, and calculate the corresponding mAP of each of these models. Table 6 and Table 7 are model parameters and experimental results, respectively. By comparing the experimental results, we found that the mAP of the first set of model parameters was the highest.
The efficiency of the algorithm is one of the most important indicators for measuring the quality of the algorithm. Our model can input images in two different resolutions. As shown in Table 8, we used a one-stage process including NMS operation, so it was more efficient. Table 9 is the mean length of the objects. Assuming that the width W of all objects is equal to 1, the average length of each type of object also can be solved.
Experimental results. We improved yolo v3 and added four corner points of the APP prediction object based on the original region layer. The local object was predicted according to Equation (19), and then the coordinates were converted to the large image to obtain the homograph transform. Further, we decomposed the three-dimensional attitude R and displacement T of the object relative to the camera. Figure 9 is the result of the experiment. Figure 10 is an incorrectly labeled image that we can detect correctly after training.
For large images such as DOTA, we used the method of block synthesis. The large image is divided into a number of sub-blocks, each of which is just the standard size of the neural network input layer [ S w , S h ] , and the neural network was used to detect the object APP coordinates ( u i , v i ) in each sub-block range. Assuming that the coordinate of the upper-left corner of a sub-block is ( l e f t , t o p ) , the coordinate of the point in the full image is
u i b i g = left + u i v i b i g = top + v i
Converting all the objects of the sub-image to the large image, and in finally performing the NMS operation, in order to avoid the object being cut by the block, overlap between blocks was needed, and the overlap length was longer than the minimum object length. The overlap length of the horizontal and vertical sides was initially set at 20% of the basic length, as shown in Figure 11.

4.2. Error Analysis

We used the method of projecting pixel points to comprehensively evaluate the prediction accuracy of the 3D pose. The process is shown in Figure 7. When evaluating the accuracy of the 3D pose, the position and attitude of the object in three-dimensional space could be considered comprehensively by using the method of pixel projection error [36]. According to the nature of the attitude matrix R, the three rows of the matrix represent the three unit vectors of the x, y, and z axis of the camera coordinate system relative to the object, and then the three rows of R, in turn, represent the x, y, and z axis relative to the three unit vectors of the camera coordinate system. Since the y-axis of the object ontology coordinate system is the negative direction of the object orientation, the negative vector r 12 , r 22 of the second column of the matrix R describes the direction of the object. Therefore, the azimuth angle of the object relative to the camera coordinate system θ = artan r 12 , r 22 . The coordinate calculation Equation is
z i u i v i 1 = K R X i T i = 1 , 2 , 3 , 4 ,
where K is the internal parameter matrix of the camera, R and T are the attitude matrix and the displacement matrix obtained according to the algorithm of Section 4.1, and X i is the coordinates of the four projection points of the object box close to the ground. The pixel error is
e 2 = u i v i 1 u ¯ i v ¯ i 1 2 .
According to this formula, we could get the angular error and pixel error of the predicted object. We tested five different sets of parameters to get different models. It can be seen from Table 10 that the error of the first set of parameters is the smallest.

5. Conclusions

In this paper, we proposed a new Anchor Points Prediction algorithm that can accurately determine the position and attitude of the object’s three-dimensional space. Differing from the traditional methods of predicting object RoI or inclined box, we used the neural network to predict multiple feature points to detect the objects. This algorithm is a one-stage algorithm, and its accuracy and efficiency have been greatly improved. It not only uniquely determines the direction of the object, but also calculates the 3D pose of the object from the APP coordinates. We believe that the APP algorithm can be better applied to object detection. Moreover, the point prediction algorithm has broad application prospects and may become a new trend in the future. Our method also has some shortcomings. For a slender object like Harbor, the bounding box is relatively large, and the object occupies only a small part of the bounding box. In this way, the features in the extracted ROI region will be inaccurate, leading to a decrease in the accuracy of predicting key points of the object.

Author Contributions

Conceptualization, J.L.; methodology, J.L.; software, J.L.; validation, J.L.; formal analysis, J.L. and Y.G.; writing—original draft preparation, J.L.; writing—review and editing, J.L.; visualization, J.L.; supervision, J.L.; project administration, J.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China under Grant No. 41771457.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Long, Y.; Gong, Y.; Xiao, Z.; Liu, Q. Accurate Object Localization in Remote Sensing Images Based on Convolutional Neural Networks. IEEE Trans. Geosci. Remote Sens. 2017, 55, 2486–2498. [Google Scholar] [CrossRef]
  2. Wang, G.; Wang, X.; Fan, B.; Pan, C. Feature Extraction by Rotation-Invariant Matrix Representation for Object Detection in Aerial Image. IEEE Geosci. Remote Sens. Lett. 2017, 14, 851–855. [Google Scholar] [CrossRef]
  3. Deng, Z.; Sun, H.; Zhou, S.; Zhao, J.; Zou, H. Toward Fast and Accurate Vehicle Detection in Aerial Images Using Coupled Region-Based Convolutional Neural Networks. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2017, 10, 3652–3664. [Google Scholar] [CrossRef]
  4. Girshick, R. Fast R-CNN. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 13–16 December 2015. [Google Scholar]
  5. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks; Curran Associates, Inc.: Montreal, QC, Canada, 2015; pp. 91–99. [Google Scholar]
  6. Cai, Z.; Vasconcelos, N. Cascade R-CNN: Delving Into High Quality Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake, UT, USA, 18–22 June 2018. [Google Scholar]
  7. Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 24–27 June 2014. [Google Scholar]
  8. Ding, J.; Xue, N.; Long, Y.; Xia, G.S.; Lu, Q. Learning RoI Transformer for Oriented Object Detection in Aerial Images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Los Angeles, CA, USA, 16–19 June 2019. [Google Scholar]
  9. Ren, H.; El-Khamy, M.; Lee, J. CT-SRCNN: Cascade Trained and Trimmed Deep Convolutional Neural Networks for Image Super Resolution. In Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 12–15 March 2018; pp. 1423–1431. [Google Scholar] [CrossRef] [Green Version]
  10. Lin, T.Y.; Dollar, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature Pyramid Networks for Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017. [Google Scholar]
  11. Etten, A.V. You Only Look Twice: Rapid Multi-Scale Object Detection In Satellite Imagery; Cornell University: Ithaca, NY, USA, 2018. [Google Scholar]
  12. Redmon, J.; Farhadi, A. YOLO9000: Better, Faster, Stronger. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017. [Google Scholar]
  13. Redmon, J.; Farhadi, A. YOLOv3: An Incremental Improvement; Cornell University: Ithaca, NY, USA, 2018. [Google Scholar]
  14. Liu, Z.; Wang, H.; Weng, L.; Yang, Y. Ship Rotated Bounding Box Space for Ship Extraction From High-Resolution Optical Satellite Images With Complex Backgrounds. IEEE Geosci. Remote Sens. Lett. 2016, 13, 1074–1078. [Google Scholar] [CrossRef]
  15. Liu, Z.; Hu, J.; Weng, L.; Yang, Y. Rotated region based CNN for ship detection. In Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP), Beijing, China, 18–20 September 2017; pp. 900–904. [Google Scholar] [CrossRef]
  16. Liu, K.; Mattyus, G. Fast Multiclass Vehicle Detection on Aerial Images. IEEE Geosci. Remote Sens. Lett. 2015, 12, 1938–1942. [Google Scholar] [CrossRef] [Green Version]
  17. Law, H.; Deng, J. CornerNet: Detecting Objects as Paired Keypoints. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018. [Google Scholar]
  18. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet Classification with Deep Convolutional Neural Networks. In Advances in Neural Information Processing Systems 25; Pereira, F., Burges, C.J.C., Bottou, L., Weinberger, K.Q., Eds.; Curran Associates, Inc.: Lake Tahoe, NV, USA, 2012; pp. 1097–1105. [Google Scholar]
  19. Simonyan, K.; Zisserman, A. Very Deep Convolutional Networks for Large-Scale Image Recognition; Cornell University: Ithaca, NY, USA, 2014. [Google Scholar]
  20. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016. [Google Scholar]
  21. Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single Shot MultiBox Detector. In Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands, 8–16 October 2016. [Google Scholar]
  22. Zhou, X.; Wang, D.; Krähenbühl, P. Objects as Points; Cornell University: Ithaca, NY, USA, 2019. [Google Scholar]
  23. Rad, M.; Lepetit, V. BB8: A Scalable, Accurate, Robust to Partial Occlusion Method for Predicting the 3D Poses of Challenging Objects Without Using Depth. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017. [Google Scholar]
  24. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016. [Google Scholar]
  25. Zhang, K.; Zhang, Z.; Li, Z.; Qiao, Y. Joint Face Detection and Alignment Using Multitask Cascaded Convolutional Networks. IEEE Signal Proce. Lett. 2016, 23, 1499–1503. [Google Scholar] [CrossRef] [Green Version]
  26. Cao, Z.; Simon, T.; Wei, S.E.; Sheikh, Y. Realtime Multi-Person 2D Pose Estimation Using Part Affinity Fields. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017. [Google Scholar]
  27. Neubeck, A.; Van Gool, L. Efficient Non-Maximum Suppression. In Proceedings of the 18th International Conference on Pattern Recognition (ICPR’06), Hong Kong, China, 20–24 August 2006; pp. 850–855. [Google Scholar] [CrossRef]
  28. Everingham, M.; Van Gool, L.; Williams, C.K.I.; Winn, J.; Zisserman, A. The Pascal Visual Object Classes (VOC) Challenge. Int. J. Comput. Vis. 2010, 88, 303–338. [Google Scholar] [CrossRef] [Green Version]
  29. Li, Y.; Wang, G.; Ji, X.; Xiang, Y.; Fox, D. DeepIM: Deep Iterative Matching for 6D Pose Estimation. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018. [Google Scholar]
  30. Liu, J.; He, S. 6D Object Pose Estimation without PnP; Cornell University: Ithaca, NY, USA, 2019. [Google Scholar]
  31. Zhang, Z.; Guo, W.; Zhu, S.; Yu, W. Toward Arbitrary-Oriented Ship Detection With Rotated Region Proposal and Discrimination Networks. IEEE Geosci. Remote Sens. Lett. 2018, 15, 1745–1749. [Google Scholar] [CrossRef]
  32. Liao, M.; Zhu, Z.; Shi, B.; Xia, G.S.; Bai, X. Rotation-Sensitive Regression for Oriented Scene Text Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake, UT, USA, 18–22 June 2018. [Google Scholar]
  33. Xia, G.S.; Bai, X.; Ding, J.; Zhu, Z.; Belongie, S.; Luo, J.; Datcu, M.; Pelillo, M.; Zhang, L. DOTA: A Large-Scale Dataset for Object Detection in Aerial Images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake, UT, USA, 18–22 June 2018. [Google Scholar]
  34. Ma, J.; Shao, W.; Ye, H.; Wang, L.; Wang, H.; Zheng, Y.; Xue, X. Arbitrary-Oriented Scene Text Detection via Rotation Proposals. IEEE Trans. Multimed. 2018, 20, 3111–3122. [Google Scholar] [CrossRef] [Green Version]
  35. Jiang, Y.; Zhu, X.; Wang, X.; Yang, S.; Li, W.; Wang, H.; Fu, P.; Luo, Z. R2CNN: Rotational Region CNN for Orientation Robust Scene Text Detection; Cornell University: Ithaca, NY, USA, 2017. [Google Scholar]
  36. Kehl, W.; Manhardt, F.; Tombari, F.; Ilic, S.; Navab, N. SSD-6D: Making RGB-Based 3D Detection and 6D Pose Estimation Great Again. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017. [Google Scholar]
Figure 1. Object detection comparison. (a,c) Traditional inclined box. The inclined box has symmetry, so it is not possible to uniquely describe the direction of the object in the 2D image space, so the object has four possible directions. (b,d) The 3D pose diagram obtained from APP. The X-axis of the object is marked with red, the Y-axis is marked with green, and the Z-axis is marked with blue. The X-axis points to the right side of the object; the negative direction of Y-axis indicates the static direction of the object; and the Z-axis points to the ground.
Figure 1. Object detection comparison. (a,c) Traditional inclined box. The inclined box has symmetry, so it is not possible to uniquely describe the direction of the object in the 2D image space, so the object has four possible directions. (b,d) The 3D pose diagram obtained from APP. The X-axis of the object is marked with red, the Y-axis is marked with green, and the Z-axis is marked with blue. The X-axis points to the right side of the object; the negative direction of Y-axis indicates the static direction of the object; and the Z-axis points to the ground.
Sensors 20 01240 g001
Figure 2. Two objects in opposite directions are prone to loss in NMS operations.
Figure 2. Two objects in opposite directions are prone to loss in NMS operations.
Sensors 20 01240 g002
Figure 3. Two objects in opposite directions are prone to loss in NMS operations.
Figure 3. Two objects in opposite directions are prone to loss in NMS operations.
Sensors 20 01240 g003
Figure 4. Relationship between I o U A P P , I o U , and I o U R B o x .
Figure 4. Relationship between I o U A P P , I o U , and I o U R B o x .
Sensors 20 01240 g004
Figure 5. The architecture of the network.
Figure 5. The architecture of the network.
Sensors 20 01240 g005
Figure 6. Anchor Points Prediction algorithm in the output grid.
Figure 6. Anchor Points Prediction algorithm in the output grid.
Sensors 20 01240 g006
Figure 7. The schematic diagram of the 3D pose’s computational process.
Figure 7. The schematic diagram of the 3D pose’s computational process.
Sensors 20 01240 g007
Figure 8. Application of remote sensing image for object spatial location.
Figure 8. Application of remote sensing image for object spatial location.
Sensors 20 01240 g008
Figure 9. 3D pose renderings. The red arrow direction and the green arrow direction in the figure are the X-axis and Y-axis of the object itself, respectively.
Figure 9. 3D pose renderings. The red arrow direction and the green arrow direction in the figure are the X-axis and Y-axis of the object itself, respectively.
Sensors 20 01240 g009
Figure 10. The inner box is not accurate in the DOTA1.0 training dataset, but we get a more accurate box by prediction.
Figure 10. The inner box is not accurate in the DOTA1.0 training dataset, but we get a more accurate box by prediction.
Sensors 20 01240 g010
Figure 11. Large image segmentation.
Figure 11. Large image segmentation.
Sensors 20 01240 g011
Table 1. Correspondence between predicted points and available object information [17,23].
Table 1. Correspondence between predicted points and available object information [17,23].
Prediction PointsObject Information
2RoI
4inclined box
≥43D pose
Table 2. The meaning of the parameters of the output.
Table 2. The meaning of the parameters of the output.
Parameter4n1c 2 × 4
Descriptionbounding box coordinatesnumber of anchorsexisting objectnumber of classes ( Δ x 1 , Δ y 1 ) ( Δ x 2 , Δ y 2 )
( Δ x 3 , Δ y 3 ) ( Δ x 4 , Δ y 4 )
Table 3. The meaning of the parameters of Loss function.
Table 3. The meaning of the parameters of Loss function.
Parameter λ n o o b j λ o b j λ R O I λ p t s P i P i ¯
Descriptionloss weight of
non-object
loss weight of
object
loss weight of
object RoI
loss weight of
each point
predicted value of the
point ( u i , v i )
ground truth of the
point ( u l ¯ , v l ¯ )
Table 4. Comparisons with the state-of-the-art methods on HRSC2016 [8].
Table 4. Comparisons with the state-of-the-art methods on HRSC2016 [8].
MethodCP [15]BL2 [15]RC1 [15]RC2 [15] R 2 CNN [31]RRD [32]RoI Trans. [8]APP
mAP55.769.675.775.779.684.386.286.3
Table 5. Comparisons with state-of-the-art detectors on DOTA. There are 15 categories, including Baseball diamond (BD), Ground track field (GTF), Small vehicle (SV), Large vehicle (LV), Tennis court (TC), Basketball court (BC), Stor- age tank (ST), Soccer-ball field (SBF), Roundabout (RA), Swimming pool (SP), and Helicopter (HC) [8].
Table 5. Comparisons with state-of-the-art detectors on DOTA. There are 15 categories, including Baseball diamond (BD), Ground track field (GTF), Small vehicle (SV), Large vehicle (LV), Tennis court (TC), Basketball court (BC), Stor- age tank (ST), Soccer-ball field (SBF), Roundabout (RA), Swimming pool (SP), and Helicopter (HC) [8].
MethodPlaneBDBridgeGTFSVLVShipTCBCSTSBFRAHarborSPHCmAP
FR-O [33]79.4277.1317.764.0535.338.0237.1689.4169.6459.2850.352.9147.8947.446.354.13
RRPN [34]80.9465.7535.3467.4459.9250.9155.8190.6766.9272.3955.0652.2355.1453.3548.2260.67
R2CNN [35]88.5271.231.6659.351.8556.1957.2590.8172.8467.3856.6952.8453.0851.9453.5861.01
DPSRP [8]81.1877.4235.4870.4156.7450.4253.5689.9779.6876.4861.9959.9453.3464.0447.7663.89
RoI Trans. [8]88.5377.9137.6374.0866.5362.9766.5790.579.4676.7559.0456.7362.5461.2955.5667.74
PnP87.9875.3845.9371.2665.1068.9377.0487.6381.5978.9658.5457.2063.9562.3249.0168.72
APP89.0678.2343.5276.3968.4271.6279.0590.4281.5180.5159.4858.9164.2162.1948.4670.13
Table 6. Models with different parameters. We used five groups of loss weights to get different parameter models and compared their recognition accuracy.
Table 6. Models with different parameters. We used five groups of loss weights to get different parameter models and compared their recognition accuracy.
Number λ n o o b j λ o b j λ R O I λ p t s λ s o f t m a x
1120.000111
2130.000111
3150.000121
4120.00011.51
5120.111
Table 7. mAP for each model. It can be seen from the table that the model obtained by row 1 has the highest overall accuracy.
Table 7. mAP for each model. It can be seen from the table that the model obtained by row 1 has the highest overall accuracy.
MethodPlaneBDBridgeGTFSVLVShipTCBCSTSBFRAHarborSPHCmAP
189.0678.2343.5276.3968.4271.6279.0590.4281.5180.5159.4858.9164.2162.1948.4670.13
287.4979.4141.9275.8267.3972.0379.0588.2582.1882.4360.9158.3863.1961.4247.2469.81
385.9777.1149.0173.3271.0470.2877.3785.7278.9476.3557.8359.3061.6759.6545.4768.60
482.4378.1353.5771.5466.7769.4075.0982.1875.5978.6363.1961.6760.6660.9152.3068.80
583.4471.6554.5870.5368.5171.5477.8788.2582.4377.6258.3855.5959.3957.6247.2468.31
Table 8. Speed comparison with other methods (unit: ms). The LR-O, RoI Trans, and DPSRP denote RoI Transformer and the Light-Head R-CNN OBB, deformable Position Sensitive RoI pooling, respectively [8].
Table 8. Speed comparison with other methods (unit: ms). The LR-O, RoI Trans, and DPSRP denote RoI Transformer and the Light-Head R-CNN OBB, deformable Position Sensitive RoI pooling, respectively [8].
Image SizeLR-ORoI Trans.DPSRPAPP
416 × 416 ---13.5
1024 × 1024 141170206140
Table 9. Mean length of the objects.
Table 9. Mean length of the objects.
ObjectPlaneBDBridgeGTFSVLVShipTCBCSTSBFRAHarborSPHCavg
length1.045641.01691.72421.48342.13733.82742.93551.94101.86251.01741.31421.02784.41731.09142.95271.9863
Table 10. Angle error and pixel error.
Table 10. Angle error and pixel error.
Number λ n o o b j λ o b j λ R O I λ p t s λ s o f t m a x Average Angle ErrorGlobal Projection Pixel Error
1120.0001114.282.03
2130.0001114.322.05
3150.0001214.852.07
4120.00011.514.932.16
5120.1114.782.37

Share and Cite

MDPI and ACS Style

Liu, J.; Gao, Y. 3D Pose Estimation for Object Detection in Remote Sensing Images. Sensors 2020, 20, 1240. https://doi.org/10.3390/s20051240

AMA Style

Liu J, Gao Y. 3D Pose Estimation for Object Detection in Remote Sensing Images. Sensors. 2020; 20(5):1240. https://doi.org/10.3390/s20051240

Chicago/Turabian Style

Liu, Jin, and Yongjian Gao. 2020. "3D Pose Estimation for Object Detection in Remote Sensing Images" Sensors 20, no. 5: 1240. https://doi.org/10.3390/s20051240

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop