The invention discloses an automatic multi-
exposure selection method based on fringe projection. Firstly, a
projector is used for projecting a phase shift
fringe pattern to a detected scene, a camera synchronously collects a group of fringe patterns according to a preset
exposure value, and a pseudo white pattern is obtained by using the
fringe pattern with the highest frequency; finding an overexposure region with the brightness greater than a preset threshold value in the pseudo white image, and partitioning the overexposure region by using a seed filling
algorithm to obtain a plurality of sub-regions; and according to the pixel number and the average brightness of the overexposure sub-region with the maximum area, the
exposure time is iterated and calculated to obtain the optimal initial exposure time, so that the initial exposure is as large as possible, and the measured scene under the exposure has no obvious overexposure region. And through an automatic multi-exposure
algorithm based on a
fringe pattern modulation degree, multi-exposure times are calculated, subsequent exposure time is automatically iterated, and high-quality absolute phases under each exposure time are fused to obtain a multi-exposure fused
absolute phase. And performing stereo correction on absolute phases of the left and right cameras by using calibration parameters of the binocular camera. The absolute phases of the left camera and the right camera are subjected to
phase matching to obtain a two-dimensional disparity map, and high-speed and high-precision three-dimensional shape measurement is achieved.