You are on page 1of 44

SDM COLLEGEOFENGI

NEERI
NGAND
TECHNOLOGY,
Dhar
wad-
580002
(
Anaut
onomousI
nst
it
uti
onaf
fi
li
atedt
o
Vi
svesv
aray
aTechnol
ogi
calUni
ver
sit
y,Bel
gaum –590018)

Depar
tmentofEl
ect
roni
csandCommuni
cat
ionEngi
neer
ing
ARepor
tont
heMi
ni-
proj
ectent
it
led


Sur
vei
ll
ancecamer
ausi
ngr
aspber
rypi3B
andandr
oidapp”

Pr
oposedby

Ms.AnupamaBel
agaon 2SD16EC011
Mr
.Rakshi
tNHegde 2SD16EC080
Mr
.Pr
ashantSWar
ad 2SD16EC131
Mr
.Shashi
dharSMar
ali
hal
l
i 2SD16EC095

St sof6thsemest
udent er

Academi
cyear2018-
19
S.D.M.Col
l
egeofEngi
neer
ing&Technol
ogy
Dhar
wad–580002

Depar
tmentofEl
ect
roni
csandCommuni
cat
ionEngi
neer
ing

CERTI
FICATE
Thi
sist
ocer
ti
fyt
hatMs.ANUPAMABELAGAON,Mr
.RAKSHI
TNHEGDE,
Mr
.PRASHANTSWARAD,
Mr.SHASHI
DHARSMARALI
HALLI
,bear
ingUSN:
2SD16EC011,2SD16EC080,2SD16EC131,2SD16EC095,St sof6th
udent
Semest
er hav
e sat
isf
act
ori
l
y compl
eted t
he Mi
ni Pr
oject ent
it
led

Sur
vei
l
lancecamer
ausi
ngr
aspber
rypi3Bandandr
oidapp”submi
tt
edt
o
Depar
tmentofEl
ect
roni
csandCommuni
cat
ionEngi
neer
ing,SDM Col
l
ege
ofEngi
neer
ingandTechnol
ogy
,Dhar
wad–580002.
CONTENTS

ABSTRACT 1

CHAPTER1:
INTRODUCTI
ON 2
1.
1Backgr
ound 2
1.
2Mot
ivat
ion 4
1.
3Ar
eaofut
il
it
y 4
1.
4Possi
blebenef
it
sandappl
i
cat
ions 4
CHAPTER2:
LITERATURESURVEY 5
2.
1Li
ter
atur
esur
vey
s 5
2.
1.1Smar
tSur
vei
l
lanceandMoni
tor
ingSy
stem usi
ng
Raspber
ryPi
andAndr
oid 5
2.
1.2AnI
OTAppr
oachf
orMot
ionDet
ect
ionusi
ng
ARM-
BasedSy
stem onChi
p 5
2.
1.3AnI
nter
netofThi
ngs(
IOT)BasedSecur
it
y
Al
ertSy
stem usi
ngRaspber
ryPi 6
2.
1.4AnI
OTAppr
oachf
orMot
ionDet
ect
ionusi
ng
Raspber
ryPi 6
2.
1.5Smar
tMot
ionDet
ect
ionusi
ngRaspber
ryPi 6
2.
1.6Adv
ancedReal
TimeHomeSecur
it
yBased
onRaspber
ryPi 7
2.
1.7Real
TimeVi
deoMoni
tor
ingSy
stem usi
ng
Raspber
ryPi 8
2.
2Pr
obl
em St
atement 8
2.
3Obj
ect
ives 8
2.
4Bl
ockDi
agr
am 9
CHAPTER3:
DESI
GNMETHODOLOGY 10
3.
1St
agesofDev
elopmentandTechni
quest
obeused 11
3.
1.1Gett
heSof
twar
eready 11
3.
1.2I
nst
all
Raspi
Cam Remot
eforAndr
oid 11

Page1of32
3.
1.3Conf
igur
eRaspi
-conf
ig 11
3.
1.4Set
ti
ngupRaspi
Cam Remot
eapp 12
3.
2Har
dwar
ecomponent
s 12
3.
2.1Raspber
ryPi
model
B 12
3.
2.2Raspber
ryPi
camer
amodul
e 12
3.
2.3Powersuppl
y 12
3.
2.4Mi
croSDcar
d 12
CHAPTER4:
COMPONENTDETAI
LS 13
4.
1Har
dwar
e 13
4.
1.1Raspber
ryPi 13
4.
1.2Camer
amodul
e 14
4.
2Sof
twar
e 16
4.
2.1Put
ty 16
4.
2.2Ti
ghtVNC 17
CHAPTER5:
MOTI
ON 18
5.
1AboutMot
ion 18
5.
2Mot
ionConf
igur
ati
on 18
5.
2.1RunasSer
vice 22
5.
2.2CommandLi
neOpt
ions 23
5.
2.3TheConf
igur
ati
onFi
l
es 23
CHAPTER6:
RESULTS 26
6.
1PushUpNot
if
icat
ionwhenMot
ionDet
ect
ed 26
6.
2Emai
l
ingofVi
deowhensav
ed 27
CHAPTER7:
FUTURESCOPEANDCONCLUSI
ON 29
7.
1Fut
urescope 29
7.
2Concl
usi
on 29
REFERENCES

Page2of32
LI
STOFFI
GURES

1.
1IOTusedi
ndi
ff
erentf
iel
ds 3
2.
4Bl
ockdi
agr
am 9
3.
1Sy
stem Fl
owDi
agr
am 10
4.
1.1Raspber
ryPi
3model
B 13
4.
1.2Camer
amodul
ev1 15
4.
2.1Put
tyconf
igur
ati
on 16
4.
2.2VNCv
iewer 17
6.
1Pushnot
if
icat
ionr
ecei
vedonmobi
l
ewhenmot
iondet
ect
ed 26
6.
2.1Not
if
icat
ionr
ecei
vedonmobi
l
ewhenv
ideoi
ssav
ed 27
6.
2.2Li
vest
ream

Page3of32
ABSTRACT

Recent
lysecur
it
yconcer
nshav
egr
ownt
remendousl
y,i
tisi
mpor
tantf
oral
ltobe
abl
etosaf
eguar
dthei
rpr
oper
tyf
rom wor
ldl
yhar
mssuchast
hef
ts,dest
ruct
ionof
pr
oper
tyet
c.Ast
het
echnol
ogyi
swi
del
ygr
owi
ngi
nmoder
nwor
ld,t
hemet
hodol
ogi
es
usedbyt
hiev
esandr
obber
sar
eal
soequal
l
yimpr
ovedi
nst
eal
i
ng.Ther
efor
e,i
tis
necessar
yfort
hesur
vei
l
lancet
echni
quesal
sot
obei
mpr
ovedwi
tht
hechangi
ngwor
ld.
Thel
atestt
echnol
ogi
esusedagai
nstt
hef
tanddest
ruct
ionar
ethev
ideosur
vei
l
lanceand
moni
tor
ing.Ev
enwhenneeded,hav
ingasecur
it
ycamer
asy
stem maysomet
imesbe
i
mpossi
bleduet
otheexpensi
vecostf
ori
nst
all
ati
on.

Raspber
rypii
scr
edi
tcar
dsi
zedcomput
ert
hathast
hecapabi
l
ityt
obecomea
camer
asecur
it
ysy
stem wheni
tsowncamer
aboar
disused.Thi
snewmet
hodol
ogyhas
beendev
elopedt
o det
ectt
hemot
ion.Af
termot
ioni
sdet
ect
eduserget
spushup
messageonandr
oidwi
thoutanydel
ayandher
epy
thonscr
ipti
sal
sousedwhi
chdi
rect
s
t
hepit
osendemai
lnot
if
icat
ionsev
ery
timemot
ioni
sdet
ect
ed.Wi
tht
hesecomponent
s,
acostef
fect
ive,l
ow powerandef
fi
cientsecur
it
ycamer
asy
stem i
smade.Ther
efor
e,
adv
ant
agesl
i
ket
hese,makest
hisappl
i
cat
ion i
dealf
ormoni
tor
ing i
n pr
event
ed or
secur
edar
eas.
CHAPTER1:
INTRODUCTI
ON

1.
1Backgr
ound

TheSur
vei
l
lancemeanst
omoni
torsomet
hing.Secur
it
yinr
esi
dent
ialcompl
exes
i
srest
ri
ctedt
oli
mit
edgeogr
aphi
call
ocat
ionsduet
othet
radi
ti
onaldev
icesandpr
ocess
usedf
orsecur
inganyapar
tmentorcompl
exes.Hi
ghDef
ini
ti
onSur
vei
l
lanceCamer
a
usi
ngr
aspber
rypii
ssetupi
nthear
easwhi
chneedt
obemoni
tor
ed.Thi
ssy
stem i
s
mot
ivat
ionf
rom ot
hersy
stemswhi
chexpl
ainssi
mil
arsy
stemswi
thsomedi
sadv
ant
ages
whi
chi
str
iedt
obesol
ved.I
tal
soi
ncl
udessomeaddi
ti
onalf
eat
urel
i
kedat
abackup,
pushal
ertmessagesi
nst
eadofSMSschemeswhi
chr
equi
resaddi
ti
onalhar
dwar
eli
ke
GSM.Newt
echnol
ogi
esar
eincl
udedl
i
keI
OT(
Int
ernetoft
hing)basedappl
i
cat
ions.The
i
nter
netofThi
ngs(
IOT)i
sthei
nter
net
wor
kingofphy
sicaldev
ices,bui
l
dingsandot
her
i
temsembeddedwi
thel
ect
roni
cs,
sof
twar
e,sensor
s,act
uat
orsandnet
wor
kconnect
ivi
ty
t
hatenabl
etheseobj
ect
stocol
l
ectandexchangedat
a.I
tisexpect
edt
hatby2020,20
bi
l
li
ondev
iceswi
l
lbeconnect
edwi
tht
heI
nter
net
.Thi
ssy
stem i
sbui
l
tingener
alpur
pose
andsoar
eai
snotl
i
mit
edf
ort
heuseofsy
stem andi
ncl
udemanyappl
i
cat
ionswher
eit
canbeusedwhi
chr
epl
aceexi
sti
ngsy
stem.I
tisal
souserf
ri
endl
yasi
fusercanaccess
t
hesy
stem f
rom r
emot
elyaswel
lasl
ocal
l
yaspert
hesi
tuat
ion.Twodi
ff
erentcont
rol
l
ing
andr
oidappl
i
cat
ionsar
epr
ovi
dedf
oraccessi
ngr
aspber
rypit
hroughcommandl
i
neor
GUIbased.

I
nthepr
esentwor
ldwher
ewel
i
vet
her
ear
eal
readydev
ices,
whi
char
econnect
ed
t
oeachot
herandhel
pindayt
odayaspect
s,f
orexampl
ewear
abl
efi
tnessdev
ices,
sensor
swhi
chhel
pinaut
omat
icgar
ages,RFI
Dsi
nIDcar
dsusedi
nUni
ver
sit
iesand
I
ndust
ri
est
ogai
nandl
ockaccess.Howev
er,i
magi
net
hisaf
teraf
ew y
ear
swher
e
bi
l
li
onsofdev
iceswi
l
lbeconnect
edt
oeachot
heri
ncl
udi
ngcar
s,phoneset
c.I
nter
netof
Thi
ngs(
IOT)i
sagoi
ngdev
elopmentoft
heI
nter
netbywhi
chev
erydayt
hingsobj
ect
s
hav
ecommuni
cat
ioncapabi
l
iti
eswhi
chal
l
ow t
hem t
o send and r
ecei
vedat
a.I
tis
expect
edt
oconnectsy
stems,
dev
ices,
sensor
swhi
chcancommuni
cat
ewi
thoutneedof
machi
ne-
to-
machi
neCommuni
cat
ion[
1].

I
OTr
efer
stoanenor
mousv
ari
etyofdev
icessuchassensor
sthatassi
stf
ir
e
f
ight
ersi
nrescueandsear
choper
ati
ons,hear
tbeatandbl
oodpr
essur
emeasur
ing
dev
ices,bi
o-chi
pst
hatar
eimpl
ant
edi
nfar
m ani
mal
s.Thei
nter
netoft
hingspr
esent
lyi
s
bei
ngusedi
nthef
iel
dsofaut
omobi
l
es,agr
icul
tur
e,secur
it
ysur
vei
l
lance,smar
thomes
andheal
thcar
e.TheI
OTexpect
stousel
owcostcomput
ingdev
iceswher
ether
eisl
ess
ener
gyconsumpt
ionsandl
i
mit
edi
mpactt
otheenv
ironment[
4].

Thepr
ojectai
mst
osi
mpl
i
fymot
iondet
ect
ionandt
hei
nter
facet
obeuserf
ri
endl
y,
whi
chwoul
dsendpr
omptnot
if
icat
ionswhenmot
ioni
sdet
ect
ed.Themai
nli
mit
ati
onof
I
nter
netoft
hingsi
sthatast
hedev
iceshav
eli
mit
edcomput
ingpowert
hesecur
it
yaspect
s
comei
nquest
ionast
het
ransmi
tt
edandr
ecei
veddat
acannotbeencr
ypt
edanddecr
ypt
ed.
Howev
er,
Int
ernetoft
hingsof
fer
smanyadv
ant
agest
hatov
ercomet
hisdi
sadv
ant
age.The
I
OTwi
l
lrev
olut
ioni
zeev
ery
dayl
i
feandhel
pinsi
tuat
ionsl
i
kemanagi
ngai
rpor
ts'
passenger
f
lows,
smar
thomes,
heat
ingbui
l
dings,
car
ingf
ort
heel
der
ly[
2].

TheI
OThasi
tsownchal
l
enges,whi
chneedt
obeaddr
essed.Ev
erydev
icewi
l
l
r
equi
reanI
P addr
esst
ocommuni
cat
e,t
hepr
esentI
Pv4hasonl
y4.
3bi
l
li
onuni
que
addr
esses,whi
chwi
l
lbeexhaust
edsoonandhencewewi
l
lneedt
oadaptt
oIPv
6.The
nextchal
l
engewoul
dbedat
ast
orage,asbi
l
li
onsofdev
icesar
econnect
ingt
hedat
a
woul
dneedt
obest
oredf
orwhi
chmassi
vest
oragespacei
srequi
red.Af
tert
hedat
a
hav
ebeencol
l
ect
edweneedt
omakesur
ethatt
hesecur
it
ypol
i
ciesar
einpl
aceasmor
e
andmor
eper
sonali
nfor
mat
ionwi
l
lbecol
l
ect
edf
rom dev
iceswhi
chnotgetbr
eached
andt
hedat
ashoul
dnotgeti
nthehandsofhacker
s.Pr
ivacywoul
dal
sobeagr
eat
chal
l
engeasaf
tert
her
ecenthackspeopl
ear
ebecomi
ngmor
econcer
nedaboutt
hei
r
pr
ivacy
.Hence t
hese chal
l
enges need t
o be t
aken i
n car
efulconsi
der
ati
on bef
ore
pl
anni
nganypr
ojectr
elat
edt
othel
oT.I
nthi
spr
ojectofmot
iondet
ect
iont
hesesecur
it
y
chal
l
engeshav
ebeenconsi
der
ed[
2].
Fi
g.1.
1IOTusedi
ndef
fer
entf
iel
ds
2Mo
1. t
ivat
ion

Secur
it
ycamer
asar
ecommoni
nmosti
ndust
ri
esar
oundt
hewor
ld.Thei
rappl
i
cat
ions
canr
angef
rom pr
event
ingt
hef
torv
andal
i
sm t
otr
aff
icandweat
hermoni
tor
ingandmuch
mor
e.Due t
o a smal
lfor
m f
act
or,af
for
dabl
e pr
ice and l
ow powerconsumpt
ion,
Raspber
ryPi
canbeeasi
l
yint
egr
atedi
nasur
vei
l
lancecamer
a.

1.
3Ar
eaofut
il
it
y
1.Det
erCr
ime
2.Moni
torScenar
iosandAct
ivi
ti
es
3.Gat
herEv
idence
4.Ar
ri
veatt
heRi
ghtDeci
sions
Mai
ntai
nRecor
ds

4Po
1. ssi
blebenef
it
sandappl
i
cat
ions
Raspii
sacr
edi
t-
car
d-si
zedl
ow-
costmi
crocomput
ert
hatcanr
unLi
nuxoper
ati
ng
sy
stem,andhasendl
essext
ensi
onpossi
bil
i
ties.
Wit
hthei
rwi
der
angeofst
ylesand
f
eat
ures,secur
it
ycamer
asar
ecommoni
nmosti
ndust
ri
esar
oundt
hewor
ld.These
appl
i
cat
ionscanr
angef
rom t
hef
tandt
otr
aff
icandweat
hermoni
tor
ingandmor
e.By
combi
ningadv
ancedcamer
afeat
ureswi
thst
urdyout
doorhousi
ngsordi
scr
eetcamer
a
desi
gn,anI
Pcamer
acanbei
nst
all
edi
nal
mostanyl
ocat
ion.Thi
smakest
hem i
dealf
or
moni
tor
ingi
nsi
deandout
sideofbusi
nessesandof
fi
ces,r
ecor
dingi
nremot
elocat
ions,
orr
ecor
dinghi
ghqual
i
tyv
ideot
oident
if
ysuspi
ciouspeopl
e.
CHAPTER2:
LITERATURESURVEY
2.
1 Li
ter
atur
essur
vey
s

2.
1.1 Smar
tsur
vei
l
lanceand Moni
tor
ing Sy
stem usi
ng Raspber
rypiand
Andr
oid-
:
Aut
hor
-Pr
iyaPat
el

Her
esmar
tsur
vei
l
lancesy
stem oper
atedv
iaandr
oiddev
icebyownerr
emot
elyas
wel
lasl
ocal
l
y.I
OTappl
i
cat
ionf
orr
emot
econt
rol
l
ingi
sused,sy
stem wi
l
lsendt
hepush
not
if
icat
iont
oandr
oiddev
icewhenani
ntr
usi
oni
sdet
ect
edi
nsi
det
her
oom.I
tisr
equi
red
t
o dev
elop and i
mpl
ementand af
for
dabl
elow costweb-
camer
abased sur
vei
l
lance
sy
stem f
orr
emot
esecur
it
ymoni
tor
ing.Aut
hor
izedusercanaccesst
othei
rmoni
tor
ing
sy
stem r
emot
elyv
iai
nter
netwi
tht
heuseamobi
l
ephoneandmoni
tort
hesi
tuat
ionon
appl
i
cat
ion.Thi
sent
ir
ewor
kisdoneonRaspber
rypiwi
thr
aspbi
anoper
ati
ngsy
stem
por
tedoni
t.I
fmor
esecur
it
yisr
equi
redaddi
ti
onal
li
vev
ideost
reami
ngi
sal
soi
ncl
uded.

Thi
ssy
stem hast
hecapabi
l
ityt
omoni
toral
ocat
ionawayf
rom t
hesur
vei
l
lance
ar
eat
hroughandr
oiddev
ice.I
tal
soconsi
stst
wopar
ts.

1)
LocalAccess:I
fper
soni
sconnect
edwi
tht
hel
ocalser
versameast
he
sy
stem,hecancont
rolt
heRaspber
rypiandmoni
tort
hear
eai
nfor
m ofi
mage/
video
t
hroughandr
oidappl
i
cat
ion.

2)Remot
eAccess:Ev
eni
fuserwi
thandr
oiddev
icei
sawayf
rom t
hesy
stem but
connect
edwi
tht
hesepar
atei
nter
netpl
ant
hencont
rol
l
ingofRaspber
rypii
spossi
ble
wi
tht
heI
OTappl
i
cat
ionnamedDat
apl
i
cit
y.

2.
1.2AnI
OTAppr
oachf
orMot
ionDet
ect
ionusi
ngARM-
BasedSy
stem on
Chi
p-:
Aut
hor
-Adi
mul
am Padmanabham

TheI
nter
netofThi
ngs(
IOT)i
sthegat
her
ingofbi
l
li
onsofendt
hingsordev
ices,
f
rom t
hepocket
-si
zedofenor
mousl
ycompet
entconnect
ednodesorahi
gh-
per
for
mance
hostorcl
oudpl
atf
orm,cl
ever
lycoupl
edandi
nter
oper
ati
ngwi
thser
ver
sandser
vices.I
n
Thewakeof

Page7of32
Fastmov
ingwor
ld,moni
tor
inghasbecomeanessent
ialcr
it
ical
.Themai
npur
poseof
t
hist
hesi
sismot
iondet
ect
ingusi
ngRaspber
rypiwhi
chr
unsonFr
ameDi
ff
erence
Al
gor
it
hm,camer
acapt
urest
hemot
ionwhent
her
eisadi
ff
erencebet
weenpr
esent
f
rameandpr
evi
ousf
rame,t
hent
hisi
magei
str
ansf
err
edt
oaspeci
fi
cfol
deri
nthe
Raspber
ry.Fur
thert
hei
magei
ssentf
rom Raspber
rypit
oDr
opboxaut
omat
ical
l
yor
commandl
i
nei
nter
face.Usi
ngt
hist
echnol
ogy
,wecanshar
eourl
i
nkt
omul
tiuser
s
al
l
owi
ngt
hem t
oaccesst
hei
magewhenev
ert
heywant
.Usi
ngI
FTTTt
echnol
ogymai
l
s
wi
l
laut
omat
ical
l
ytr
iggeroncet
hei
mager
eachest
hespeci
fi
cfol
der
,bef
oret
hismai
l
,
userwi
l
lgetamai
lwhenmot
ioni
sdet
ect
edi
nTer
minal
itsel
f.

2.
1.3AnI
nter
netofThi
ngs(
IOT)BasedSecur
it
yAl
ertSy
stem usi
ngRaspber
ry
pi
-:
Aut
hor
-A.Ar
unRaj
a

Her
easecur
it
yal
ertsy
stem whi
chr
ecor
dsav
ideowhenamot
ioni
sdet
ect
edand
upl
oadsi
ttot
heext
ernalser
verandnot
if
iest
heuserv
iat
extmessagei
srepor
ted.Thi
s
appl
i
cat
ioncanbeusedt
ovi
ewt
her
emot
eact
ivi
ti
esandnot
if
icat
ionscanber
ecei
ved
whenev
ert
hemot
ioni
sdet
ect
ed.I
nter
netoft
hingsbasi
cal
l
ydeal
swi
tht
ransf
err
ingof
useabl
edat
awi
thouti
nvol
vi
nghumani
nter
fer
ences.

2.
1.4AnI
OTAppr
oachf
orMot
ionDet
ect
ionusi
ngRaspber
rypi
-:
Aut
hor
-Aami
rAnsar
i

Todescr
ibeasecur
it
yal
arm sy
stem usi
ngl
owpr
ocessi
ngpowerchi
psusi
ngI
OT
whi
chhel
pst
omoni
torandgetal
armswhenmot
ioni
sdet
ect
edandsendsphot
osand
v
ideost
oacl
oudser
ver
.Thepr
ojectai
mst
osi
mpl
i
fymot
iondet
ect
ionandt
hei
nter
face
t
obeuserf
ri
endl
y,whi
chwoul
dsendpr
omptnot
if
icat
ionswhenmot
ioni
sdet
ect
ed.
Her
eapy
thonscr
ipti
susedf
ormot
iondet
ect
ionandwputi
susedf
orst
ori
ngt
hef
il
es
onanext
ernalser
ver
.Themaj
oroft
he“
Mot
ionDet
ect
ion”i
sathomes,bui
l
dingsand
al
sof
orsur
vei
l
lancef
orsecur
it
y.Her
etheyi
ntr
oducet
hemot
iondet
ect
ionsy
stem andt
o
cont
ri
but
etot
he cur
rentsecur
it
y sy
stems.Thi
s sy
stem woul
d be al
ter
nat
ivef
or
expensi
vesecur
it
ysy
stems.

Page8of32
2.
1.5Smar
tMot
ionDet
ect
ionSy
stem Usi
ngRaspber
ryPi
-:
Aut
hor
-SwapnaJadhav

I
nsur
vei
l
lance,
CCTVcamer
aiscost
lybecauseoft
heuseofcomput
er.I
treser
ves
t
omuchspacef
orcont
inuesr
ecor
dingandr
equi
remanpowert
odet
ectt
heunaut
hor
ized
act
ivi
ty.Butcompar
edt
otheexi
sti
ngsy
stem Raspber
rypisy
stem i
smuchcheaperwi
th
bet
terr
esol
uti
onandl
ow powerconsumpt
ionf
eat
ure.Her
epy
roel
ect
ri
cinf
rar
ed(
PIR)
sensor
sar
eusedasasi
mpl
ebutpower
fulpeopl
epr
esencet
ri
gger
s.Thi
ssy
stem i
s
sui
tabl
eforsmal
lper
sonalar
easur
vei
l
lance.i
.e.per
sonalof
fi
cecabi
n,bankl
ockerr
oom,
par
kingent
rance.Whenev
ert
hemot
ioni
sdet
ect
edt
hroughPI
Rsensori
nsi
det
her
oom
t
hei
magei
scapt
uredt
hroughcamer
aandt
empor
ari
l
yst
oredi
nther
aspber
rypimodul
e.
I
nter
netofThi
ngsbasedappl
i
cat
ioncanbeusedr
emot
elyt
ovi
ew t
heact
ivi
tyandget
not
if
icat
ionswhenmot
ioni
sdet
ect
ed.Sy
stem wor
ksst
andal
onewi
thoutt
hePConce
pr
ogr
ammed.One andr
oid appl
i
cat
ion i
s used t
o gett
he not
if
icat
ion on mot
ion
det
ect
ion.
Sur
vei
l
lancesy
stem consi
stsofmai
nlyt
wopar
ts:
-

1.Har
d-wi
redsur
vei
l
lancesy
stem:
-

Thesesy
stemsusewi
rest
oconnectcamer
as,mot
iondet
ect
ors,powersuppl
yand
LANcabl
ewi
thRaspber
rypi
.

2.Remot
eAccessSy
stems:
-

Thesesy
stemshav
ecapabi
l
ityt
omoni
torandcont
rolasecur
it
ysy
stem f
rom a
l
ocat
ionawayf
rom t
hesur
vei
l
lancear
eat
hroughandr
oid.

2.
1.6Adv
ancedReal
TimeHomeSecur
it
ySy
stem BasedonRaspber
rypi
-:
Aut
hor
-Amol
Boke

I
nadv
ancedr
ealt
imehomesecur
it
ysy
stem basedonRaspber
rypicont
rol
l
ert
o
whi
cht
hecamer
aisi
nter
facedf
ormoni
tor
ing.Her
ethecamer
awi
l
lcont
inuousl
ycapt
ure
t
hei
magesandt
hesei
magesar
ecompar
edwi
tht
her
efer
encei
magei
nthecont
rol
l
er.I
f
t
her
eisanydi
ff
erencei
nthecapt
uredi
mageandt
her
efer
encei
mage,t
henamessage
wi
l
lbesentt
otheuserandatt
hesamet
imet
hedi
ff
erencei
magesar
eal
sosent
.Itmay
al
sobepossi
blet
hatwhent
hemessagear
ri
vesuserwi
l
lbebusyandi
sunabl
etor
ead

Page9of32
t
hemessageandr
epl
yatt
hatt
ime.So,
int
hiscaset
hepr
ocessorwi
l
lwai
tsomet
imef
or
t
hef
eedbacki
snotr
ecei
ved i
npr
edef
inedi
nter
valt
heni
twi
l
lrai
set
heal
arm.Adv
anced
r
ealt
imehomesecur
it
ysy
stem basedonRaspber
rypii
spr
oposedt
hispr
ovi
desr
eal
t
imei
magesandv
ideoswi
thl
owcostandef
fi
cientmoni
tor
ingsy
stem t
hati
scapabl
eof
capt
uri
ngi
mages.Thesesy
stemscanbeusef
ulf
orhomeaswel
lasf
ori
ndust
ri
al
secur
it
ysy
stem.Anot
heradv
ant
ageoft
hissy
stem i
sthatbecauseofi
tssmal
lsi
zeand
por
tabi
l
ity
,itcanbepl
acedi
nanyki
ndofsur
roundi
ngf
orsur
vei
l
lance.

2.
1.7RealTi
meVi
deoMoni
tor
ingSy
stem Usi
ngRaspber
ryPi
-:
Aut
hor
-Suni
lKanzar
iya
TheembeddedReal
-t
imev
ideomoni
tor
ingsy
stem basedonARM i
sdesi
gned,i
n
whi
ch t
heembedded chi
p and t
hepr
ogr
ammi
ng t
echni
quesar
eused.Thecent
ral
moni
torwhi
chadopt
sRaspber
rypii
sthecor
eoft
hewhol
esy
stem.Realt
imev
ideo
t
ransmi
ssi
on i
s wi
del
yused i
n sur
vei
l
lance,conf
erenci
ng,medi
a br
oadcast
ing and
appl
i
cat
ionst
hati
ncl
uder
emot
eassi
stance.Fi
rst
,USBcamer
avi
deodat
aar
ecol
l
ect
ed
byt
heembeddedLi
nuxsy
stem.Al
ldat
aar
epr
ocessed,compr
essedandt
ransf
err
edby
t
hepr
ocessi
ngchi
p.Then,
videodat
aar
esentt
othemoni
torcl
i
entbywi
rel
essnet
wor
k.
Thi
sembeddedmoni
tor
ingsy
stem t
oov
ercomet
heweekpoi
ntsoft
het
radi
ti
onalv
ideo
sur
vei
l
lancesy
stems,suchascompl
exst
ruct
ure,poorst
abi
l
ity
,andexpensi
vecost
.It
canbeenwi
del
yusedi
nmanyf
iel
ds,
andal
sousedf
orl
ongdi
stancet
ransmi
ssi
on.

2.
2Pr
obl
em St
atement
Sur
vei
l
lancecamer
ausi
ngRaspi
camer
aandAndr
oidapp.

2.
3Obj
ect
ives
I
nthi
spr
oject
,wear
ewor
kingont
hesecur
it
yappl
i
cat
ions.I
nIndi
a,ev
eryhouseor
shopsar
eimpl
ement
edwi
thCCTVcamer
as.Theobj
ect
iveoft
hispr
ojecti
stocapt
ure
an i
mage when any mot
ion i
s det
ect
ed i
n pr
event
ed orsecur
ed ar
eas.Thi
sis
i
mpl
ement
edbyusi
ngRaspber
ryPi
,andCamer
amodul
e.

Page10of32
2.
4Bl
ockdi
agr
am

Fi
g.2.
4Bl
ockdi
agr
am

Page11of32
CHAPTER3:
DESI
GNMETHODOLOGY

PowerontheRaspberr
y
Pi
System piSyst
em

Continuousl
y N
checkingif
motionis
ther
e

Ye

St
artCapt
uri
ng

Sav
e

SendEmailandPush
Noti
fi
cat
ion
onandroi
dMobi
l
e

Fi
g.3.
1Sy
stem Fl
owDi
agr
am

Page12of32
Smar
tsur
vei
l
lancesy
stem oper
atedv
iaandr
oiddev
icebyownercanber
emot
elyaswel
lasl
ocal
l
y.
I
OTappl
i
cat
ionf
orr
emot
econt
rol
l
ingi
sused,sy
stem wi
l
lsendt
hepushnot
if
icat
iont
oandr
oid
dev
icewhenani
ntr
usi
oni
sdet
ect
edi
nsi
det
her
oom.I
tisr
equi
redt
odev
elopandi
mpl
ementt
he
af
for
dabl
elowcostsur
vei
l
lancesy
stem f
orr
emot
esecur
it
ymoni
tor
ing.Aut
hor
izedusercanaccess
t
othei
rmoni
tor
ingsy
stem r
emot
elyv
iai
nter
netwi
tht
heuseofmobi
l
ephoneandmoni
tort
he
si
tuat
iononappl
i
cat
ion.Thi
sent
ir
ewor
kisdoneonr
aspber
rypi
wit
hRaspbi
anasoper
ati
ngsy
stem.
Sy
stem Moni
tor
ing:Thi
ssy
stem hast
hecapabi
l
ityt
omoni
toral
ocat
ion,
awayf
rom t
hesur
vei
l
lance
ar
eat
hroughandr
oiddev
ice.
LocalAccess:I
fper
soni
sconnect
edwi
thl
ocalser
versameast
hesy
stem,hecan cont
rol
r
aspber
rypiand moni
tort
he ar
eaThe i
nter
faci
ng ofdi
ff
erentmodul
es t
hrough r
aspber
rypi
.
Raspber
rypiwi
l
lbepl
acedi
nsur
vei
l
lancear
ea,spy
ingt
heact
ivi
ti
esconnect
edwi
thcomponent
s
l
i
kepowersuppl
y,camer
amodul
e.Thecont
rol
l
ingandmoni
tor
ingt
hear
eacanbedonef
rom any
par
toft
hewor
ldt
hroughandr
oidappl
i
cat
ion.Theownercanv
iewt
hei
magewi
thsecur
edl
ogi
nand
passwor
d.Wear
eusi
ngi
nter
nett
ocont
rolt
hesy
stem aswel
lassendi
ngnot
if
icat
iononuser
mobi
l
easpopupmessagewhenani
ntr
usi
oni
sdet
ect
ed.

3.
1St
agesofDev
elopmentandTechni
quest
obeused(Sy
stem f
low)

3.
1.1Gett
hesof
twar
eready
Tost
art
,youneedRaspiwi
thanI
nter
netconnect
ion.Updat
eit
soper
ati
ngsy
stem t
o
ensur
ethati
thasal
lthel
atestf
eat
uresanddr
iver
s.Runt
hecommandi
nthet
ermi
nal
.
t
oupdat
etheoper
ati
ngsy
stem i
nst
all
edonRaspi
:

3.
1.2I
nst
all
Raspi
Cam Remot
eforAndr
oid
Raspi
Cam Remot
eisanappt
ovi
ewRaspi
camer
amodul
eony
ourAndr
oiddev
ice.

3.
1.3Conf
igur
eraspi
-conf
ig
Raspi
-conf
igi
s Raspi

s conf
igur
ati
on t
ool
,wr
it
ten and mai
ntai
ned byRaspbi
an
oper
ati
ngsy
stem.

Page13of32
3.
1.4Set
ti
ngupRaspi
Cam Remot
eapp
I
nst
all
i
ngt
heappont
heAndr
oiddev
iceonwhi
chy
ouwantt
oseer
emot
evi
deo.

3.
2Har
dwar
ecomponent
s
Wer
equi
ret
hef
oll
owi
nghar
dwar
efort
hispr
oject
:

3.
2.1Raspber
ryPi
model
B
Thi
smodel
ofRaspi
syst
em r
unsat700MHzandi
ts512MBRAM suppor
tsHDv
ideo.

3.
2.2Raspber
ryPi
camer
amodul
e
Thi
smodul
eisspeci
all
ybui
l
tfort
heRaspimi
crocomput
er.I
thasaconnect
ort
hat
canbepl
uggeddi
rect
lyi
ntoRaspi
boar
d,andi
tal
sosuppor
tsHDv
ideo.

3.
2.3Powersuppl
y
Anypowersuppl
ycanbeusedt
hathasami
cro-
USBpl
ug,
andwhi
chcansuppl
yatl
east
1Aofcur
rent
.

3.
2.4Mi
croSDcar
d
Raspi
doesnothav
eanyst
orageonboar
d,soy
ouneedt
ouseaMi
croSDcar
dtoi
nst
all
andr
unt
heoper
ati
ngsy
stem f
ort
hisdev
ice

Page14of32
CHAPTER4:
COMPONENTDETAI
LS
4.
1 Har
dwar
e
4.
1.1Raspber
rypi

Fi 1.
g.4. 1Raspber
rypi
3model
B

TheRaspber
ryPii
saser
iesofsmal
lsi
ngl
e-boar
dcomput
ersdev
elopedi
nthe
Uni
tedKi
ngdom byt
heRaspber
ryPiFoundat
ion.TheRaspber
rypii
sal
ow costsi
ngl
e
boar
d,packi
ngconsi
der
abl
ecomput
erpoweri
nasi
zeofacr
edi
tcar
d.TheRaspber
rypi
boar
d cont
ainsmanyf
eat
uresl
i
kecamer
a connect
or,Et
her
netpor
t,GPI
O pi
nsf
or
i
nter
faci
ngsensor
sandswi
tches,
USBpor
tst
oconnectt
oext
ernal
dev
icesl
i
kekey
boar
d,
mouse,Wi
-Fiadapt
eret
c.,HDMIpor
ttoi
nter
face t
o moni
tor
sli
ke LCD scr
eens,
pr
oject
ors,TVset
c.andabaudi
ojackal
soav
ail
abl
e.Byal
ltheseembeddedonasi
ngl
e
boar
d.TheRaspber
rypihasnoi
nter
nalmassst
orageorbui
l
t-i
noper
ati
ngsy
stem and
hencei
trequi
resanSDcar
dpr
eloadedwi
thv
ersi
onoft
heLi
nuxOper
ati
ngsy
stem.Al
l

Page15of32
model
sofRaspber
rypii
ncl
udean ARM compat
ibl
eCPU and an on-
chi
p GPU.
The
Raspber
ryPi3i
sthet
hir
d-gener
ati
onRaspber
ryPi
.Itr
epl
acedt
heRaspber
ryPi2ModelBi
nFeb
2016.
Techni
cal
speci
fi
cat
ions-
:
1.1.
2GHz 64bi
tquad-
cor
e ARMv
8
CPU
2.802.
11nWi
rel
essLAN
3.Bl
uet
oot
h
4.1GBRAM
5.4USBpor
ts
6.40GPI
Opi
ns
7.Ful
lHDMIpor
t
8.Et
her
netpor
t
9.Combi
ned3.
5mm audi
ojackandcomposi
tev
ideoCamer
aint
erf
ace
10.
Displ
ayi
nter
face
11.
Micr
oSDcar
dsl
ot(
nowpush-
pul
lrat
hert
hanpush-push)Vi
deoCor
eIV3Dgr
aphi
cs
12.
Power
:10W(
2A)
13.
Syst
em-
on-
chi
pused:
Broadcom

4.
1.2Camer
aModul
e
Acamer
amodul
eisani
magesensori
ntegr
atedwi
thal
ens,
cont
rol
elect
roni
cs,
andani
nter
facel
i
keCSI
,Et
her
net
.Ther
aspber
rypicamer
aboar
dpl
ugsdi
rect
lyi
nto
t
heCSIconnect
oront
heRaspber
ryPi
.It
’sabl
etodel
i
veracr
yst
alcl
ear5mpr
esol
uti
on
i
mageor1080HDv
ideor
ecor
dingat30f
ps.Cust
om desi
gnedandmanuf
act
uredby
t
heRaspber
ryPif
oundat
ioni
ntheUK.Ther
aspber
rypicamer
aboar
dfeat
uresa5mp
(
2592*
1944pi
xel
s)omni
vi
sion5647sensori
naf
ixedf
ocusmodul
e.Themodul
e
at
tachest
oRaspber
rypi
,bywayofa15-
pinr
ibboncabl
e,t
othededi
cat
ed15pi
nMI
PI
camer
a ser
iali
nter
face (
CSI
),whi
ch was desi
gned especi
all
yfori
nter
faci
ng t
o
camer
as.TheCSIbusi
scabl
eofext
remel
yhi
ghdat
arat
esandi
t’
sexcl
usi
vel
ycar
ri
es
pi
xel
s’dat
atot
heBCM2835pr
ocessor
.

Page16of32
Fi
g.4.
1.2Camer
aModul
ev1

Theboar
dit
sel
fist
iny
,atar
ound25mm*
20mm*
9mm andwei
ghsj
ustov
er3g,
maki
ngi
tper
fectf
ormobi
l
eorot
herappl
i
cat
ionswher
esi
zeandwei
ghtar
eimpor
tant
.
Thesensori
tsel
fhasanat
iver
esol
uti
onof5megapi
xel
sandhasaf
ixedf
ocusl
ens
onboar
d.I
nter
msofst
il
li
magest
hecamer
aiscapabl
eof2592*
1944pi
xel
stat
ici
mages
andsuppor
ts1080p(
30f
ps)
,720p(
60f
ps)and640*
480pv
ideor
ecor
ding.

Speci
fi
cat
ions:

1.5mpomni
vi
si
on5647camer
amodul
e.
2.St
il
lpi
ctur
eresol
uti
on:
2592*
1944.
3.Vi
deo:
suppor
ts1080p,
720pand640*
480pr
ecor
ding.
4.15-
pinMI
PIcamer
aser
ial
int
erf
ace.
5.Wei
ght
:3g.
6.Si
ze:
20*
25*
9mm.
7.Ful
l
ycompat
ibl
ewi
thal
lRaspber
rypi
ver
sions

Page17of32
4.
2SOFTWARE

4.
2.1.
Put
ty

Put
tyi
saf
reeandopen-
sour
cet
ermi
nalemul
ator
,ser
ialconsol
eandnet
wor
kfi
l
e
t
ransf
erappl
i
cat
ion.I
tsuppor
tssev
eralnet
wor
kpr
otocol
s,i
ncl
udi
ngSCP,SSH,Tel
net
,
r
logi
n,andr
awsocketconnect
ion.I
tcanal
soconnectt
oaser
ialpor
t.Thename"
Put
ty"
hasnodef
ini
ti
vemeani
ng.Put
tywasor
igi
nal
l
ywr
it
tenf
orMi
crosof
tWi
ndows,
buti
thas
beenpor
tedt
ovar
iousot
heroper
ati
ngsy
stems.Of
fi
cialpor
tsar
eav
ail
abl
eforsome
Uni
x-l
i
kepl
atf
orms,wi
thwor
k-i
n-pr
ogr
esspor
tst
oCl
assi
cMacOSandMacOS,and
unof
fi
cialpor
tshav
ebeencont
ri
but
edt
opl
atf
ormssuchasSy
mbi
an,Wi
ndowsMobi
l
e
andWi
ndowsPhone.Put
tywaswr
it
tenandi
smai
ntai
nedpr
imar
il
ybySi
monTat
ham.

Fi
g.4.
2.1Put
tyConf
igur
ati
on

Put
tyconsi
stsofsev
eral
component
s
 Put
ty:TheTel
net
,rl
ogi
n,andSSHcl
i
enti
tsel
f,whi
chcanal
soconnectt
oaser
ial
por
t

Page18of32
 PSCP:
anSCPcl
i
ent
,i.
e.command-
li
nesecur
efi
l
ecopy
 PSFTP:
anSFTPcl
i
ent
,i.
e.gener
alf
il
etr
ansf
ersessi
onsmuchl
i
keFTP
 PuTTYt
el:
ATel
net
-onl
ycl
i
ent
 Pl
i
nk:
acommand-
li
nei
nter
facet
othePut
tybackends
 Pageant
:anSSHaut
hent
icat
ionagentf
orPut
ty,
PSCPandPl
i
nk
 Put
tygen:
anRSA,
DSA,
ECDSAandEdDSAkeygener
ati
onut
il
it
y
 pt
erm:
ast
andal
onet
ermi
nal
emul
ator

4.
2.2Ti
ghtVNC

Ti
ght
VNC i
aacr
osspl
atf
ormf
reeandopensour
cer
emot
edeskt
opsof
twar
e
appl
i
cat
ion.Const
ant
inkapl
i
nskydev
elopedTi
ght
VNC,usi
ngandext
endi
ngt
heRFB
pr
otocolofv
irt
ualnet
wor
kcomput
ingt
oal
l
owenduser
stocont
rolanot
hercomput
er’
s
scr
eenr
emot
ely
.Ti
ght
VNC usesso-
cal
l
ed"
ti
ghtencodi
ng"ofar
eas,whi
chi
mpr
oves
per
for
manceov
erl
owbandwi
dthconnect
ion.I
tisef
fect
ivel
yacombi
nat
ionoft
heJPEG
andzl
i
bcompr
essi
onmechani
sms.I
tispossi
blet
owat
chv
ideosandpl
ayDi
rect
X
gamest
hroughTi
ght
VNC ov
erabr
oadbandconnect
ion,al
bei
tatal
ow f
ramer
ate.
Ti
ght
VNCi
ncl
udesmanyot
hercommonf
eat
uresofVNCder
ivat
ives,
suchasf
il
etr
ansf
er

Page19of32
capabi
l
ity
.

Fi
g.4.
2.2VNCVi
ewer

Page20of32
CHAPTER5:
MOTI
ON
5.
1AboutMot
ion
Mot
ioni
sahi
ghl
yconf
igur
abl
epr
ogr
am t
hatmoni
tor
svi
deosi
gnal
sfr
om manyt
ypes
ofcamer
as.
Seti
tupt
omoni
tory
oursecur
it
ycamer
as,wat
chbi
rds,checki
nony
ourpet
,cr
eat
e
t
imel
apsev
ideosandmor
e.
 Cr
eat
evi
deosorsav
epi
ctur
esoft
heact
ivi
ty
 Passt
hroughr
ecor
dingf
rom manyI
Pcamer
as
 Vi
ewl
i
vest
ream ofcamer
as
 I
nvokescr
ipt
swhenact
ivi
ti
esoccur
 Logact
ivi
tyi
ntomul
ti
plet
ypesofdat
abases
 Ful
l
ycust
omi
zabl
emasksf
orpr
ivacyormot
iondet
ect
ion
 Ful
ltl
s(ht
tps)suppor
twi
thaut
hent
icat
ionf
orwebcont
rol
andst
reams

UseMot
ionwi
thmanyt
ypesofdev
ices
 Net
wor
kcamer
asv
iaRTSP,
RTMPandHTTP
 PIcamer
as
 V4L2webcams
 Exi
sti
ngmov
ief
il
es

5.
2Mot
ionConf
igur
ati
on
Mot
ioni
sabl
etopr
ocessi
magesf
rom manydi
ff
erentt
ypesofcamer
as.Thef
oll
owi
ngi
s
br
iefov
erv
iewoft
hepr
ocesst
osetupt
heMot
ionsof
twar
e.
 Det
ermi
net
het
ypeofcamer
a
 v
4l2dev
ices 
whi
char
emostwebcams
 Composi
tecapt
urecar
ds
 Net
wor
korI
Pcamer
as
 ThePIcamer
a
 St
ati
cmov
ief
il
es
 Speci
fyt
hecamer
aint
he 
conf
igur
ati
onf
il
es.
 St
artMot
ionf
rom at
ermi
nal
viat
he 
commandl
i
ne
 Rev
iewt
hemessagest
oensur
ecamer
awasf
oundandpr
esscnt
rl
-ct
oexi
t
 Speci
fyt
het
argetdi

int
heconf
igur
ati
onf
il
e.

Page21of32
 Enabl
ethe 
webst
ream 
i
ntheconf
igur
ati
onf
il
e
 Speci
fya 
st
ream por
t

 Opt
ional
l
ytur
nof

st
ream l
ocal  
hosti
fyouwantt
ovi
ewt
hest
ream f
rom a
di
ff
erentcomput
er
 Enabl
ethe 
webcont
rol
 
int
heconf
igur
ati
onf
il
e
 Speci
fya 
webcont
rol
_por
t

 Opt
ional
l
ytur
nof

webcont
rol
_l
ocal  
hosti
fyouwantt
ovi
ewt
hewebcont
rol
f
rom adi
ff
erentcomput
er
 Speci
fy whi
ch par
amet
ers t
o show on t
he webcont
rol
v
ia 
webcont
rol
_par
ms
 Opt
ional
l
yspeci
fya 
str
eam_
prev
iew_
met
hod

Theabov
eshoul
dal
l
owuser
stogetMot
ionr
unni
ngandbei
ngabl
etov
iewi
magesv
iat
he
st
ream.Thenextst
epsr
efi
neandf
ini
shabasi
cset
up.
 Ref
inehowt
hei
magei
scapt
uredwi
tht
he 
i
magepr
ocessi
ng 
par
amet
ers
 Speci
fyt
he 
mot
iondet
ect
ion 
par
amet
ers
 Execut
escr
ipt
s,Sav
e pi
ctur
es 
or 
mov
ies.

Themostdi
ff
icul
tst
epi
ntheabov
epr
ocesswi
l
lbet
hemot
iondet
ect
ionset
ti
ngsand
speci
fyi
ngt
hem t
omi
nimi
zet
hef
alseposi
ti
ves.Toassi
stt
hispr
ocess,Mot
ionpr
ovi
des
t
he 
st
ream_
prev
iew_ hod 
met opt
ion3whi
chal
l
owsuser
stoseesi
debysi
dei
magesofwher
e
t
hemot
ioni
soccur
ri
ngnextt
other
egul
ari
mage.
 Speci
fy 
st
ream_
prev
iew_
met
hod3

 Speci
fy 
webcont
rol
_par
ms2

 St
artMot
ionandi
nawebbr
owsernav
igat
etot
hewebcont
rol
por
t
 Tr
y adj
ust
ing
t
he 
thr
eshol
d, 
noi
se_
lev
el,
 
despeckl
e_f
il
ter
 and 
smar
t_mask_
speed
 Makesur
etowr
it
econf
igur
ati
ont
ofi
l
einor
dert
osav
eanychanges.

Mot
ional
soi
ncl
udesa 
set mode 
up_ whi
chpr
ovi
desmor
eval
uesr
epor
tedont
hemot
ion
i
magesandi
nthel
ogt
oassi
stt
heset
up.
Thef
oll
owi
ngar
esomeaddi
ti
onal
topi
cswhi
chmaybeofi
nter
estdur
ingt
hei
nit
ial
set
up.
 Runaut
omat
ical
l
yatst
art(
Runas 
ser
vice)

Page22of32
 Remov
edepr
eci
atedpar
amet
erswar
nings(
Remov
eDepr
eci
ated)
 Li
st/
incl
udeal
lpossi
bleconf
igur
ati
onpar
amet
ers(
All
par
amet
ers)

Page23of32
Vi
deo4l
i
nuxdev
ices 
mustbei
nst
all
edpert
her
equi
rement
soft
hecamer
a.I
tisoutoft
he
scopeoft
hisdocumentt
otel
lyouhowt
odot
hisandi
tdependsonwhi
cht
ypeofcamer
a.
Oncet
hecamer
aisi
nst
all
edi
twi
l
lhav
ethedev
icename(
s)of/
dev
/vi
deo0,/
dev
/vi
deo1,
/
dev
/vi
deo2.
..
Fr
eeBSDhasadi
ff
erentnami
ngschemef
orpcidev
icest
hatuset
hebkt
rsubsy
stem.The
bkt
rsubsy
stem wi
l
lrepor
tdev
icesusi
nganami
ngschemeof/
dev
/bkt
r0,/
dev
/bkt
r1,et
c.
Thesedev
icemayal
soneedt
ouset
heot
herspeci
aldev
icef
ort
het
uner
.Thet
unerwi
l
l
needt
obespeci
fi
edwi
tht
het
uner
dev
iceopt
ionas/
dev
/tuner
0.

USBcamer
ast
akeal
otofbandwi
dth.AUSBcamer
aconnect
edt
oaUSB2por
torhub
consumesv
irt
ual
l
yal
lthebandwi
dtht
hatt
hepor
tcanhandl
e.Ev
enwi
thasmal
lfr
amesi
ze
andl
owf
ramer
atey
oushoul
dnotexpectt
ohav
emor
ethanonecamer
aperUSBcont
rol
l
er.
I
fyouneedmor
ethanoneUSBcamer
aiti
spossi
blet
oaddext
raUSBPCIcar
dst
oyour
comput
er.I
tisal
sopossi
blet
haty
ourcomput
erhasmor
ethanonecont
rol
l
erf
ordi
ff
erent
USBsl
ots.Forexampl
e,i
fthecomput
erhassi
xUSBpor
ts,t
het
hreeont
hel
eftmaybeon
cont
rol
l
erA v
ersus t
he t
hree on t
he r
ightmaybe on cont
rol
l
erB.I
nthi
s si
tuat
ion,
connect
ing t
wo camer
ast
o por
tsonl
yon t
hel
eftwoul
d notwor
kduet
o excessi
ve
bandwi
dth.Howev
erconnect
ingonecamer
atopor
tont
her
ightandt
heot
hert
othepor
t
ont
hel
eftmaywor
ksi
ncet
heyar
eondi
ff
erentcont
rol
l
ers.

Mot
ionper
mit
stheuseofv
ideo car
dst
hathav
edi
scr
eeti
nputchannel
s.Si
nceUSB
camer
asdonothav
einputchannel
s,t
heopt
ion 
i
nput
 mustbesett
othev
alue-
1forUSB
camer
as.
Net
wor
kcamer
as 
aresetupv
iat
he 
net
cam_
ur 
lpar
amet
er.Thel
atestv
ersi
onsofMot
ion
suppor
trt
spf
ormatwhi
chmanycamer
asnowst
ream.Someuser
shav
erequest
edal
i
stof
t
henet
wor
kcamer
ast
hatwi
l
lwor
kwi
thMot
ion.Si
nceMot
ioncannow pr
ocessRTSP
st
reams,
almostal
lcamer
asar
esuppor
ted.Si
mpl
yrev
iewt
hespeci
fi
cat
ionsoft
hecamer
a
andv
ali
dat
ethatRTSP orRTMP i
sli
sted.Thecamer
ast
hatwi
l
lnotwor
kar
ethose
speci
fi
cal
l
ysol
dto bei
ntegr
atedi
nto pr
opr
iet
arysof
twar
emoni
tor
ingsy
stems.When
det
ermi
ningcamer
as,consi
dercar
eful
l
ybef
oresel
ect
ingawi
rel
esscamer
a.Camer
as
r
equi
reasol
i
dconsi
stentsi
gnalanduseal
otofbandwi
dth.I
nconsi
stenci
esi
nthewi
rel
ess
si
gnalcan r
esul
tin a pooruserexper
ience so t
he use ofa har
dwi
red camer
ais
r
ecommended.
TheURLconnect
ionst
ri
ngt
oent
eri
sspeci
fi
ctot
hecamer
aandi
susual
l
ypr
ovi
dedbyt
he

Page24of32
manuf
act
urer
.Theconnect
ionst
ri
ngi
sthesameaswhatwoul
dbeusedbyot
herv
ideo
pl
ayi
ngsof
twar
esuchasVLC.I
fthecamer
adoesnotst
ream v
iaRTSPandi
nst
eadusesa
MJPEG,t
henMot
ioncanal
sov
iew t
hatf
ormat
.Seet
heopt
ionnet
cam ur

foraddi
ti
onal
opt
ions
Raspber
ryPicamer
as 
canbesetupt
wodi
ff
erentway
s.I
fMot
ioni
sinst
all
edbyusi
ngt
he
aptpackages(
e.g.apt
-geti
nst
allmot
ion)
,thent
hecamer
amustbesetupusi
ngt
he
bcm2835-
v4l
2modul
ewhi
chcr
eat
esav
4l2dev
icef
ort
hecamer
a.User
swi
l
lneedt
oinst
all
t
hismodul
eusi
ngt
hecommand 
sudomodpr
obebcm2835-
v 2.Thi
4l swi
l
lsetupt
hecamer
a
asanor
malv
4l2dev
iceandi
tcanbeaccessedv
iaast
andar
d/dev
/vi
deoXdev
ice.I
f
Mot
ioni
sbui
l
tfr
om sour
ceori
nst
all
edv
iat
hedebpackagesont
hepr
ojectr
eleasepage,
t
henanaddi
ti
onalopt
ioni
stosetupt
hecamer
ausi
ngt
he  cam name 
mmal par
amet
eror
usi
ngt
hebcm2835-
v4l
2modul
e.WhenMot
ioni
sinst
all
edv
iaapt
,themmal
cam opt
ioni
s
notav
ail
abl
e.Composi
tev
ideocar
ds 
arenor
mal
l
ymadewi
thachi
pcal
l
edBT878(
older
car
dshav
eaBT848)
.Theyal
luset
heLi
nuxdr
ivercal
l
ed'
btt
v'
.

Ther
ear
ecar
dswi
thmor
ethenonev
ideoi
nputbutst
il
lonl
yoneBT878chi
p.Theyhav
ea
v
ideo mul
ti
plexerwhi
ch i
nputi
s sel
ect
ed wi
tht
he conf
ig opt
ion 
i
nput
.Inputchannel
number
sst
artat0(
whi
chi
swhyt
hev
alue-
1andnot0di
sabl
esi
nputsel
ect
ion)
.Ther
ear
e
v
ideocapt
urecar
dsav
ail
abl
ewi
th4or8i
nput
sbutonl
yonechi
p.Theypr
esentt
hemsel
ves
asonesi
ngl
evi
deodev
iceandy
ousel
ecti
nputusi
ngt
he'
i
nput
'opt
ion.I
fyoudef
inee.
g.4
camer
aconf
igf
il
eswi
tht
hesamev
ideodev
icenamebutdi
ff
erenti
nputnumber
sMot
ion
aut
omat
ical
l
ygoesi
ntor
oundr
obi
nmode.

ManyTVt
unercar
dshav
ethei
nputchannel
s:TVTuner=0,
Standar
dcomposi
tev
ideo=1,
S-
VHS=3.Ot
her
shav
eTV=0,composi
tev
ideo1=1,composi
tev
ideo=2,S-
VHS=3.For
v
ideocapt
urecar
dsi
nput1i
snor
mal
l
ythecomposi
tev
ideoi
nput
.
Somecapt
urecar
dsar
especi
all
ymadef
orsur
vei
l
lancewi
thf
orexampl
e4i
nput
s.Ot
her
s
hav
eaTVt
uner
,acomposi
tei
nputandper
hapsal
soaS-
Videoi
nput
.Foral
lthesecar
ds
t
hei
nput
sar
enumber
ed.Thenumber
ingv
ari
esf
rom car
dtocar
dsot
heeasi
esti
sto
exper
imentwi
thapr
ogr
am suchasVLCt
hatcanshowt
hev
ideost
ream.

I
fyouuset
heTVt
uneri
nputy
oual
soneedt
osett
hef
requencyoft
heTVchannel
usi
ngt
he
opt
ion 
fr
equency
.Ot
her
wiseset
 f
requency
 to0.
Fi
nal
l
yyouneedt
osett
heTV 
nor
m.Val
ues:0(
PAL)
,1(
NTSC)
,2(
SECAM)
,3(
PALNCno

Page25of32
col
our
).Def
aul
tis0(
PAL)
.Ify
ourcamer
aisaPALbl
ackandwhi
tey
oumaygetabet
ter
r
esul
twi
thnor
m=3(
PALnocol
our
).
Stat
icf
il
es 
canal
sobepr
ocessedbyMot
ioni
noneof
t
woway
s.Thef
ir
stmet
hodi
sbyusi
ngt
he 
net
cam ur

opt
ionandusi
ngapr
efi
xoff
il
e:\
\.
Wi
tht
hismet
hod,Mot
ionwi
l
lpr
ocesst
hef
il
eatt
hespeedspeci
fi
edby
 fr
amer
ate.Thi
s
al
l
owst
heusert
oei
therspeeduporsl
owdownt
hev
ideopr
ocessi
ngt
osui
tthepar
ti
cul
ar
need.

Page26of32
Thesecondopt
ionf
orpr
ocessi
ngast
ati
cfi
l
erequi
resabi
tofaddi
ti
onalset
upand
usesav
4l2l
oopbackdev
ice.Tosett
hisup,
fir
sti
nst
allt
hel
oopbacksof
twar
easdescr
ibed
i
nthe 
Out
put-Pi
peOpt
ions 
sect
ionoft
hisgui
det
ocr
eat
ea/
dev
/vi
deoXdev
iceandt
hen
usesof
twar
esuchasf
fmpegt
ost
ream t
hest
ati
cfi
l
eint
othev
4l2dev
ice.e.
g. 
ff
mpeg-
re-
i
my
mov
ie.
mp4-
fv4l
2/dev
/vdeo0 
i Theni
nasepar
atet
ermi
nal
,st
artMot
ionwi
thi
tsett
ouse
t
he 
/dev
/vdeo0 
i dev
iceasi
nput
.Thi
smet
hodcancanal
sobeusedt
oref
ormatt
hecont
ent
t
o a di
ff
erentf
ormat
.The f
oll
owi
ng out
put
sthe or
igi
nalmov
iei
nto a gr
ay pi
xel
f
ormat

ff
mpeg-
re-
imy
mov
ie.
mp4-
fv4l
2-pi
x_f
mtgr
ay/
dev
/vdeo0 
i Thi
scanbehel
pfulasa
i
nter
im pr
ocesswher
eff
mpeg suppor
tsa par
ti
cul
ari
nputbutt
hatf
ormati
snoty
et
suppor
tedbyMot
ion.

5.
2.1RunasSer
vice

Thef
oll
owi
ngi
nst
ruct
ionsar
eonl
yappl
i
cabl
etoDebi
anandUbunt
ubasedsy
stems.
Forot
herdi
str
ibut
ions,user
sshoul
dconsul
tthei
rdi
str
ibut
iondocument
ati
onandpr
ovi
de
pul
lrequest
stot
heMot
iondev
eloper
ssot
hatt
hissect
ioncanbeupdat
edwi
tht
hei
r
di
str
ibut
ion.
Mot
ion can besetup t
orun asaser
vicewhi
ch meanst
hati
twi
l
lst
art
aut
omat
ical
l
ywhenev
ert
hecomput
eri
sst
art
ed.WhenMot
ioni
sinst
all
edf
rom aptorf
rom
adebf
il
e,def
aul
tfi
l
esar
einst
all
edwhi
chcanbeeasi
l
ymodi
fi
edsot
hatMot
ionst
art
sasa
ser
vice.I
fMot
ioni
sbui
l
tdi
rect
lyf
rom sour
ceandi
nst
all
ed,t
hent
heseaddi
ti
onalf
il
eswi
l
l
need t
o be copi
ed,modi
fi
ed and i
nst
all
ed manual
l
yfr
om t
he sour
ce and packagi
ng
r
eposi
tor
ies.

Whenset
ti
ngupMot
iont
orunasaser
vice,i
tshoul
dbedoneonl
yaf
teral
ltheot
her
conf
igur
ati
onhasbeencompl
eted.I
tismucheasi
ert
oedi
tandr
evi
set
hepar
amet
erswhen
Mot
ioni
sjustr
unni
ngi
nat
ermi
nal
rat
hert
hanasaser
vice.
Tosetupt
orunasaser
vice,f
ir
stedi
tthef
il
e /
etc/
def
aul
t/
mot
ion 
andr
evi
set
hel
i
net
o
i
ndi
cat
e st
art
_mot
ion_ es. Ne
daemon=y xt
, edi
t t
he mai
n mot
ion.
conf f
il
e and
speci
fy 
daemon 
as 
on 
Whent
hecomput
eri
srest
art
ed,Mot
ionshoul
dnowber
unni
ng.The
f
oll
owi
ngcommandscont
rol
theMot
ionser
vice.

 St
artt
heMot
ionser
vicesudoser
vicemot
ionst
art
 St
opt
heMot
ionser
vicesudoser
vicemot
ionst
op
 Rest
artt
heMot
ionser
vicesudoser
vicemot
ionr
est
art

Page27of32
Whenr
unni
ngasaser
vice,Mot
ionr
unsast
heuser
 mot
ion 
andt
hisuseri
saut
omat
ical
l
y
addedt
otheusergr
oupof
 vdeo.
i Byonl
ybei
ncl
udedi
nthi
susergr
oup,
whenMot
ioni
srun,
i
twi
l
lonl
yhav
eli
mit
edper
missi
ons.I
tisNOTr
ecommendedt
hatt
hisusergetaddedt
o
t
he 
sudo 
group.I
nst
ead,
onl
yaddt
hisusert
ogr
oupst
hatar
especi
fi
cal
l
yrequi
red.
Onnewerdi
str
ibut
ions,t
heabov
emet
hodofr
unni
ngaser
vicei
sdepr
eci
ated(
butst
il
l
f
unct
ional
)inf
avoroft
he sy
stemct
lmet
hod.Si
nce t
hisi
s notav
ail
abl
e on al
lthe
di
str
ibut
ionswhi
chMot
ioni
sdepl
oyed,t
heabov
emet
hodi
sret
ained.Oncesy
stemct
lis
av
ail
abl
eonal
lthedepl
oyedv
ersi
ons,Mot
ionwi
l
ltr
ansi
ti
ont
osy
stemct
last
heser
vice
met
hod.Foruser
sthatwi
sht
osy
stemct
lrat
hert
hant
heabov
emet
hod,
a mot
ion.
sy em 
st fi
le
i
sincl
udedi
nthesour
cecode.

Foruser
sthatar
ebui
l
dingandi
nst
all
i
ngf
rom sour
cewi
thoutadebf
il
e,t
hef
il
e mot
ion.
ini
t-
an 
Debi wil
lneedt
obecopi
edf
rom t
heexampl
esdi
rect
oryorf
rom t
hesour
cedi
rect
ory
.It
wi
l
lneedt
ober
enamedandputi
nto 
/et
c/i
nit
.d/
mot
ion.Ensur
ethati
tisal
somar
kedas
execut
abl
eandhasr
ootowner
shi
p.Next
,cr
eat
ethef
il
e /
etc/
def
aul
t/
mot
ion 
wit
htheent
ry
asspeci
fi
edabov
e.Fi
nal
l
y,cr
eat
ethe 
mot
ion 
userasneeded.Thescr
ipt
sthatcr
eat
ethe
gr
oupsanduser
swhenusi
ngt
hedebpackagescanbeusedasamodel
.Thesescr
ipt
scan
ber
evi
ewedi
nthemot
ion-
packagi
ngr
epo,wi
thi
nthedebi
andi
rect
ory
,mot
ion.
post
inst
(
e.g.
 mot
ion-
packagi
ng/
debi
an/
mot
ion.
post
inst
)

5.
2.2CommandLi
neOpt
ions

SYNOPSI
S mot
ion[-
hbnsm ][-
cconf
igf
il
epat
h][-
dlev
el][-
klev
el][-
ppi
d_f
il
e][-
llog_
fil
e]

1.-
c:Ful
lpat
handf
il
enameofconf
igf
il
e.

2.-
h:Showhel
pscr
een

3.-
b:Runi
ndaemonmode

4.-
n:Runi
nnon-
daemonmode

5.-
s:Runi
nset
upmode.Al
sof
orcesnon-
daemonmode.

6.-
d:Runwi
thmessagel
ogl
evel
1-9

7.-
k:Runwi
thmessagel
ogt
ype1-9

8.-
l:Ful
lpat
handf
il
enamef
orl
ogf
il
e

Page28of32
9.-
p:Ful
lpat
handf
il
enamef
ort
hepr
ocessi
dfi
l
e

10.
-m:
Star
tinpausemode

5.
2.3TheConf
igur
ati
onFi
l
es

I
fMot
ionwasi
nvokedwi
thcommandl
i
neopt
ion 
-cpat
hname 
Mot
ionwi
l
lexpectt
he
conf
igf
il
etobeasspeci
fi
ed.Wheny
ouspeci
fyt
heconf
igf
il
eont
hecommandl
i
newi
th-
c
y
oucancal
litany
thi
ng.
Ify
oudonotspeci
fy-
cort
hef
il
enamey
ougi
veMot
iondoesnot
exi
st,
Mot
ionwi
l
lsear
chf
ort
heconf
igur
ati
onf
il
ecal
l
ed'
mot
ion.
conf
'int
hef
oll
owi
ngor
der
:
1.Cur
rentdi
rect
oryf
rom wher
emot
ionwasi
nvoked

2.Theni
nadi
rect
orycal
l
ed'
.
mot
ion'
int
hecur
rentuser
shomedi
rect
ory(
shel
lenv
ironment
v
ari
abl
e$HOME)
.E.
g./
home/
goof
y/.
mot
ion/
mot
ion.
conf

3.Thedi
rect
orydef
inedbyt
he-
-sy
sconf
dir
=DI
Rwhenr
unni
ng.
conf
igur
edur
ingi
nst
all
ati
on
ofMot
ion(
Ift
hisopt
ionwasnotdef
inedt
hedef
aul
tis/
etc/
mot
ion)

I
fyouhav
ewr
it
eaccesst
o/usr
/l
ocal
/et
c/mot
iont
hent
heedi
torr
ecommendshav
ingonl
y
one mot
ion.
conf f
il
ein t
he def
aul
t/usr
/l
ocal
/et
c/mot
ion di
rect
ory
.Mot
ion has a
conf
igur
ati
onf
il
eint
hedi
str
ibut
ionpackagecal
l
edmot
ion-
dist
.conf
.Wheny
our
un'
make
i
nst
all
'thi
sfi
l
eget
scopi
edt
othe/
usr
/l
ocal
/et
c/mot
iondi
rect
ory
.Theconf
igur
ati
onf
il
e
needst
ober
enamedf
rom mot
ion-
dist
.conft
omot
ion.
conf
.Theor
igi
nalf
il
eiscal
l
ed
mot
ion-
dist
.confsot
haty
ourwor
kingmot
ion.
conff
il
edoesnotacci
dent
all
ygetov
erwr
it
ten
wheny
our
e-i
nst
allorupgr
adet
oanewerv
ersi
onofMot
ion.
Ify
ouhav
emor
ethanone
camer
ayoushoul
dnott
ryandi
nvokeMot
ionmor
eti
mes.

Mot
ioni
smadet
owor
kwi
thmor
ethanonecamer
aatt
hesamet
ime.Themot
ion.
conff
il
e
est
abl
i
shesgl
obalpar
amet
erst
hatappl
ytoal
lcamer
asandsepar
atecamer
a.conff
il
es
t
hatspeci
fyt
hepar
amet
erst
hatappl
ytoeachspeci
fi
ccamer
a.Thecamer
a.conff
il
esar
e
speci
fi
edatt
hebot
tom oft
hemot
ion.
conff
il
e.I
fyouonl
yhav
eonecamer
ayouonl
yneed
t
hemot
ion.
conff
il
ebuti
fyouhav
emor
ethanonecamer
a,t
heny
ouwi
l
lneedt
ohav
e one
camer
aconf
igf
il
epercamer
a pl
ust
hemot
ion.
conff
il
e.I
fyou hav
eforexampl
etwo
camer
asy
ouneedmot
ion.
conf
 andt
wo 
camer
aconf
igf
il
es.Soat
otalof
 t
hree 
conf
ig
f
il
es.
Anopt
iont
hati
scommont
oal
lcamer
ascanbepl
acedi
nmot
ion.
conf
.(Youcanal
so
putal
lpar
amet
ersi
nthecamer
afi
l
esbutt
hatmakesal
otofedi
ti
ngwheny
ouchangea
commont
hing)
.

Page29of32
Anopt
iont
hati
suni
quet
oacamer
amustbespeci
fi
edi
neachcamer
afi
l
e.Thef
ir
stcamer
a
i
sdef
inedi
nthef
ir
stcamer
afi
l
ecal
l
edf
rom mot
ion.
conf
.The2ndcamer
aisdef
inedi
nthe
2ndcamer
afi
l
ecal
l
edf
rom mot
ion.
confet
c.Anyopt
iondef
inedi
nmot
ion.
confwi
l
lbeused
f
oral
lcamer
asexceptf
ort
hecamer
asi
nwhi
cht
hesameopt
ioni
sdef
inedi
nacamer
a
conf
igf
il
e.
Tomakei
tcl
ear
,thecamer
afi
l
esf
ormatandsy
ntaxi
sthesameasmot
ion.
conf
.An
exampl
eofwhaty
oumi
ghtwanti
nacamer
afi
l
easf
oll
ows:
assumey
ouhav
etwocamer
as,
at
tached t
o onesy
stem.Cr
eat
efi
l
escamer
a0.
confand camer
a1.
conf
.Att
heend of
mot
ion.
conf
,uncommentoutt
hel
i
nest
hatr
efert
othem asbel
ow.

camer
a0.
conf

v
ideodev
ice/
dev
/vi
deo0
camer
a1.
conf

v
ideodev
ice/
dev
/vi
deo1
Mot
ion r
eads i
ts conf
igur
ati
on par
amet
ersi
nthe f
oll
owi
ng sequence.I
fthe same
par
amet
erexi
stsmor
ethanonepl
ace 
thel
astoner
eadwi
ns

1. Mot
ionr
eadst
heconf
igur
ati
onf
il
emot
ion.
conff
rom t
hebegi
nni
ngoft
hef
il
e
goi
ngdownl
i
nebyl
i
ne.
2. I
ftheopt
ion"
camer
a"i
sdef
inedi
nmot
ion.
conf
,thecamer
aconf
igur
ati
on
f
il
e(s)i
s/(
are)r
ead.
3. Mot
ioncont
inuesr
eadi
ngt
her
estoft
hemot
ion.
conff
il
e.Anyopt
ionsf
rom
her
ewi
l
lov
err
ulet
hesameopt
ionpr
evi
ousl
ydef
inesi
nacamer
aconf
igf
il
e.
4. Mot
ionr
eadst
hecommandl
i
neopt
ionagai
nov
err
uli
nganypr
evi
ousl
ydef
ined
opt
ions.

Soal
way
scal
lthecamer
aconf
igf
il
esi
ntheendoft
hemot
ion.
conff
il
e.I
fyoudef
ine
opt
ionsi
nmot
ion.
confAf
tert
hecamer
afi
l
ecal
l
s,t
hesameopt
ionsi
nthecamer
afi
l
eswi
l
l
nev
erbeused.Soal
way
sputt
hecamer
afi
l
ecal
latt
heendofmot
ion.
conf
.Near
lyal
lconf
ig
opt
ionscanbeuni
quef
oraspeci
fi
ccamer
aandpl
acedi
nacamer
aconf
igf
il
e.Ther
ear
ea
f
ew opt
ions t
hatmustbe i
n mot
ion.
confand cannotbe i
n a camer
a conf
igf
il
e:
webcont
rol
_*,daemon,andcamer
a.I
fmot
ioni
sbui
l
twi
thoutspeci
fi
cfeat
uressuchas
f
fmpeg,
mysql
etci
twi
l
lignor
etheopt
ionst
hatbel
ongt
othosef
eat
ures.

Page30of32
Depr
eci
atedPar
amet
ers

Ov
ert
hey
ear
s,Mot
ionhasaddedmanynew conf
igur
ati
onpar
amet
ersandchangedt
he
nameofaf
ewoft
hem sot
hatt
her
eissomeconsi
stencyt
othepar
amet
ernames.Si
nce
v
ersi
on3.
4.1,whenaconf
igur
ati
onpar
amet
erhasanewnameoraddi
ti
onalf
unct
ional
i
ty,
Mot
ionwi
l
ltr
ytoi
nter
prett
hev
aluespeci
fi
edf
ort
heol
dpar
amet
erandt
ransl
atei
ttot
he
new par
amet
er.Theset
ransl
ati
onswi
l
lber
epor
tedi
nthel
ogasMot
ioni
sst
art
ed.To
el
i
minat
e t
hese war
nings, ensur
e t
hat a 
webcont
rol
_por

is speci
fi
ed and t
hat
t
he 
webcont
rol
_i
nter
face 
i
sspeci
fi
edas0(
ornotl
i
sted)
.Thenst
artmot
ion,openabr
owser
andnav
igat
etot
hewebcont
rolpor
t.Whenont
hatpage,
sel
ect
 wr
it
econf
igur
ati
on.Thi
swi
l
l
r
e-wr
it
ethe conf
igur
ati
on f
il
es wi
th al
lthe cur
rentpar
amet
erst
o Mot
ion.Not
ethat
dependi
nguponwher
etheconf
igur
ati
onf
il
esar
elocat
ed,Mot
ionmayneedt
obest
art
ed
usi
ng 
sudo.

Page31of32
Par
amet
ersi
ndi
str
ibut
edconf
igur
ati
onf
il
es

As oft
his wr
it
ing,Mot
ion i
ncl
udes ov
er150 par
amet
ers.Wi
tht
hisv
olume of
par
amet
ers,nav
igat
ingt
heconf
igur
ati
onf
il
ewi
thev
erypossi
blehasbecomeoner
ous.
St
art
ingwi
thv
ersi
on4.
2,t
hedi
str
ibut
edconf
igur
ati
onf
il
esonl
yincl
udeal
i
mit
edsubsetof
t
heconf
igur
ati
onpar
amet
ers.User
scanaddt
othef
il
esasneededt
hepar
amet
erst
hatar
e
appl
i
cabl
etot
hei
rsetup.User
sthatwi
sht
ohav
eev
erypar
amet
erl
i
stedandi
ncl
udedi
nthe
conf
igur
ati
on f
il
ecan f
oll
ow t
hepr
ocessdescr
ibed i
mmedi
atel
yabov
eint
he 
Remov
e
Depr
eci
ated 
sect
ion.i
.e.Use t
he webcont
roli
nter
face t
o wr
it
e outt
he conf
igur
ati
on
f
il
e.Ext
endeddescr
ipt
ions/document
ati
onar
enoti
ncl
udedi
ntheconf
igur
ati
onf
il
e.Thi
s
gui
deshoul
dbeconsul
tedf
ordocument
ati
onoft
heconf
igur
ati
onpar
amet
ers.

Page32of32
CHAPTER6:
RESULTS
6.
1PushUpNot
if
icat
ionWhenMot
ionDet
ect
ed

Af
teri
mpor
ti
ngt
her
equi
redpackagesandr
unni
ngt
hepy
thoncode,t
heset
upst
art
s
wor
king.Whenev
ert
hemot
ion i
sdet
ect
ed t
heout
putscr
een di
spl
ayst
hemessage

mot
ionhasbeendet
ect
ed”
.Si
mul
taneousl
ythecamer
amodul
est
art
srecor
dingt
he
ev
ent
sandt
heE-
mai
lnot
if
icat
ionsar
esentt
otheuser
.Bel
owar
ether
esul
tsweobt
ained
af
terr
unni
ngpy
thoncodesuccessf
ull
y.
Thef
ir
stout
puti
sshownbel
ow.Wecanseean
emai
lwi
tht
het
extmessagedi
spl
ayedas“
mot
iondet
ect
ed”
.Her
ewehav
ecr
eat
edGmai
l
accountnamed“
raspi
emai
l
not
if
y@gmai
l
.com”
.Al
lemai
lnot
if
icat
ionswi
l
lbeupdat
edi
n
t
his.Whenev
ert
her
eisani
ntr
uderwewi
l
lgett
hef
oll
owi
ngmai
lasshowni
nfi
gur
e6.
1.

Fi
g6.
1Pushnot
if
icat
ionr
ecei
vedonmobi
l
ewhenmot
iondet
ect
ed

Page33of32
6.
2Emai
l
ingofv
ideowhensav
ed

Whenev
ert
hev
ideoi
ssav
edmai
li
srecei
eveddi
spl
ayi
ngt
hemessage“
videoofmot
iondet
ect
ed”
.

Fi 2.
g6. 1Not
if
icat
ionr
ecei
vedonmobi
l
ewhenv
ideoi
ssav
e

Page34of32
Wecanseet
heabov
eemai
liswi
thanat
tachment
.Assoonasi
ntr
uderwi
l
lbedet
ect
ed
t
hecamer
ast
art
swor
king.Her
ecamer
awi
l
lcl
i
ckt
hepi
ctur
esofani
ntr
uderasThenaf
ter
cl
i
cki
ngi
magest
hir
dst
ageofpr
ojectst
art
swor
king.Nowanaut
hent
icat
eper
sonwi
l
lget
anemai
lasshowni
nfi
g6.
1.1wi
thanat
tachment
.Thi
sat
tachmenti
sinaf
orm of.
jpgf
il
e.
Whenanaut
hent
icat
eper
sonwi
l
lcheckmai
lthef
oll
owi
ngat
tachment.

g6.
Fi 2.2l
i
vest
ream

Si
mul
taneousl
yweal
sogett
hev
ideosentasat
tachmentt
oouremai
lasshowni
n
f
ig.6.
1.2.
Andal
sowe’
vecr
eat
edawebser
vert
oli
vest
ream t
hecamer
a.Asshowni
nfi
g
6.
2webser
verwi
l
lshowt
hel
i
vest
ream.Al
lthepeopl
eonsamenet
wor
kwi
l
lbeabl
eto
wat
chl
i
vest
ream i
nthei
rbr
ows

Page35of32
CHAPTER7:
FUTURESCOPEANDCONCLUSI
ON

7.
1Fut
urescope

Oneappl
i
cat
ionshoul
dbedev
elopedwhi
chi
ncl
udecapt
uri
ngphot
o,r
ecor
ding
v
ideo and accesi
ng al
lpr
evi
ouscr
eat
ed f
il
es.Usercan al
so v
iew capt
ured i
mage
r
emot
elyont
hisappl
i
cat
ion.Li
vev
ideost
reami
ngcanbeaddedt
otheappaspert
he
userr
equi
rement
.Powermanagementshoul
dal
sobet
her
eandsy
stem wentonsl
eep
modewheni
tisnol
ongeri
nact
ivemode.

Thef
utur
escopeoft
hissy
stem canbeext
endedf
urt
herbyaddi
ngt
ensor
fl
owor
opencvt
odet
ectt
hepeopl
efacei
ftheywor
ethemaskonhi
s/herf
ace.Apar
tfr
om t
his
wecani
nter
facesensor
sli
keGassensor
s,Smokesensor
sandFi
resensor
stogi
ve
al
ert
srespect
ivel
y.

7.
2Concl
usi
on
West
art
edt
hispr
ojectwi
thi
nst
all
i
ngt
heRaspbi
anj
esssi
eost
other
aspber
ry
Pi
.
Thenweenabl
edsshandv
nct
ousei
tin‘
Headl
essmode’
sot
hatwecanaccessi
tusi
ng
anyl
apt
opormobi
l
eint
hesamenet
wor
kwi
thl
ogi
ndet
ail
s.Wewr
oteapy
thonpr
ogr
am t
o
sendi
paddr
essoft
her
aspber
ryPit
oaccessi
tin‘
Headl
essmode’
.Wei
nst
all
edopen
sour
ce‘
mot
ion’packaget
odet
ectmot
ionandr
ecor
dvi
deooft
hemot
ion.Thenwewr
ote
t
wopy
thonpr
ogr
ams,
onef
oral
ert
ingaboutmot
iont
hroughemai
landanot
heronet
osend
t
hev
ideowhent
hemot
ionst
opsasanat
tachmentt
hroughemai
l
.Weal
socr
eat
eda
l
ocahostser
vert
oli
vest
ream t
hecamer
aremot
ely
.

Page36of32
REFERENCES

1.BPat
el,Dr
.K.
R.Bhat
t,Vi
rajM ChoksiandDr
.M.B.Pot
dar“
Smar
tSur
vei
l
lanceand
Moni
tor
ing Sy
stem usi
ng Raspber
ry PIand Andr
oid” I
nter
nat
ionalJour
nalof
EnhancedResear
chi
nSci
ence,Technol
ogy&Engi
neer
ingI
SSN:2319-
7463,Vol
.5
I
ssue5,
May
-2016.

2.Aami
rNi
zam Ansar
i,MohamedSedky
l,Neel
am Shar
ma,Anur
agTy
agi
l“AnI
nter
net
ofThi
ngsAppr
oachf
orMot
ionDet
ect
ionusi
ngRaspber
ryPi
”2016I
nter
nat
ional
Conf
erenceonI
ntel
l
igentComput
ingandI
nter
netofThi
ngs(
IC1T)
.
3.Sahi
lR.Ar
ora,Pr
of.AmolBoke,Pr
of.Pr
agat
iKeneandSur
ajU.Pat
inge“
Adv
anced
RealTi
meHomeSecur
it
ySy
stem BasedonRaspber
ryPI
”Int
ernat
ionalJour
nalof
Pur
eandAppl
i
edResear
chI
nEngi
neer
ingAndTechnol
ogy
,2016.

4.Pr
of.UmaNagar
aj,
Say
ali
Sonawane,
Prachi
Kal
bhor
,Sonal
iDi
war
e,Shwet
aIskande
,
“Remot
e Sur
vei
l
lance Sy
stem f
orMobi
l
e Appl
i
cat
ion”
,Int
ernat
ionalJour
nalof
Engi
neer
ingResear
chandAppl
i
cat
ions,
2016.

5.Adi
mul
am Padmanabham andVenugopal“
AnI
nter
netofThi
ngsAppr
oachf
or
Mot
ionDet
ect
ionusi
ngARM-
BasedSy
stem OnChi
p”I
nt.J.Engg.Res.&Sci
.&
Tech.2016.
6.Par
ashi
vaMur
thyBM andI
nchar
aSandYashaswi
niKK“
Mot
ionDet
ect
ionusi
ng
I
OT Mechani
sm”I
nter
nat
ionalJour
nalofEngi
neer
ing Resear
ch i
n Comput
er
Sci
enceandEngi
neer
ing(
IJERCSE)Vol
3,I
ssue5,
May2016.
7.A.Ar
unRaj
a,R.
Nav
eedhab,G.
Nir
anj
anadev
icandV.
Roobi
ni“
AnI
nter
netofThi
ngs
(
IOT)BasedSecur
it
yAl
ertSy
stem usi
ngRaspber
ryPI
”Asi
aPaci
fi
cInt
ernat
ional
Jour
nal
ofEnggSci
ence,
(2016)
.
8.G.Ani
tha,S.Pr
aveenKumar“
AnI
OTAppr
oachf
orMot
ionDet
ect
ionand
Cont
rol
l
ing Home Appl
i
ances Wi
thoutCl
oud Ser
ver
” second nat
ional
conf
erence,
2016.
9.Vamsi
kri
shnaPat
chav
a,M.Sur
yaGupt
a,Vi
rgi
niaMenezes“
Sur
vei
l
lanceand
Moni
tor
ingSy
stem Usi
ngRaspber
rypi
andSi
mpl
eCV”I
EEEconf
erence,
2016.
10.
Wil
sonFei
pengAby
a,Ji
mmyBasa“
LowCostSmar
tSecur
it
yCamer
awi
th
Ni
ght Vi
si
on Capabi
l
ity Usi
ng Raspber
ry pi and OpenCV” I
EEE

Page37of32
conf
erence,
2016.
11.
Ami
tRana,
A.S.Bhal
chandr
a“Machi
neMoni
tor
ingonCl
oudusi
ngRaspber
rypiand
I
nter
netofThi
ngs”I
nter
nat
ionalJour
nalofAdv
ancedReasear
chi
nComput
erand
Communi
cat
ionEngi
neer
ing,
2015.
12.
Z.YuandW.Ti
e-Ni
ng,'
Resear
chont
heVi
sual
i
zat
ionofEqui
pmentSuppor
tBased
ont
heTechnol
ogyofI
nter
netofThi
ngs'
,2015SecondI
nter
nat
ionalConf
erenceon
I
nst
rument
ati
on,
Measur
ement
,Comput
er,
Communi
cat
ion,
andCont
rol
,2015.
1
0)Ser
kanAkbas,MehmetAki
fEf
e&SuatOzdemi
r“Per
for
manceEv
aluat
ionofPI
R
SensorDepl
oymenti
nCr
it
icalAr
eaSur
vei
l
lanceNet
wor
ks”
,2015I
EEEI
nter
nat
ional
Conf
erenceonDi
str
ibut
edComput
ingi
nSensorSy
stems(
DCOSS)
.pp,327-332,
May2015.
13.
SundasZaf
ar“
Mot
ionDet
ect
ingCamer
aSecur
it
ySy
stem wi
thEmai
lNot
if
icat
ion
andl
i
vest
reami
ngusi
ngRaspber
ryPi
”,2015.
14.
Suni
lKanzar
iya,Vi
shalVor
a“RealTi
meVi
deoMoni
tor
ingSy
stem Usi
ngRaspber
ry
Pi
”,Nat
ionalConf
erence on Emer
ging Tr
ends i
n Comput
er,El
ect
ri
caland
el
ect
roni
cs(
ETCEE-
2015)
.
15.
KhushbuMeht
a,Ni
tiGupt
a“Vi
sionBased-
Real
TimeMoni
tor
ingSecur
it
ySy
stem f
or
Smar
tHome“
,Int
ernat
ionalJour
nalofI
nnov
ati
veResear
chi
nComput
erand
Communi
cat
ionEngi
neer
ing,
2014.
16.
ZhuankunWu:I
nit
ialSt
udyOnI
OTSecur
it
yAr
chi
tect
ure,1)St
rat
egyand
Deci
sionMakngReasear
ch(
2012)
.
17.
Ying-
WenBai
,Zi
-LiXi
eandZong-
HanLi
,“Desi
gnandI
mpl
ement
ati
onofaHome
EmbeddedSur
vei
l
lanceSy
stem wi
thUl
tr
a-LowAl
ertPower
”IEEETr
ans.
18.
ConsumerEl
ect
roni
cs,
Vol
.57.pp,
153-
159,
Febr
uar
y2011.
19.Raspber
ryPi
Org.For
um [
Onl
i
ne]
.Av
ail
abl
e:www.
raspber
rypi
.or
g

Page38of32
Page1of32

You might also like