The algorithm principle does not beat around the bush. The direct algorithm idea is: 1. Reduce the size, for example, to 8x8, a total of 64 pixels. The function of this step is to remove the details of the picture, retain only the basic information such as structure, light and shade, and discard the differences