1. A method of generating a structured light speckle encoded pattern, comprising: Step 1: fabricating an initial speckle pattern with evenly distributed speckle particles; Step 2: screening positions that all speckle particles can be disturbed to in the initial speckle pattern according to a speckle particle isolation principle; Step 3: performing random disturbance to each speckle particle in the initial speckle pattern according to a generated random array and the screened positions that can be disturbed to; Step 4: performing window uniqueness analysis to the disturbed speckle encoded pattern to determine whether the disturbed speckle encoded pattern meets requirements of a window uniqueness distribution.