摘要酒驾和疲劳驾驶已成为引起交通事故的两大元凶。针对这一问题,本文设计实现了智能安全驾驶预警系统,以尽可能地避免此类交通事故。该系统包括两个功能模块:一个是防酒驾模块,另一个是疲劳驾驶预警模块。84453
防酒驾模块设计和实现流程如下:采用MQ-3传感器检测酒精浓度、利用STC90C51单片机进行数据处理、辅以数码管实时显示和蜂鸣器报警等功能。疲劳驾驶预警模块首先采集驾驶员面部图像,然后采用径向对称变换(RST)算法对采集的图像进行处理、通过检测人眼的睁闭状态来判断司机是否属于疲劳驾驶。如果眼睛闭合,判断为疲劳驾驶,同时蜂鸣器会发出报警的声音。
系统的具体实现技术如下:下位机采用C语言进行数据处理,上位机利用Matlab进行图像处理、C#进行用户界面设计,下位机和上位机之间采用串口通信。本文从理论到实践,从硬件设计到软件实现,循序渐进的构筑智能安全驾驶预警系统。
毕业论文关键词:防酒驾;疲劳驾驶; C51单片机;预警系统
Abstract Drunk driving and fatigue driving have become two criminal culprits for road traffic。 In this paper, we design and realize a smart warning system to avoid the accidents caused by drunk driving and fatigue driving。 The system includes two functions: one for anti-drunk driving and another for prevent fatigue driving。
The anti-drunk driving module is designed as follows: a MQ-3 alcohol sensor is used to detect the alcohol strength; STC90C51 processor is used to process the collected data; LED is employed to display the result in real time; finally, a buzzer is used for warning。 As for fatigue driving, the facial image of the driver is captured firstly。 Then a radial symmetry transform (RST) method is used to process the image to find whether the eyes of the driver are open or closed。 The driver conducts fatigue driving if the eyes are closed。 The buzzer will warn him loudly。
The following technologies and tools are used in the system: C language is used in Micro Controller Unit (MCU) for collected data processing; Matlab is used in PC for image processing; C# is used to realize user interface; serial port is used for communication between MCU and PC。 From theory to practice and from hardware design to software implementation, the system is designed and realized step by step。
Keywords: Anti-drunk driving; fatigue driving; C51 microcontroller; early warning systems
目 录
第一章 绪论 1
1。1 研究背景 1
1。2 研究现状 1
1。2。1 防酒驾研究现状 1
1。2。2 预防疲劳驾驶研究现状 2
1。3 研究目的和意义 2
1。3。1 研究目的 2
1。3。2 研究意义 3
第二章 相关技术和开发环境 4
2。1相关技术 4
2。1。1 C# 4
2。1。2 C语言 4
2。1。3 Matlab图像数字化处理 5
2。2 开发平台 5
2。2。1 。NET平台 5
2。2。2 uVision 4 KEIL 开发环境 6
2。2。3。PZISP自动下载软件 6
2。2。4 Matlab运行环境