This application discloses a
structured light encoding and decoding method based on polarization state modulation, relating to the field of 3D reconstruction technology. The method includes: controlling a
projector to sequentially project a group of polarized
structured light patterns onto the object under test, and controlling a polarization camera to synchronously acquire these patterns, obtaining a corresponding polarization
image sequence; calculating the polarization angle of each camera
pixel based on the polarization
image sequence, obtaining a polarization angle map for each frame; for each camera pixel, calculating the wrapping phase based on the polarization angle map, obtaining a wrapping
phase map for that frequency; obtaining an
absolute phase map based on the wrapping
phase map using a single-frequency
absolute phase unfolding
algorithm, establishing a mapping relationship between the column coordinates of camera pixels and
projector pixels; and, based on pre-calibrated intrinsic and extrinsic parameters of the camera and
projector, combined with the linear mapping relationship, calculating the 3D
point cloud of the object under test through
triangulation. This application aims to address the shortcomings of 3D reconstruction results being affected by the
reflectivity of the object surface and
ambient lighting.