Face recognition via thermal infrared images is a modern recognition method. It has been so interesting for many researchers during last ten years. This method which operates via thermal features and the situation of human face vessels has much more benefits than visual-based methods. In these images, the effect of environmental lights changes, which is one of the most important obstacles of face recognition via visual images, is totally eliminated. The most important face recognition problem via thermal infrared images is the existence of diffusion obstacles like glasses and beard, which block the exact extraction of the situation of face vessels. Considering the suggested algorithm, these problems have been completely solved. In this paper face recognition is done through face vessels. For extraction of the face features, the situation of vessel branches is used. Also by choosing appropriate classification, fake vessels and false branches has been omitted. On the other hand, the best feature is extracted by using Dynamic Time Wrapping algorithm which is resistant to nonlinear changes. The simulation on UTK-IRIS gallery set has showed the accurate recognition rate 95% on the images with glasses and 88% on the images with beard, so the proposed method has improved the recognition rate about 10% and 44% respectively on same gallery set compared with the best other works.