Escolar Documentos
Profissional Documentos
Cultura Documentos
I. INTRODUCTION
A. Current State of Home Automation.
The dream of a fully automated home has existed for a long
time. Despite the interest of media and researchers and the
widespread availability of motion sensors, programmable
lighting and mobile applications, home automation itself has
not been widely adopted.
B. Types of Home Automation
Home automation has been dived into two categories, user
controlled and rule based [1]. In user controlled automation the
household member explicitly takes a single action which
causes several things to happen. This requires constant inputs
from the user even for actions that could have been actuated
reliably based on situation based on contextual awareness. For
example, a user turns off all the appliances while leaving the
house. This could have been automated using motion sensors
and computer vision. Whereas in user controlled home
automation he presses the All Off lighting button.
In rule-based automation, rules trigger automation based,
rules trigger automation based on events or at certain times.
These rules are configured by the professional installer. They
definitely represented an additional level of automation
inflexibility`.
The features that Viola and Jones used are based on Haar
wavelets[2]. Haar wavelets are single wavelength square
waves (one high interval and one low interval). In two
dimensions, a square wave is a pair of adjacent rectangles one light and one dark.
The actual rectangle combinations used for visual object
detection are not true Haar wavlets. Instead, they contain
rectangle combinations better suited to visual recognition
tasks. Because of that difference, these features are called
Haar features, or Haar like features, rather than Haar
wavelets.
Fig. 1. The two features are shown in the top row and then overlayed on a
typical training face in the bottom row. The first feature measures the
difference in intensity between the region of the eyes and a region across the
upper cheeks. The feature capitalizes on the observation that the eye region is
often darker than the cheeks. The second feature compares the intensities in
the eye regions to the intensity across the bridge of the nose.
A. Background Construction
The first step towards accurate detection is to determine the
background such that only the hand is extracted. Given the feed
from the camera We use running average over a sequence of
images to get the average image which will be the background
So as and when we keep receiving image, we construct the
new background average image as
CurBG[i][j] = CurBG[i][j] + (1- )CurFrame[i][j]
Fig. 3. When two users are detected two light bulbs are turned on to
increase illumination
(1)
II.
III.
F. Experimental Work
We applied simple background elimination techniques
and set of filters to get the hands contour and the number
of finger. After the determination of hand contour , we can
detect the activity being performed.
We will now discuss the implementation of this idea on
one commonly performed activity i.e. reading. A book or
even an electronic device is usually held in hand and the
hand position is adjusted for appropriate eye position. The
fingers are spread apart on the back of the book to give
adequate support.
The advantage of the contour detection algorithm is that
once the background has been suppressed, the book and
the hand form a closed concave structure which is detected
as a contour as shown in figure 5 and figure 6.
Fig. 4. Hand Contour is detected The green line bounding the hand
is convex hull .Basically its a convex set ; means if we take any two
points inside the red region and join them to form a line then the line
entirely lies inside the set
Fig. 5. The green line bounding the hand and the book is convex hull
.Convex hulls basically means if we take any two points inside the
green region and join them to form a line then the line entirely lies
inside the set.
Fig. 6. Once the contour is detected the two lights bulbs are
turned on to reduce eye strain.
V. EXPERIMENTAL SETUP
The prototype system consists of a PC running Microsoft
Visual Studio 2013 running OpenCV library, a webcam for
feature detection and an ARM 7 based microcontroller LPC
2148. The feed from the camera is processed and an command
is generated which is send to the microcontroller. The
Microcontroller controls switching relays. Various electrical
appliances are connected to these relay. OpenCV can be
installed on the ARM board itself by running embedded linux
to eliminate the need for PC and reduce costs.
LPC 2148
Max
232
U
A
R
T
GPIO
Relay
Bulb
Bulb
Face
detected?
No
Yes
Number
of faces
>1
Increase
Illumination
2.
3.
Turn Lights off
if on previously
=1
4.
5.
.
No
Eyes
detected?
6.
7.
Yes
Lights are turned on if
off previously
No
Hand
Contour
Detected?
Yes
Increase Illumination
8.
C. SPDT Relay
A relay is an electrically operated switch. Many relays use an
electromagnet to mechanically operate a switch, but other
operating principles are also used, such as solid-state relays.
Relays are used where it is necessary to control a circuit by a
low-power signal (with complete electrical isolation between
control and controlled circuits)
Since relays are switches, the terminology applied to
switches is also applied to relays; a relay switches one or more
poles, each of whose contacts can be thrown by energizing the
coil in one of three ways:
Normally-open (NO) contacts connect the circuit when the
relay is activated; the circuit is disconnected when the relay is
inactive. It is also called a Form A contact or "make" contact.
NO contacts may also be distinguished as "early-make" or
NOEM, which means that the contacts close before the button
or switch is fully engaged.
Normally-closed (NC) contacts disconnect the circuit when
the relay is activated; the circuit is connected when the relay is
inactive. It is also called a Form B contact or "break" contact.
[6]
S.no
Activity
1.
User is Working/Reading
4.
User is sleeping
5.
Feature
Detected
Face is
detected ,
number of
user also
detected
Two
Faces are
detected
Hand
contour is
detected
Eyes are
not
detected
No face
detected
Action
Taken
One bulb is
turned on
Two bulbs
are turned
on
Illumination
is increased
.Two light
bulbs are
turned on
Lights are
turned off
Lights are
turned off
[2]
[3]
[4]
[5]
[2]