The invention relates to the technical field of optical measurement, and particularly discloses a co-
phase error detection method and device and a medium, and the method comprises the following steps: S1, carrying out the beam combination of two to-be-detected sub-aperture
pupil planes through a Mach-Zehnder interference configuration; s2, selecting one combined beam output of the Mach-Zehnder interference configuration, and capturing the
light intensity of the combined beam output in real time by using a detection camera; s3, performing
digital image processing on the combined beam output
light intensity to obtain an
image processing result; s4, according to an
image processing result, positioning a coordinate of a
maximum amplitude value in the
frequency domain information, and inversely solving a tilt error between
pupil planes of the two sub-apertures; and S5, according to the coordinate of the
maximum amplitude value in the
frequency domain information, obtaining the phase value of the coordinate in the
frequency domain, and inversely solving the
piston error between the
pupil planes of the two sub-apertures. The method is an optical detection method based on pupil plane interference, does not need an iterative
algorithm, is high in detection frequency, and is suitable for common application scenes requiring real-time performance, such as atmospheric turbulence resistance.