Mechanically scanning radars are still widely used in ocean guard and surveillance areas nowadays, owing to simple structure, light weight and low cost. The antenna rotation causes amplitude modulation of target returns along pulses by the antenna azimuth beampattern. The traditional coherent detection that ignores this modulation suffers from some performance loss. In this paper, an antenna beampattern matched optimum coherent detector and a dual-threshold detection scheme are proposed for high-resolution mechanically scanning maritime surveillance radars. Firstly, it is shown that the modulation of target returns is determined by the antenna azimuth beampattern, scan rate, and pulse repetition interval (PRI) and the antenna scanning also affect the temporal correlation of sea clutter. Secondly, the antenna beampattern matched optimum coherent detector is given in compound-Gaussian sea clutter with inverse Gamma distributed texture and the pulse scanning mode is used to deal with unknown target azimuth angle in the matched filter. Thirdly, to mitigate the high computational cost of the pulse scanning mode, a dual-threshold scheme is given, which searches all pulse-range cells by short-time integration and further confirms suspected cells whose test statistics are between the two lower and higher thresholds in the search by long-time integration. Moreover, two fast recursive clutter covariance matrix inversion algorithms along pulses and range cells are presented, which bring a great reduction in computational complexity. Finally, real measured radar data is used to verify the proposed detector and scheme and the experimental results show that it behaves better in detection of small targets than the traditional detectors.