摘 要:针对检测检验行业中碰撞试验检测报告人工编写周期长、效率低的问题,本文设计并实现了一种基于Python、SQLite及PySide6的自动化生成系统。该系统通过分类编号驱动的模板绑定机制,实现多车型报告的动态适配;基于路径抽象与配置管理方法,增强对Evaluation PC评估软件多版本接口的兼容性;借助COM接口与批处理命令,深度集成EVA_eXecute工具,完成mme文件解析、测试结果提取与图表生成,并利用docxtpl模板引擎完成Word报告的图文填充,实现全过程自动化。测试结果表明,该系统可将报告生成时间缩短至6min,显著提升了效率。
关键词:汽车碰撞试验;检测报告;数据自动处理;软件生成
中图分类号:U467.14;TP311 文献标志码:A DOI:10.15917/j.cnki.1006-3331.2026.03.010
Design and Application of Vehicle Collision Data Automation Post-processing Software Based on Python and PySide6
HU Wei, LONG Sijie, ZHOU Liang,WANG Xin, TAN Dingjie, KUANG Minxing, LIU Yunjie, LU Jun
Abstract: To address the long cycle time and low efficiency of manually writing crash test reports in the inspection and testing industry,this paper designs and implements an automated generation system with Python,SQLite,and PySide6.The system uses a category_id-driven template-binding mechanism to achieve dynamic adaptation for multi-vehicle reports.Based on path abstraction and configuration management methods,it enhances compatibility with multiple versions of the Evaluation PC assessment software.Through COM interfaces and batch commands,it deeply integrates the EVA_eXecute tool to parse mmefiles,extract test results,and generate charts.The system uses the docxtpl template engine to fill Word reports with text and graphics,realizing full-process automation.The test results show that the system reduces the report generation time to 6 min,significantly improving efficiency.
Key words: automotive crash test; test report; automated data processing; software generation