大学化学 >> 2026, Vol. 41 >> Issue (1): 394-405.doi: 10.12461/PKU.DXHX202506011

所属专题: 化学实验数字化设计竞赛获奖作品

专题 上一篇    下一篇

基于手机RGB图像-微信小程序的化学需氧量(COD)实时可视化快速分析

王诗彤1, 贺洋洋2, 熊细鸿3, 张维1, 夏美琳1, 唐凤琳1   

  1. 1 西华师范大学化学化工学院, 四川南充 637000;
    2 西华师范大学数学与信息学院, 四川南充 637000;
    3 西华师范大学计算机学院, 四川南充 637000
  • 收稿日期:2025-06-03 录用日期:2025-09-23 发布日期:2025-12-30
  • 通讯作者: 唐凤琳 E-mail:tfl06180205@cwnu.edu.cn Fenglin Tang
  • 基金资助:
    四川省自然科学基金青年基金项目(2023NSFSC0846);四川省级普通本科高校创新性实验项目;西华师范大学研究生教育改革研究项目(2022XM08)

Real-Time Visual Rapid Analysis of Chemical Oxygen Demand (COD) Based on Smartphone RGB Imaging and a WeChat Mini-Program

Shitong Wang1, Yangyang He2, Xihong Xiong3, Wei Zhang1, Meilin Xia1, Fenglin Tang1   

  1. 1 College of Chemistry and Chemical Engineering, China West Normal University, Nanchong 637000, Sichuan Province, China;
    2 College of Mathematics and Information, China West Normal University, Nanchong 637000, Sichuan Province, China;
    3 College of Computer Science, China West Normal University, Nanchong 637000, Sichuan Province, China
  • Received:2025-06-03 Accepted:2025-09-23 Published:2025-12-30
  • Contact: Fenglin Tang E-mail:tfl06180205@cwnu.edu.cn

摘要: 化学需氧量(Chemical oxygen demand,COD)是表征水体有机污染程度的关键指标,也是一项常规分析项目。本文基于HJ/T399-2007《水质化学需氧量的测定快速消解分光光度法》的标准方法,创新性地开发了一种基于智能手机RGB图像-微信小程序的COD实时可视化快速分析检测系统。采用智能手机的色彩识别功能提取经消解后水样图像的RGB值,并基于RGB建立三元多次回归数学模型,开发微信小程序对COD进行在线可视化分析,实现了智能手机对大批量水样COD的现场快速简便测定。该方法具有操作简单、成本较低、快速测定的优点。教学实践表明,该技术不仅适用于环境监测领域,还能有效促进分析化学实践教学,能够促进本科户外教学活动的开展,激发学生的化学学习兴趣,启迪其科学思维与创新意识,培养科学态度。

关键词: 化学需氧量(COD), RGB值, 智能手机, 微信小程序开发

Abstract: Chemical oxygen demand (COD) serves as a crucial parameter for assessing organic pollution in water and represents a routine analytical requirement. Building upon the standard method HJ/T399-2007 (“Water Quality-Determination of Chemical Oxygen Demand-Rapid Digestion Spectrophotometric Method”), this study innovatively developed a smartphone-based real-time visual detection system for COD analysis. The system utilizes smartphone color recognition to extract RGB values from digested water samples and establishes a ternary multiple regression model based on these values. A dedicated WeChat mini-program was developed to enable online visualization and analysis of COD, facilitating rapid on-site measurement of multiple water samples. This approach demonstrates advantages including operational simplicity, cost-effectiveness, and rapid analysis. Educational practice has shown that this technology not only finds application in environmental monitoring but also effectively enhances analytical chemistry pedagogy. It promotes outdoor teaching activities for undergraduates, stimulates students’ interest in chemistry, fosters scientific thinking and innovation awareness, and cultivates rigorous scientific attitudes.

Key words: Chemical oxygen demand (COD), RGB value, Smartphone, WeChat mini-program development