filmov
tv
Raspberry Pi Home Security System Project [Stream Live Video]
Показать описание
Raspberry Pi Home Security System Project [Stream Live Video]
Scroll down for code.....
In this tutorial, we are going to see how to make raspberry pi home security system with Pi Cam. It will stream live video to your local IP address, so that you can monitor it via any browser with any device but on same network as your pi connected. Once you learned this how to stream live video from raspberry pi, you can also make projects like
1. Home security camera system,
2. Surveillance camera system,
3. CCTV Camera,
4. Visitor monitoring system,
5. Border security,
6. Monitoring Pet etc.
If you want to monitor a part of your house, you don’t need to leave your sofa, just type IP address to any browser, you can see live video stream from raspberry pi.
If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you.
LIST OF COMPONENT (affiliate links)
Music: Elektronomia - Imagination
import io
import picamera
import logging
import socketserver
from threading import Condition
from http import server
class StreamingOutput(object):
def __init__(self):
def write(self, buf):
#new frame, copy the existing buffer's content and
#notify all clients it's available
class StreamingHandler(server.BaseHTTPRequestHandler):
def do_GET(self):
content = PAGE.encode('utf-8')
try:
while True:
except Exception as e:
'Removed streaming client %s: %s',
else:
class StreamingServer(socketserver.ThreadingMixIn,server.HTTPServer):
allow_reuse_address = True
daemon_threads = True
with picamera.PiCamera(resolution='1280x720', framerate=24) as camera:
output = StreamingOutput()
try:
address = ('', 8000)
server = StreamingServer(address, StreamingHandler)
finally:
Scroll down for code.....
In this tutorial, we are going to see how to make raspberry pi home security system with Pi Cam. It will stream live video to your local IP address, so that you can monitor it via any browser with any device but on same network as your pi connected. Once you learned this how to stream live video from raspberry pi, you can also make projects like
1. Home security camera system,
2. Surveillance camera system,
3. CCTV Camera,
4. Visitor monitoring system,
5. Border security,
6. Monitoring Pet etc.
If you want to monitor a part of your house, you don’t need to leave your sofa, just type IP address to any browser, you can see live video stream from raspberry pi.
If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you.
LIST OF COMPONENT (affiliate links)
Music: Elektronomia - Imagination
import io
import picamera
import logging
import socketserver
from threading import Condition
from http import server
class StreamingOutput(object):
def __init__(self):
def write(self, buf):
#new frame, copy the existing buffer's content and
#notify all clients it's available
class StreamingHandler(server.BaseHTTPRequestHandler):
def do_GET(self):
content = PAGE.encode('utf-8')
try:
while True:
except Exception as e:
'Removed streaming client %s: %s',
else:
class StreamingServer(socketserver.ThreadingMixIn,server.HTTPServer):
allow_reuse_address = True
daemon_threads = True
with picamera.PiCamera(resolution='1280x720', framerate=24) as camera:
output = StreamingOutput()
try:
address = ('', 8000)
server = StreamingServer(address, StreamingHandler)
finally:
Комментарии