首页 | 本学科首页   官方微博 | 高级检索  
     

基于DirectShow和Modbus的雪茄烟晾制数据采集系统构建与应用
引用本文:杨志吉,张拯源,沈俊儒,唐旭兵.基于DirectShow和Modbus的雪茄烟晾制数据采集系统构建与应用[J].中国烟草学报,2022,28(5):129-134.
作者姓名:杨志吉  张拯源  沈俊儒  唐旭兵
作者单位:云南香料烟有限责任公司,云南省保山市建设路174号 678000
基金项目:中国烟草总公司云南省公司科技计划项目"以品牌为导向的德宏优质雪茄烟叶开发及应用"2021530000242028
摘    要:  目的  为构建与应用雪茄烟晾制数据采集系统,获取雪茄烟晾制过程关键数据。  方法  架构以1个控制单元和若干检测单元组成的数据采集系统。控制单元由工控机和Delphi环境下开发的采集程序组成;检测单元由USB摄像头、温湿度传感器、重量传感器组成。采集程序利用DirectShow技术,实现USB摄像头视频取帧,获取雪茄烟叶图片;利用Modbus通信协议,通过串口通信采集温度、湿度、烟叶重量数据。并对温湿度及重量数据进行均值分析,对烟叶图片进行RGB值分析  结果  构建的数据采集系统采集了雪茄烟晾制过程图片与温湿度、重量数据,分析发现晾房第4~6层适宜于雪茄烟晾制,烟叶入棚1~8 d为变黄、定色关键期,第8 d后颜色将不再变化;入棚14 d后烟叶重量恒定。  结论  雪茄烟晾制数据采集系统达到设计要求,满足实用性,具有在不同种植区域推广的价值;通过系统采集数据可建立雪茄烟晾制工艺数据库,为雪茄烟的自动化晾制提供基础。 

关 键 词:数据采集    DirectShow    Modbus    雪茄烟    晾制
收稿时间:2021-08-16

Construction and application of data acquisition system in the cigar air-curing based on DirectShow and Modbus
Affiliation:Yunnan Oriental Tobacco Co., Ltd, Baoshan 678000, China
Abstract:  Objective  In this study, a data acquisition system for cigar air-curing is developed to obtain the key data during the cigar air-curing process.  Methods  The data acquisition system is integrated into a control unit and several detection units. The control unit consists of industrial computer and acquisition program developed in Delphi environment; The detection unit is composed of a USB camera, a temperature and humidity sensor and a weight sensor. The acquisition program uses DirectShow technology to capture frames from USB camera video and obtain cigar tobacco pictures; Temperature, humidity and tobacco weight data were collected through serial communication using Modbus communication protocol. The mean value of temperature, humidity and weight data was analyzed, and the RGB value of cigar pictures was analyzed.  Results  The pictures, temperature, humidity and weight data of cigar tobacco during air-curing process were collected by the constructed system. The results show that the 4~6 floors of the curing room were more suitable for the air-curing of cigar. The key period of yellowing and color fixing was 1~8 d after cigar leaves entered the curing room, and the color would not change after 8 d. After 14 d of curing, the weight of cigar leaves remained constant.  Conclusion  The data acquisition system for cigar curing process meets the design and actual requirements, which is worth of being poplularized in different planting areas. The data collected by the system can be used to establish the database of cigar air-curing process, which provides the basis for automatic air-curing of cigar. 
Keywords:
点击此处可从《中国烟草学报》浏览原始摘要信息
点击此处可从《中国烟草学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号