The invention belongs to the technical field of three-dimensional imaging, and discloses a
quaternary Gray code three-dimensional imaging method and device,
electronic equipment and a storage medium, and the method comprises the steps: obtaining an N-step phase shift fringe image and a
quaternary Gray code pattern, carrying out the projection on a to-be-measured three-dimensional object, and obtaining a projection fringe image and a
quaternary Gray code projection image, according to a pixel point
code word boundary recognition model,
code word boundaries of all pixel points in the quaternary Gray code projection drawing are recognized, phase levels corresponding to the
code word boundaries are calculated, the continuous
absolute phase of the to-be-measured three-dimensional object is obtained through calculation in combination with the projection
fringe pattern, and the continuous
absolute phase of the to-be-measured three-dimensional object is obtained on the basis of the
projector resolution and the coordinate
system conversion relation. Converting the continuous
absolute phase into a three-dimensional
point cloud coordinate; through a pixel point code word boundary identification model, the code word boundary of each pixel point of the quaternary Gray code projection drawing is calculated to calculate the corresponding phase level, and the continuous absolute phase is calculated in combination with the projection fringe drawing, so that three-dimensional measurement is performed on the three-dimensional object to be measured, and the three-dimensional imaging efficiency is improved.