Sie sind auf Seite 1von 34

COLLEGE OF APPLIED SCIENCE

VADAKKENCHERRY

Presentation
on

VETERINARY ACCIDENT
PREVENTION DEVICE FOR
RARILWAYS
Presented by :
THANSEER A.I
M Sc ELECTRONICS
IHRD
VADAKKENCHERRY

AIM :

In the recent decade the incidence of wild animals


fatalities involving trains has remained high in the
country.
According to recent survey by Wildlife Trust of India
(WTI), 72 animals are dying each year due to collision
with speeding trains.
To prevent incidents of animals getting hit by trains,
this project will develop a camera device to prevent the
accidents.
The device- veterinary accident prevention system-will
detect the presence of veterinary on the railway tracks
and activate a signal system that would alert the trains to
slow down or stop.

INTRODUTION :
CAMERA SECTION
TRAIN ALERT SECTION
CAMERA SECTION
Personal computer
IR camera
ZIGBEE module

Buzzer

TRAIN ALERT SECTION


ZIGBEE module
ATmega32
Red light
Buzzer
Lcd display

FUNCTIONAL BLOCK DIAGRAM:

CONTROLLING SECTION

BUZZER
Camera

USB

PC
(IMAGE PROCESSING)

USART

ZIGBEE

TRAIN ALERT SECTION

16X2 LCD

RED LIGHT

ZIGBEE

USART

AVR
microcontroller

BUZZER

BLOCK DIAGRAM DESCRIPTION:


CAMERA SECTION
ZIGBEE MODULE:
ZIGBEE MODULE is wireless communication. It is connected to the PC
through RS232 protocol used here to communication between controlling
section and train alert section
IR WEBCAM:
The IR web cam is focus on the proposed railway track which will take real
time monitoring videos and pass to personal computer.
PC:
A Personal computer is used here to process the live video from the IR
webcam. It also generates the control signal being sent to the train alert
section.
BUZZER:
A buzzer is used here to alert the animals from the railway track. If the
animals will detect on the track, then the buzzer will ring.

TRAIN ALERT SECTION


LIQUID CRYSTAL DISPLAY :
LCD is a module is used for displaying the commands to the lockopiolet of
train if animal will detected on the track . Once an object is displayed, it
remains there until display is cleared or it is overwritten.
BUZZER:
A buzzer is used here to alert the train if the animals will detect on the
track.
RED LIGHT:
An array of led is used here to indicate the red light to warn the trains if the
animals will detect on the track.
ZIGBEE MODULE:
ZIGBEE MODULE is wireless communication. It is connected to the PC
through RS232 protocol used here to communication between controlling
section and train alert section

CIRCUIT DIAGRAM

CAMERA
i-Ball Face2Face CHD12.0 web camera with
interpolated 12.0MP

Still Image resolution, 2.0MP Video resolution and


5G Wide angle lenses provides smooth video and lets
you enjoy the clarity of web video

ATMEGA32 FEATURES
Flash

32k

EEPROM

1k

RAM

2k

I/O Pins

32

I/o ports

A,B,C,D

Interrupts

21

USARTS

ADC Channels

RT Counter (w/osc)

Timers (8-bit)

Timers (16-bit)

PWM (8-bit)

PWM (16-bit)

PIN DIAGRAM

RS232 SIGNALS

MAX232

LCD

BUZZER

POWER SUPPY
Power Supply Socket

PROBLEM FACED AND SOLUTION


1.Night vision (light intensity problem at night )

Light intensity problem s depends on whether condition it may affect to


the processing of images
Solution:IR CAMERA :- IR camera used here to help to capture a night vision
images.
2.Cost of a IR CAMERA
usb IR CAMERA has a large cost( a good IR camera with MATLAB
interfacing has price around 10000 INR),
Solution:A normal CAMERA change to IR CAMERA using some tricks

NORMAL CAMERA CHANGE TO IR DETECTION CAMERA


Most digital cameras, still, video or webcams, can only capture images when there is
sufficient light on the subject. Insufficient light creates hazy and bad quality images.
Infrared (IR) light can illuminate the subject and we can capture images even in
the dark.
IR light is actually an electromagnetic radiation whose wavelength is higher than
normal light visible to the human eye.
This means, when a subject is illuminated with infrared light, humans cannot see it,
but a digital camera can capture these images quite well.

Steps:Removing of IR blocking filter on a lens

The below figure shows the lens of a normal camera

the figure shows infrared filter ,it blocks ir rays, it passes only a visible light

STEPS INVOLVING IN IR CAMERA DESIGN

ALGORITHM
MATLAB
1. Initialize image acquisition tool boxes and initialize serial communication
2. Start the camera and preview real-time video.
3.

Capture 5 frames and store to the data base.

4. Take a difference of those images with one background image.

5.

Define a foreground detection algorithm

6. Grabbing frames from 1:100 and set first 15 frames as background

7.

Check grabbing frames =100 then go to step 8

8.

Compare background image with current frames and store the difference

9. Check the difference is greater than 10000 and also checks the first 5
frames difference is not equal to current difference then go to next step
otherwise go to step11
10. Display animal detected on the track and alert a beep, send a Y signal to
Zigbee then go to step 9
11. Display no animal on the track and stop the beep, send an N signal to
Zigbee then go to step 9
12. stop

EMBEDDED
1. Start
2. Initialize the USART,LCD commands.
3. Configure the ports of AVR according to the input and output.
4. display VAPD FOR RAILWAYS on LCD
5. Check continuously USART PINS

6. If USART receives Y, display "ANIMAL DETECTED ---STOP TRAIN--- on LCD S red


light ON and buzzer ON .
7. If USART receives N, display "NO ANIMAL---GO--- on LCD
8. red light OFF and buzzer OFF.
9. Repeat 5
10. stop

FLOWCHART
MATLAB
Start

Compare background image with current


frames and store the difference
No
Initialize image acquisition toolbox serial
communication

Fgmas
k>100
00
Yes

Capturing first 5 frames and set as a


background

Yes
Frame
>=100

Display animal detected, alert siren And


send a signal Y to ZIGBEE

Display animal detected, alert siren And


send a signal Y to ZIGBEE

No

Initialize foreground detector and grab frames


1:100 and start video player

Stop

Start

EMBEDDED
Initialize USART,PORT A,PORT
D and PORT D as OUTPUT

no

If
USART
=
Y
yes
LED , BUZZER ON and display
animal detected on LCD

no

If
USART
==N

yes
LED , BUZZER OFF and display
NO ANIMAL on LCD

Stop

PCB LAYOUT

FEATURES
Very simple design and construction

Latest Technology-Very Economically priced


Light weight, Easy to handle, simple operation
ZIGBEE technology provides speedy data transfer

HOW TO MODIFY AND EXPAND

The project can be expanded to the level of an live system

The project can be expanded to the DSP processor instead of MATLAB


Implementing of a good quality IR CAMERA
In the detecting program we can include the template matching algorithm.
Using ultrasonic for distance measurement between train and detection
section

FUTUROSCOPE

AUTOMATIC SECURITY CAMS


BANK LOCKERS
HAZZARDEOUS ENVIORNMENTAL SECURITY IN LARGE
INDUSTRIES

CONCLUSION
Our system efficiently checks the proposed railway track. If there
is an animal on the track then camera will detected and send alert
signal to the train apart from 200 meter distance .
If there is animal on the track then train will stop or slow down to
avoid the collision.
There are two sections in this project, one is near railway track and
other is in train.
These two parts communicate by means of a wireless technology,
called ZIGBEE.

By implementing this system the speed train accidents with


animal can be reduced to a large amount.
The future of the system is bright if the well wishers and the
interested ones take the challenges in making the necessary
modification and overcoming the limitations

Das könnte Ihnen auch gefallen