Image Processing Pipeline and a Global Search for Local Maxima Method of Object Detection