Hierarchical modified fast R-CNN for object detection