added icon for extra fun
This commit is contained in:
parent
7c940fba67
commit
71e26f8b5d
|
@ -11,7 +11,8 @@ import numpy as np
|
|||
|
||||
class VideoCamera(object):
|
||||
def __init__(self, flip = False, file_type = ".jpg", photo_string= "stream_photo"):
|
||||
self.vs = PiVideoStream(resolution=(1920, 1080), framerate=30).start()
|
||||
# self.vs = PiVideoStream(resolution=(1920, 1080), framerate=30).start()
|
||||
self.vs = PiVideoStream().start()
|
||||
self.flip = flip # Flip frame vertically
|
||||
self.file_type = file_type # image type i.e. .jpg
|
||||
self.photo_string = photo_string # Name to save the photo
|
||||
|
|
2
main.py
2
main.py
|
@ -3,7 +3,7 @@
|
|||
#Desc: This web application serves a motion JPEG stream
|
||||
# main.py
|
||||
# import the necessary packages
|
||||
from flask import Flask, render_template, Response, request
|
||||
from flask import Flask, render_template, Response, request, send_from_directory
|
||||
from camera import VideoCamera
|
||||
import os
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
body {
|
||||
|
@ -136,7 +137,7 @@ body {
|
|||
</div>
|
||||
|
||||
<div class="top-right-logo">
|
||||
<a></a>Arya Stream </a>
|
||||
<a></a>Raspberry Pi - Camera Stream</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue