IntroductionThe traditional Chinese medicine (TCM) Potentilla anserina L. can use both as food and medicine. At present, the market mainly depends on experience to identify the species and determine the production areas of P. anserina. To ensure the quality of P. anserina, it is essential to improve the level of quality control.ObjectiveWe aimed to establish a rapid and nondestructive discrimination model to identify P. anserina from different production areas by near‐infrared spectroscopy.MethodsThe spectra of complete P. anserina medicinal materials and their powder of the same variety from four production areas were collected, and principal component analysis discriminant analysis and partial least squares discriminant analysis (PLS‐DA) were conducted based on different pretreatment methods and band selection methods. Then, the spectra of complete medicinal materials were converted into the spectra of medicinal powder for nondestructive identification.ResultsThe correct recognition rate (CRR) of the PLS‐DA discriminant model was the best after spectral preprocessing using autoscaling and competitive adaptive reweighted sampling for band selection. The CRRs of the calibration set and validation set were 100%, the CRRs of the external test set were 95%, 90%, 82%, and 88%, respectively, and the CRRs of the transfer external test set were 84%, 80%, 82%, and 86%, respectively.ConclusionWe realized the nondestructive and effective identification of P. anserina from different origins and laid a foundation for the industrialization and upgrading of TCM.