The application discloses a semantic segmentation method based on phase profile constraint and belongs to the technical field of
computer vision. The method uses a calibrated camera-
projector system to collect a two-dimensional texture image and a deformed fringe image of a to-be-measured scene under the same
field of view; the deformed fringe image is solved through multi-step phase shifting and
Gray code technology to obtain an
absolute phase distribution and calculate a gradient field; according to a preset
mutation condition, a physical edge profile reflecting the depth change of an object is extracted from the gradient field; the physical edge profile is mapped into the two-dimensional texture
image based on the corresponding relationship of pixel coordinates to accurately define the semantic object area, the corresponding category
label is given, and finally a semantic
label mask image is generated. The application uses physical phase information to correct the uncertainty of
visual texture edges, effectively solves the
edge extraction problem under a complex light scene, realizes the automatic generation of semantic segmentation data, and improves the training precision and robustness of a semantic segmentation model.