Patent ID: 11287646

Abstract:
Disclosed is a method for correcting an image, a storage medium, and a projection device. The method is applied to a projection device, the projection device including a grating and a light generation component. The method includes: determining, in a region in which a projection image projected by the projection device overlaps with a projected image projected through the grating by detection light output from the projection device, diffraction spots having a diameter not equal to a preset value as target diffraction spots; determining a group of target diffraction spots continuously arranged in a horizontal or vertical direction, as well as diffraction spots having a diameter equal to the preset value that are respectively located on both sides of the group of target diffraction spots, as a region to be corrected; determining an angle αi between a plane of an ith diffraction spot and a plane of an (i+1)th diffraction spot that are adjacent in the horizontal or vertical direction in the region to be corrected; and determining a corrected projection length of the (i+1)th diffraction spot according to the preset value and angles α1 to αi.