From 71e26f8b5df08ef319b791525ecb948df5b2571d Mon Sep 17 00:00:00 2001 From: Floris Date: Thu, 5 May 2022 07:40:27 -0400 Subject: [PATCH] added icon for extra fun --- camera.py | 3 ++- main.py | 2 +- static/favicon.ico | Bin 0 -> 15086 bytes templates/index.html | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 static/favicon.ico diff --git a/camera.py b/camera.py index 7f30692..f70338e 100644 --- a/camera.py +++ b/camera.py @@ -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 diff --git a/main.py b/main.py index 5ccfe87..603aa34 100644 --- a/main.py +++ b/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 diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..dcdebc4e892387070ebf34f60324dd862f89a1a1 GIT binary patch literal 15086 zcmeI22XvHG7Jvr>h8`59sE`O21QnF(q6B3*c3szkT?9o17YiyD*m1?R3)m~hT??RV zFIZMUvAc>5IW~f#L@X3>O(J1tzi%@CIQ%mS8OWaX>|xINxbMI3z5DKa|Gn?M84`&! zh~!0j^oSsfBGa~wMEXP`k)opHbE`;X0lHR5>rZVMiCjj5F0`RbWGJXle730;8~)v} z0>9-I7}_u18V15p7zTU87SP}~?sqeM906~`S1=DgfG?Bf3y`gUYjeP-22cc3;5)bx z`a&Dn40eL?@C7`Xe9rqV%mZKa`x5vJT=PRAt8eK0fbZsOxE{K~|0JduHy@4xV_ujtt<7zA(m{v5IGW>)z+sz>lkYz7y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q`U`!Z~x5DVKEp+bx_kr)NC5#65-mSxJb9ttJ5qJ){w~hzL@V%b{J0~&L z-FM%B>tRl^ykjn7h1+5y4~_=k=}6cK_JJp$3Vwj^!FS?5eK_dT5HLpE18V)dxA2(h z&-C?sys_0Sr0;=lF}N?w&v0<4jr;D+Ff3hP*E0PI;c4if-iPOoa2~k+^I!>_51u#r zmD=MeYhya>oNl8oW%`^9=33%!VUUfXFB}hvy$E?7m}?uumT)Ziep26bD368n>oR80 zhW6&pEpUoDWHZj zS0%K8KS316z-8dLi90#cHuiBZ`~w(68NZVT^UWq{Z!Av(<9ISS-dW&T?>klMhq-<+ zxEGpx`eUw4fD*VLPK1o}E8Do~I{LWh^a5kyFE9>{1M@Jor&8Vswud9Z_pLvtK|fgM zzcWks<^Q!@{W}8x#-j0fWl5ahSK{$Gi{kMf&Ev5#??hwe%Mw(Tl@(XzeOX-D{?^h} z19mT6H8WbedS-N1)qruuv5w=SvDvMo@!^Z(@v%$e@f%)@$DipCkB=J=kHw-ePtkI+@-R) zKs)yWbKn8kCHd^0aW!;>)IJ#QPn~DP2r#zYW6fXp(EFe}m@mD;{eoxePKD0U4a^DW zVGfuZ-c`1OQIL^y=-PsQj)&PW1)72T#pUoYm`C32GXCEg-M-+t8^51`&Y`l0`xja|VpT|4DK$QVD(j(1nzT`JotJGZ8g(JvnNx6VkUvLq6z bnpIt1a!Vxg^BL9Ua^!0C5{p(7^ilo?hq&Ej literal 0 HcmV?d00001 diff --git a/templates/index.html b/templates/index.html index b7dc167..07bc3e7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,7 @@ +