From 884847f289b75d9c11a6c7c52a56bb203e3e5723 Mon Sep 17 00:00:00 2001 From: SarcasticSigma Date: Wed, 17 Nov 2021 16:06:24 -0500 Subject: [PATCH 1/2] Fixed various typos in the README as well as a typo in camera.py --- README.md | 10 +++++----- camera.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5763c1f..bef430b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # LiveStramingCamera -DIY live streaming camera using raspberry pi, opencv, flask and remote.it
+DIY live streaming camera using Raspberry Pi, OpenCV, Flask and remote.it
### Essential Libraries to install
--------------------------- -echo Y |sudo apt-get install libopenjp2-7-dev
+echo Y | sudo apt-get install libopenjp2-7-dev
echo Y | sudo apt-get install libhdf5-dev
-echo Y |sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test
+echo Y | sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test
echo Y | sudo apt-get install libatlas-base-dev
echo Y | sudo apt-get install libjasper-dev
echo Y | sudo apt-get install python3-pip
@@ -16,7 +16,7 @@ sudo apt install remoteit
-### Wfi Settings for Raspbian OS
+### WiFi Settings for Raspbian OS
------------------------------ **File Name:** wpa_supplicant.conf
**Contents:**
@@ -30,5 +30,5 @@ sudo apt install remoteit
Known Issues
-------------------- -if you face any issue while installing library like python3-opencv or flask,
+if you face any issue while installing a library like python3-opencv or flask,
then run the "sudo apt-get update --fix-missing" command first. diff --git a/camera.py b/camera.py index c91b581..f8d88d1 100644 --- a/camera.py +++ b/camera.py @@ -3,7 +3,7 @@ from flask import Flask, render_template, Response, stream_with_context, request video = cv2.VideoCapture(0) -app = Flask('__name__') +app = Flask(__name__) def video_stream(): @@ -14,7 +14,7 @@ def video_stream(): else: ret, buffer = cv2.imencode('.jpeg',frame) frame = buffer.tobytes() - yield (b' --frame\r\n' b'Content-type: imgae/jpeg\r\n\r\n' + frame +b'\r\n') + yield (b' --frame\r\n' b'Content-type: image/jpeg\r\n\r\n' + frame +b'\r\n') @app.route('/camera') From 1114ed8a02c4a1e195a9c9f2b7fa1fc42f7bd315 Mon Sep 17 00:00:00 2001 From: SarcasticSigma <61723292+SarcasticSigma@users.noreply.github.com> Date: Wed, 17 Nov 2021 16:18:01 -0500 Subject: [PATCH 2/2] Update README.md "Fixed another typo" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bef430b..5caf842 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# LiveStramingCamera +# LiveStreamingCamera DIY live streaming camera using Raspberry Pi, OpenCV, Flask and remote.it
### Essential Libraries to install