Automatic maritime surveillance with visual target detection