diff --git a/README.md b/README.md index 5763c1f..5caf842 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# LiveStramingCamera -DIY live streaming camera using raspberry pi, opencv, flask and remote.it
+# LiveStreamingCamera +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')