Cov txheej txheem:

Pizero Motion Detect Webcam Security System: 3 Kauj Ruam
Pizero Motion Detect Webcam Security System: 3 Kauj Ruam

Video: Pizero Motion Detect Webcam Security System: 3 Kauj Ruam

Video: Pizero Motion Detect Webcam Security System: 3 Kauj Ruam
Video: Raspberry Pi Zero W Surveillance Camera 2024, Hlis ntuj nqeg
Anonim
Pizero Motion Detect Webcam Security System
Pizero Motion Detect Webcam Security System

Cov kab ke no siv pizero, wifi dongle thiab lub webcam qub hauv qhov kev sib tw matchbox. Nws kaw cov suab pom cov yeeb yaj kiab ntawm 27fps ntawm ib qho tseem ceeb txav ntawm kuv txoj kev tsav tsheb. Tom qab ntawd nws upload cov yeeb yaj kiab rau hauv tus lej dropbox. Kuj tseem tuaj yeem saib cov cav thiab hloov pauv teeb tsa ntawm dropbox.

Kauj Ruam 1: Teeb Ua Ntej Ua Ntej Ua Ntej

Image
Image

Ua ntej hloov kho lub operating system mus rau qhov hloov tshiab tshaj plaws raws li tau piav qhia ntawm no.

Tom qab ntawv teeb lub wifi raws li tau piav qhia ntawm no.

Tom qab ntawd koj yuav tsum teeb tsa OpenCv. Muaj cov lus qhia zoo txog yuav ua li cas ntawm pyimagesearch. Yog tias koj yuav mus rau version 3.0 cia siab tias nws yuav siv sijhawm ntev. Ib qho ntawm cov kauj ruam siv sijhawm 9 teev los ua. Koj tseem yuav xav tau cov nab nab khi uas tau piav qhia ntawm nplooj ntawv ntawd.

Thaum koj tau txais qhov no tag nrho thiab khiav koj tau npaj los rub tawm cov lus tsa suab software.

Kauj Ruam 2: Teeb Meem Ntes Pom Software

Nkag mus rau Cov vis dis aus thiab teeb tsa los ntawm Dropbox
Nkag mus rau Cov vis dis aus thiab teeb tsa los ntawm Dropbox

Cov cai tuaj yeem pom ntawm bitbucket. Luam cov ntaub ntawv no los ntawm kev siv

git clone

lossis yog tias koj xav rub tawm lawv tus kheej.

Qhov tseem ceeb ntawm cov kab ke no yog multiMotionDetect.py. Nws siv ntau qhov kev ua ntau txoj kab thiab cov xwm txheej.

Ua ntej tshaj plaws koj yuav tsum txiav txim siab qhov twg koj xav tau cov vis dis aus duab khaws cia MotionVideos thiab teeb tus nqi no hauv cov ntaub ntawv globalConfig.json. Tom qab ntawd luam qhov config.json.txt thiab maskedAreas.json.txt mus rau lub hauv paus ntawm daim nplaub tshev no. Config.json.txt muaj cov teeb tsa hauv qab no uas tuaj yeem kho nyob deb.

}

FrameThreshold: yog tus naj npawb ntawm cov thav ntawv tseem ceeb ua ntej pom cov lus tsa suab.

zoo li qubThreshold: yog tus naj npawb ntawm cov thav duab zoo li ua ntej peb tig tua tawm.

minArea: yog qhov tsawg kawg nkaus ntawm thaj tsam txhawm rau suav ua qhov tseem ceeb.

postSeconds: Qhov no yog tus naj npawb ntawm vib nas this los ntawm qhov kawg ntawm kev ua yeeb yaj kiab rau qhov txav mus los ntawm kab. readCamNice: Qhov no yog qhov muaj feem thib yuav muab rau

txheej txheem readCam Qhov no yog nruab nrab ntawm -20 thiab +20 (qis dua daim duab qhov siab dua qhov muaj feem thib). Tab sis tsis txhob overdo nws lossis koj yuav tsoo lub operating system.

checkMotionNice: Qhov muaj feem thib rau cov txheej txheem tshawb pom cov lus tsa suab.

writeCamNice: Qhov tseem ceeb ntawm cov txheej txheem sau lub koob yees duab.

maxqsize: Qhov no yog tus naj npawb ntawm vib nas this uas tom qab ntawd muab sib tw los ntawm cov thav duab ib ob.

Kuv feem ntau tsuas yog hloov lub min_area rau tus account cua cua.

Yog tias koj xav siv lub logger yooj yim dua li lub log logger (hauv qab) hloov pauv ntshuam miaLogging rau

ntshuam logging

logging.basicConfig (filename = 'example.log', qib = logging. DEBUG)

thiab tshem tawm lub cav txais los ntawm cov ntawv motionDetect thiab txhua yam ntxiv yuav tsum ua haujlwm zoo.

Yog tias koj xav khiav cov lus tsa suab pom tau thaum pib.

Ua ntej kho cov ntawv thiab txheeb xyuas tias homedir cov ntsiab lus rau qhov chaw koj muaj multiMotionDetect.py, tom qab ntawv theej cov ntawv motionDetect rau /etc/init.d ie

cp motionDetect /etc/init.d/motionDetect

Yuav tsum tau ua tiav tab sis

chmod +x /etc/init.d/motionDetect

Thaum kawg sau npe tsab ntawv nrog

sudo hloov tshiab-rc.d motionDetect defaults

Koj tseem tuaj yeem pib, nres thiab rov pib dua lub system nrog

sudo /etc/init.d/motionDetect pib | nres | rov pib dua

Los ntawm lub neej ntawd miaLogReceiver lub qhov rooj nkag yuav pib rau tib lub sijhawm. Lwm qhov kev pabcuam peb yog ywj siab tab sis siv tib lub cav logger (tab sis tuaj yeem hloov pauv tau yooj yim). Kuv hu txhua qhov no siv tsab ntawv cron ntawm qhov sib txawv. Rau cov lus qhia saib ntawm no.

CheckRunning.py kuaj xyuas tias multiMotionDetect.py tab tom khiav thiab rov pib dua yog tias tsis yog.

fileMaint.py tu lub tsev ntawm cov vis dis aus tshem tawm cov no tom qab muab cov hnub. Nws tshem tawm cov ntawv me me ntawm cov lus tsa suab video teeb tsa hauv thawj pawg lus. Nws txheeb xyuas tias lawv pib nrog "MV" yog li nco ntsoov tias koj tsis tau txais lwm cov npe ntawm qhov tseem ceeb pib nrog tib cov cim hauv cov ntawv ntawd.

Kauj Ruam 3: Nkag Mus Saib Cov vis dis aus thiab teeb tsa los ntawm Dropbox

Thaum kawg yog tias koj xav saib koj cov vis dis aus, cav thiab teeb tsa cov ntaub ntawv nyob deb koj yuav tsum teeb tsa lub thawv xa ntawv.

Ua ntej tau txais tus lej dropbox uas yog pub dawb. Tom qab ntawd teeb tsa API rau nab hab sej -https://www.dropbox.com/developers/documentation/ … Qhov no suav nrog rub tawm sdk thiab sau npe lub app kom nkag mus rau API.

Thaum koj tau txais tus yuam sij nkag mus rau hauv cov ntaub ntawv globalConfig.json. Xav paub ntau ntxiv txog cov kab ke tuaj yeem pom ntawm kuv blog dani cymru - cyber renegade Yog tias koj pom muaj dab tsi txaus siab lossis muaj lus nug thov tso lus rau ntawm blog.

Pom zoo: