With the continuous development of my country’s social economy, the ways to acquire images have become more and more abundant. How to effectively process, manage, and mine images has become a major and difficult problem in research. In view of the difficult problem of image recognition, the electronic derotation algorithm is introduced in this study, by combing and monitoring the edge features, establishing a corresponding sample database, analyzing the edge features of the image, and performing effective and stable tracking, so as to realize the automatic recognition and tracking of the digital image. The simulation experiment results show that the electronic derotation algorithm is effective and can support the automatic recognition and tracking of digital images.