In the context of rapid urbanization, public spaces in traditional villages face challenges such as material ageing, loss of characteristics, and functional decline. The scientific and objective assessment of the quality of these public spaces is crucial for the sustainable development of traditional villages. Panoramic images, as an important source of spatial data, combined with deep learning technology, can objectively quantify the characteristics of public spaces in traditional villages. However, existing research has paid insufficient attention to the evaluation of the quality of public spaces in traditional villages at the micro-scale, often relying on questionnaires and interviews, which makes it difficult to meet the needs of planning and construction. This study constructs an evaluation system for the quality of public spaces in traditional villages, taking national-level traditional villages in the Fangshan District of Beijing as an example, based on traditional field research, using deep learning and panoramic images to automatically extract the features of public spaces in traditional villages, using a combination of the Analytic Hierarchy Process (AHP) and Criteria Importance Through Intercriteria Correlation (CRITIC) methods to determine the weights of the indicators and applying the Technique for Order Preference by Similarity to an Ideal Solution (TOPSIS) method to evaluate the quality of public spaces in traditional villages. The study found that the quality of public spaces in Nanjiao Village is Grade I; Shuiyu Village and Liulinshui Village, Grade III; and Heilongguan Village, Grade IV and that there is still much room for improvement in general. The evaluation results match well with the public’s subjective perceptions, with an R2 value of 0.832, proving that the constructed evaluation system has a high degree of accuracy. This study provides a scientific basis and an effective tool for the planning, design, and management of public spaces in traditional villages, which helps decision-makers better protect and utilize them.