Sound source localization based on microphone arrays has attracted extensive research interest in the fields of speech communication, detection and tracking. However, conventional near-field beamforming typically assumes free-field propagation and ignores coherent ground reflections, which bias phase estimates at floor-mounted arrays and degrade localization accuracy. To address this, the total Green’s function is reformulated by embedding the image-source reflected path directly into the beamforming propagation model. Unlike conventional approaches that assume free-field propagation, this formulation enables phase compensation to jointly account for the direct and ground-reflected wavefronts. The in-phase superposition of signals is then realized through frequency-domain phase compensation, and the sound source position is estimated via the maximum likelihood criterion. Subsequently, a dual-mode operation mechanism of automatic broadband scanning and manual single-frequency analysis is implemented, with frequency-weighted wideband spatial spectrum processing for noise and aliasing suppression. Finally, a real-time sound source localization system based on a 4 × 4 MEMS array is designed. Experimental results show that sound source localization in a broad frequency band can be achieved at standoff distances of 0.1 m–0.3 m from the array plane, with a localization accuracy of less than 0.015 m. The proposed method demonstrates strong robustness against ground-reflection interference and has potential applications in acoustic monitoring, industrial fault diagnosis and other related areas.