To address the low efficiency of ore detection methods caused by the complex lighting environment of mining sites, an all-weather real-time ore detection method based on near-infrared structured light and zero-crossing points characteristics was proposed. Firstly, an image acquisition method based on the infrared–visible radiation detection model (IVRDM) is proposed to avoid structured light imaging being disturbed by a strong sunlight environment; Then, the centerline of the light bar is extracted quickly and accurately based on the zero-crossing point characteristics; Finally, the light bar neighborhood splicing detection method was proposed to realize the real-time detection and 3D measurement of the target ore. The experimental results show that the proposed method can effectively resist strong sunlight interference and faster detection speed, the average extraction time of light bar centerline per frame is below 1.8 ms, and the error rate of ore size detection is <5 %.