An intelligent vehicle safety system based on image processing technology

Publisher:沈阳阿荣Latest update time:2011-07-19 Source: 山西电子技术Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1 Introduction

Since the 21st century, the automobile industry has played a leading role. At the same time, the proportion of electronic equipment in the cost of vehicle manufacturing has increased from 16% to more than 30%. In 2010, the proportion of automobiles equipped with automotive electronics will reach 40%. In the future, components and peripheral products around safety, energy saving, environmental protection, comfort and entertainment will develop faster. In this context, this paper designs and develops an intelligent vehicle safety system based on image processing technology.

2 System Introduction

2.1 Development Platform

This system is based on the EC5-1719CLDNA development board. EC5-1719CLDNA supports Intel CoreDuo/Celeron M low-power processors, and is integrated with the graphics processing core by the Intel945GM chipset. It supports VGA, LVDS, DVI, TV-OUT and dual-screen displays, and has 1 PCI-104, 1 PCIE×4 expansion bus, 4 USB2.0 interfaces, and 2 SATA interfaces.

The development board has expanded a wealth of peripheral hardware devices, using the powerful algorithm technology in the image processing open source code opencv, combined with signal processing technology, to give full play to the high-speed CPU performance of this development board.

2.2 System Framework

The functions of this system are divided into three aspects: safety, communication, and multimedia. Safety includes license plate distance measurement, laser distance measurement, fatigue driving detection, panoramic view system (AVM), alcohol concentration detection and temperature detection. Communication includes GPRS Internet access, GSM calls, GPS navigation, multimedia, media player, including car entertainment system, video acquisition.

The system block diagram is shown in Figure 1.

2.3 Basic functions

The system functions include laser ranging, fatigue detection, alcohol concentration detection, GPS positioning, and panoramic view.

Laser distance measurement measures the distance between a car and possible cars on its left and right sides to determine whether it is safe. If it is not safe, an alarm will be issued. Fatigue detection monitors the time the human eye is closed. If it exceeds a certain time, the driver is considered to be fatigued and an alarm will be issued. Alcohol concentration detection tests the alcohol concentration in the air. If the alcohol concentration exceeds the standard, an alarm will be issued. GPS positioning embeds the GPS system into this system to achieve GPS positioning.

The panoramic surround view system installs four cameras around the vehicle, captures the real-time view through the four cameras, and combines the images collected by the four cameras and displays them on the display screen in the cab. The driver can understand the entire situation around the vehicle at a glance, thereby improving the overall safety factor of the car.

3 Function Implementation

3.1 Functional implementation of laser ranging

The principle diagram is shown in Figure 2. Assuming that the laser beam is completely parallel to the optical axis of the camera, the center of the laser beam is the brightest point in the camera's field of view. When the laser beam shines on the tracking target in the camera's field of view, the camera can capture this point.

It is easy to deduce the distance D:

Where: Num is the number of pixels from the center of the image to the landing point, Rop is the radian value of each pixel, and Offet is the radian error.

The algorithm flow is as follows: first, start the camera, collect video images through the camera, and capture images; use the bright spot detection program to find the bright spot shown by the laser, and if it exists, measure the number of pixels Num from the center of the image; finally, calculate the distance through the formula, and determine whether it is safe by comparing it with the set safety distance. If it is not safe, an alarm will be issued.

3.2 Implementation of Fatigue Driving Detection Function

Studies have shown that when people feel sleepy, their blinking speed slows down and the duration of blinking increases. This system determines whether fatigue occurs by extracting the duration of the driver's eyes closing.

By detecting the face range, determine whether the face exists. If not, the timer is reset and the system returns. If a face is detected, the timer starts and begins counting. At the same time, the eyes are located through facial feature recognition. If the eyes can be located within a certain time slot, it proves that the driver is not in a fatigued driving state. At this time, the timer is reset and the system returns. If the eyes cannot be located within 5S, it is considered that the driver is in a fatigued driving state, and an alarm is issued.

The algorithm flow chart is shown in Figure 3.

3.3 Implementation of alcohol concentration detection function

This system uses the alcohol sensor NAP-66E to measure alcohol concentration. NAP-66E has good linearity, a wide operating temperature range, and can work normally in various harsh environments. Its maximum output voltage is 10mV. Therefore, in order to obtain the alcohol content, the output analog quantity of the alcohol sensor must be amplified by a two-stage amplifier to a voltage value that matches the A/D converter TLC2543. After A/D conversion, the obtained value is properly processed in the MCU, and finally communicates with the PC through the serial port line, and transmits the measured data to the PC in real time, and uses the PC to realize display, alarm and other functions. The alcohol detection chip is applied, and the alcohol detection module is formed through the hardware connection with the single-chip microcomputer, A/D chip, and operational amplifier. The designed circuit is shown in Figure 4.

3.4 Implementation of GPS positioning function

This system uses GARMIN's GPS receiver OEM board - GPS 15H, with RS-232 output, and the interface protocol uses NMEA0183 version 2.00 or 3.00 (optional) ASCII code statements. The data update rate is once per second, and the serial transmission parameters are: baud rate = 9600, data bits = 8 bits, stop bits = 1 bit, no parity check.

When reading GPS data, the system uses the serial port to receive data. The software implementation principle is as follows:

Initialize first and set the serial port to use. The corresponding baud rate is 9600, the data bit is 8 bits, and the stop bit is 1 bit. After the user clicks the receive button, use the query method to read in 1024 bytes to find some strings after GPRMC (Global Position Recommended Minimum Specific). GPRMC includes the valid bits of the data that the program is most concerned about, latitude and longitude. The data format is as follows:

$GPRMC,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12> ,<13>

<1> Greenwich Mean Time of the current location, in the format of hhmmss

<2> status, A is a valid position, V is an invalid reception warning, that is, the number of satellites above the current antenna field of view is less than 3.

<3> Latitude, the format is ddmm.mmmm

<4> Indicates the northern and southern hemispheres, N for the northern hemisphere and S for the southern hemisphere

<5> Diameter, the format is dddmm.mmmm

<6> Indicates the eastern and western hemispheres, E for the eastern hemisphere and W for the western hemisphere

<7> Speed ​​on the ground, ranging from 0.0 to 999.9

The data after <8> are not used.

In order to facilitate data reception, the corresponding software is used to shield unnecessary statements, leaving only the GPRMC statement. Since the GPS module obtains valid data in about 90 seconds in the open air after power-on, the 13th bit after the G in GPRMC is found to be the valid data bit.

When 'A' is determined, the following 9 bits are read from the 17th bit in the data segment as latitude display, and the following 10 bits are read from the 29th bit as longitude display. Then the received GPS longitude and latitude are automatically called to the map in the library through appropriate conversion, and the current location is indicated by a red dot on the map.

3.5 Implementation of Panoramic View Function

The panoramic view system has four cameras installed on the front grille, left and right side exterior mirrors and tailgate of the vehicle. The camera has a wide-angle lens and can take real-time wide-angle photos. The software is developed using the DirectShow development kit. Using DirectShow to develop applications can easily capture data from acquisition cards that support the WDM driver model, and perform corresponding post-processing or even store it in a file.

Keywords:DSP Reference address:An intelligent vehicle safety system based on image processing technology

Previous article:Connecting cars, people and society: NEC Networks' vision for in-vehicle intelligent communication system
Next article:Application of TMS320VC5402 in Automobile Anti-collision Warning Radar

Recommended ReadingLatest update time:2024-11-16 16:20

Application of HPI in MCU and DSP interface
  This paper describes the working principle of HPI interface and the interface circuit design between C8051F060 and TMS320VC5409 (referred to as C5409), and gives the software design of HPI interface. This system has flexible design, fast data transmission speed, and is suitable for other DSP application systems with
[Microcontroller]
Application of HPI in MCU and DSP interface
Transphorm Releases Second Evaluation Board Using Microchip DSP
Transphorm, a company that designs and manufactures JEDEC- and AEC-Q101-compliant GaN FETs, has announced the release of its second evaluation board using Microchip’s DSP technology. The TDTTP2500B066B-KIT is a 2.5kW AC-DC bridgeless totem-pole power factor correction (PFC) evaluation board that pairs Tra
[Power Management]
Design of TMS320C30 and A/D and D/A interfaces
    Abstract: A design method for the interface between DSP and A/D and D/A with minimal hardware generation and simple software control. This method uses the program control capability of DSP to coordinate the work of various modules such as A/D and D/A, and does not require bus isolation. This method has been succe
[Analog Electronics]
Dual-channel digital storage oscilloscope based on DSP
  1. Introduction   Digital storage oscilloscopes are different from general analog oscilloscopes. They convert the collected analog voltage signals into digital signals, which are analyzed, processed, stored, displayed or printed by the internal microprocessor. This type of oscilloscope usually has program control a
[Embedded]
Dual-channel digital storage oscilloscope based on DSP
Decomposing the low power and high performance advantages of multi-core DSP
Digital signal processing is the theory and technology of representing and processing signals in digital form. Digital signal processing and analog signal processing are subsets of signal processing. The purpose of digital signal processing is to measure or filter continuous analog signals in the real world. Therefor
[Embedded]
Power quality monitoring system based on fast transmission and mass storage
As the application of power electronic equipment becomes more and more extensive, the power load increases. Some of the impact and nonlinear loads cause voltage waveform distortion, voltage fluctuation, flicker and increased harmonic content in the power grid, and the power grid is seriously polluted. In addition, with
[Power Management]
Power quality monitoring system based on fast transmission and mass storage
Design of Sine Signal Generator Based on DSP
Introduction The sine signal generator is the most common type of signal. It can output a sine signal with adjustable amplitude and frequency. Among these signal generators, the low-frequency sine signal generator is the most commonly used and is widely used in scientific research and production practice. At pr
[Test Measurement]
Control of Ultrasonic Power Supply System Based on DSP Chip TMS320LF2407A
This paper uses the high-speed TMS320LF2407A DSP control chip to design the control circuit of the system, and uses a full-bridge inverter as the main power conversion circuit of the ultrasonic vibration system to solve the drift of the resonant frequency caused by load temperature changes and other reasons, and ensure
[Power Management]
Control of Ultrasonic Power Supply System Based on DSP Chip TMS320LF2407A
Latest Automotive Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号